#include "../../e_main.h"
Go to the source code of this file.
Functions | |
void | CL_ActorDoShoot (const eventRegister_t *self, struct dbuffer *msg) |
Shoot with weapon. | |
int | CL_ActorDoShootTime (const eventRegister_t *self, struct dbuffer *msg, const int dt) |
Definition in file e_event_actorshoot.h.
void CL_ActorDoShoot | ( | const eventRegister_t * | self, | |
struct dbuffer * | msg | |||
) |
Shoot with weapon.
Definition at line 150 of file e_event_actorshoot.c.
References le_s::as, CL_ActorGetMuzzle(), Com_DPrintf(), Com_Error(), DEBUG_CLIENT, ERR_DROP, ET_ACTORHIDDEN, fireDef_s::fireAttenuation, FIRESH_GetFiredef(), fireDef_s::fireSound, model_s::flags, INVSH_GetItemByIDX(), fireDef_s::irgoggles, IS_SHOT_HEADGEAR, IS_SHOT_LEFT, IS_SHOT_RIGHT, LE_AddProjectile(), LE_Get(), LE_GetAnim(), LE_IsActor(), LE_IsDead, LE_NotFoundError, le_s::left, le_s::model1, NET_ReadFormat(), R_AnimAppend(), R_AnimChange(), RDF_IRGOGGLES, refdef, rendererData_t::rendererFlags, le_s::right, S_LoadSample(), S_PlaySample(), SF_BOUNCED, SKIP_LOCAL_ENTITY, SND_VOLUME_WEAPONS, fireDef_s::soundOnce, le_s::state, and le_s::type.
int CL_ActorDoShootTime | ( | const eventRegister_t * | self, | |
struct dbuffer * | msg, | |||
const int | dt | |||
) |
Definition at line 33 of file e_event_actorshoot.c.
References cl, CL_OutsideMap(), cls, fireDef_s::delayBetweenShots, FIRESH_GetFiredef(), impactTime, INVSH_GetItemByIDX(), NET_ReadFormat(), nextTime, SF_BOUNCED, shootTime, fireDef_s::speed, client_static_s::team, UNIT_SIZE, and VectorDist.