Go to the source code of this file.
Functions | |
void | HUD_InitCallbacks (void) |
invList_t * | HUD_GetLeftHandWeapon (le_t *actor, containerIndex_t *container) |
returns the weapon the actor's left hand is touching. In case the actor holds a two handed weapon in his right hand, this weapon is returned here. This function only returns NULL if no two handed weapon is in the right hand and the left hand is empty. | |
const fireDef_t * | HUD_GetFireDefinitionForHand (const le_t *actor, const actorHands_t hand) |
Returns the fire definition of the item the actor has in the given hand. | |
int | HUD_CalcReloadTime (const le_t *le, const objDef_t *weapon, int toContainer) |
Definition in file cl_hud_callbacks.h.
const fireDef_t* HUD_GetFireDefinitionForHand | ( | const le_t * | actor, | |
const actorHands_t | hand | |||
) |
Returns the fire definition of the item the actor has in the given hand.
[in] | actor | The pointer to the actor we want to get the data from. |
[in] | hand | Which hand to use |
fireDef_t
Definition at line 57 of file cl_hud_callbacks.c.
References ACTOR_GET_INV, FIRESH_FiredefForWeapon(), invList_s::item, and item_s::t.
Referenced by HUD_CheckFiremodeReservation(), HUD_DisplayFiremodes(), HUD_FireWeapon_f(), HUD_PopupFiremodeReservation(), and HUD_UpdateReactionFiremodes().
invList_t* HUD_GetLeftHandWeapon | ( | le_t * | actor, | |
containerIndex_t * | container | |||
) |
returns the weapon the actor's left hand is touching. In case the actor holds a two handed weapon in his right hand, this weapon is returned here. This function only returns NULL
if no two handed weapon is in the right hand and the left hand is empty.
Definition at line 36 of file cl_hud_callbacks.c.
References csi, objDef_s::holdTwoHanded, csi_s::idRight, invList_s::item, LEFT, RIGHT, and item_s::t.
Referenced by HUD_ReloadLeft_f(), HUD_UpdateActor(), HUD_UpdateActorCvar(), and HUD_UpdateActorFireMode().
void HUD_InitCallbacks | ( | void | ) |
Definition at line 286 of file cl_hud_callbacks.c.
References _, Cmd_AddCommand(), HUD_FireWeapon_f(), HUD_ReloadLeft_f(), HUD_ReloadRight_f(), HUD_ToggleCrouchReservation_f(), and HUD_ToggleReaction_f().
Referenced by HUD_InitStartup().