UFO: Alien Invasion
Loading...
Searching...
No Matches
e_event_sound.cpp File Reference
Include dependency graph for e_event_sound.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

◆ CL_SoundEvent()

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 cl, CL_ActorGetClosest(), CL_ConvertSoundFromEvent(), cls, Com_DPrintf(), DEBUG_SOUND, eventRegister_t::formatString, LE_Get(), LE_IsBreakable, LE_IsDoor, LE_IsLivingActor(), MAX_QPATH, MAX_ROUTE, NET_ReadFormat(), le_t::origin, S_LoadAndPlaySample(), SND_VOLUME_DEFAULT, SOUND_ATTN_NORM, le_t::team, and VectorCopy.

◆ CL_SoundEventTime()

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