UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
e_event_sound.h File Reference
#include "../../e_main.h"

Go to the source code of this file.

Functions

void CL_SoundEvent (const eventRegister_t *self, dbuffer *msg)
 Play a sound on the client side. More...
 
int CL_SoundEventTime (const struct eventRegister_s *self, dbuffer *msg, eventTiming_t *eventTiming)
 

Function Documentation

void CL_SoundEvent ( const eventRegister_t self,
dbuffer msg 
)

Play a sound on the client side.

Parameters
[in]selfPointer to the event structure that is currently executed
[in]msgholds the network data
See also
EV_SOUND
Note
if the last character of the sound file string that was sent by the server is a '+', we will select a random sound file by replacing the '+' character with a number between 01..99
Todo:
render
Todo:
render

Definition at line 60 of file e_event_sound.cpp.

References clientBattleScape_s::cam, camera_s::camorg, cl, CL_ActorGetClosest(), CL_ConvertSoundFromEvent(), cls, Com_DPrintf(), DEBUG_SOUND, LE_Get(), LE_IsBreakable, LE_IsDoor, LE_IsLivingActor(), MAX_QPATH, MAX_ROUTE, NET_ReadFormat(), le_s::origin, S_LoadAndPlaySample(), SND_VOLUME_DEFAULT, SOUND_ATTN_NORM, client_static_s::team, le_s::team, and VectorCopy.

int CL_SoundEventTime ( const struct eventRegister_s self,
dbuffer msg,
eventTiming_t eventTiming 
)