cl_hud_callbacks.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void HUD_InitCallbacks (void)
invList_tHUD_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_tHUD_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)

Detailed Description

Definition in file cl_hud_callbacks.h.


Function Documentation

int HUD_CalcReloadTime ( const le_t le,
const objDef_t weapon,
int  toContainer 
)
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.

Parameters:
[in] actor The pointer to the actor we want to get the data from.
[in] hand Which hand to use
Returns:
the used 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.

Todo:
remove me

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   ) 

Generated by  doxygen 1.6.2