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

Go to the source code of this file.

Functions

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

Function Documentation

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_s::fireSound, INVSH_GetItemByIDX(), LE_AddGrenade(), NET_ReadFormat(), S_LoadAndPlaySample(), SF_BOUNCED, SND_VOLUME_DEFAULT, and SOUND_ATTN_IDLE.

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_s::impactTime, NET_ReadShort(), eventTiming_s::nextTime, eventTiming_s::parsedDeath, and eventTiming_s::shootTime.