25 #include "../../../../client.h"
26 #include "../../../cl_actor.h"
41 NET_ReadFormat(msg, self->formatString, &dummy, &first, &objIdx, &weapFdsIdx, &fireDefIndex, &impact, &dummy);
76 NET_ReadFormat(msg, self->formatString, &targetEntNo, &first, &objIdx, &weapFdsIdx, &fdIdx, &impact, &flags);
81 leTarget =
LE_Get(targetEntNo);
96 const char* sound =
nullptr;
this is a fire definition for our weapons/ammo
int CL_ActorShootHiddenTime(const eventRegister_t *self, dbuffer *msg, eventTiming_t *eventTiming)
Decides if following events should be delayed.
int CL_GetNextTime(const eventRegister_t *event, eventTiming_t *eventTiming, int nextTime)
void CL_ActorShootHidden(const eventRegister_t *self, dbuffer *msg)
Shoot with weapon but don't bother with animations - actor is hidden.
void NET_ReadFormat(dbuffer *buf, const char *format,...)
The user-friendly version of NET_ReadFormat that reads variable arguments from a buffer according to ...
bool S_LoadAndPlaySample(const char *s, const vec3_t origin, float attenuation, float volume)
does what the name implies in just one function to avoid exposing s_sample_t
bool CL_OutsideMap(const vec3_t position, const float delta)
Checks whether give position is still inside the map borders.
const char * hitBodySound
Defines all attributes of objects used in the inventory.
#define Q_strvalid(string)
CL_ParseEvent timers and vars.
#define SKIP_LOCAL_ENTITY
const fireDef_t * FIRESH_GetFiredef(const objDef_t *obj, const weaponFireDefIndex_t weapFdsIdx, const fireDefIndex_t fdIdx)
Get the fire definitions for a given object.
void CL_ActorPlaySound(const le_t *le, actorSound_t soundType)
Plays various sounds on actor action.
le_t * LE_Get(int entnum)
Searches all local entities for the one with the searched entnum.
Struct that defines one particular event with all its callbacks and data.
int32_t weaponFireDefIndex_t
#define SND_VOLUME_WEAPONS
const objDef_t * INVSH_GetItemByIDX(int index)
Returns the item that belongs to the given index or nullptr if the index is invalid.
#define LE_NotFoundError(entnum)