e_event_actorthrow.c File Reference

#include "../../../../client.h"
#include "../../../cl_localentity.h"
#include "e_event_actorthrow.h"
Include dependency graph for e_event_actorthrow.c:

Go to the source code of this file.

Functions

int CL_ActorDoThrowTime (const eventRegister_t *self, struct dbuffer *msg, const int dt)
void CL_ActorDoThrow (const eventRegister_t *self, struct dbuffer *msg)
 Throw item with actor.

Detailed Description

Definition in file e_event_actorthrow.c.


Function Documentation

void CL_ActorDoThrow ( const eventRegister_t self,
struct dbuffer msg 
)

Throw item with actor.

Parameters:
[in] self Pointer to the event structure that is currently executed
[in] msg The netchannel message

Todo:
add victim support for blood and hurt sounds

Definition at line 40 of file e_event_actorthrow.c.

References FIRESH_GetFiredef(), fireDef_s::fireSound, model_s::flags, INVSH_GetItemByIDX(), LE_AddGrenade(), NET_ReadFormat(), S_LoadSample(), S_PlaySample(), SF_BOUNCED, SND_VOLUME_DEFAULT, and SOUND_ATTN_IDLE.

int CL_ActorDoThrowTime ( const eventRegister_t self,
struct dbuffer msg,
const int  dt 
)

Definition at line 29 of file e_event_actorthrow.c.

References cl, and NET_ReadShort().


Generated by  doxygen 1.6.2