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

Go to the source code of this file.

Functions

int CL_ActorDoThrowTime (const eventRegister_t *self, dbuffer *msg, eventTiming_t *eventTiming)
 Decides if following events should be delayed.
void CL_ActorDoThrow (const eventRegister_t *self, dbuffer *msg)
 Throw item with actor.

Function Documentation

◆ CL_ActorDoThrow()

void CL_ActorDoThrow ( const eventRegister_t * self,
dbuffer * msg )

Throw item with actor.

Parameters
[in]selfPointer to the event structure that is currently executed
[in]msgThe netchannel message
See also
EV_ACTOR_THROW
Todo
add victim support for blood and hurt sounds

Definition at line 50 of file e_event_actorthrow.cpp.

References FIRESH_GetFiredef(), fireDef_t::fireSound, eventRegister_t::formatString, INVSH_GetItemByIDX(), LE_AddGrenade(), NET_ReadFormat(), S_LoadAndPlaySample(), SF_BOUNCED, SND_VOLUME_DEFAULT, and SOUND_ATTN_IDLE.

◆ CL_ActorDoThrowTime()

int CL_ActorDoThrowTime ( const eventRegister_t * self,
dbuffer * msg,
eventTiming_t * eventTiming )

Decides if following events should be delayed.

Definition at line 32 of file e_event_actorthrow.cpp.

References eventTiming_t::impactTime, NET_ReadShort(), eventTiming_t::nextTime, eventTiming_t::parsedDeath, and eventTiming_t::shootTime.