38 int entnum, bodyPart, wounds, treatment;
51 Com_Printf(
"CL_ActorWound: LE (%i) not an actor (type: %i)\n", entnum, le->
type);
71 ?
static_cast<int>(wounds * bodyData->
bleedingFactor(bodyPart)) : 0);
int CL_ActorGetNumber(const le_t *le)
Returns the number of the actor in the teamlist.
character_t * CL_ActorGetChr(const le_t *le)
Returns the character information for an actor in the teamlist.
void HUD_DisplayMessage(const char *text)
Displays a message on the hud.
le_t * LE_Get(int entnum)
Searches all local entities for the one with the searched entnum.
#define LE_NotFoundError(entnum)
float woundThreshold(const short bodyPart) const
float bleedingFactor(const short bodyPart) const
Primary header for client.
void Com_Printf(const char *const fmt,...)
void CL_ActorWound(const eventRegister_t *self, dbuffer *msg)
Parses the actor wound stats that come from the netchannel.
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 Com_sprintf(char *dest, size_t size, const char *fmt,...)
copies formatted string with buffer-size checking
Describes a character with all its attributes.
Struct that defines one particular event with all its callbacks and data.
const char * formatString
The format string that is used to write and parse this event.
const BodyData * bodyTemplate
int woundLevel[BODYPART_MAXTYPE]
int treatmentLevel[BODYPART_MAXTYPE]
void UI_ExecuteConfunc(const char *fmt,...)
Executes confunc - just to identify those confuncs in the code - in this frame.