|
UFO: Alien Invasion
|

Go to the source code of this file.
Functions | |
| void | HUD_InitCallbacks (void) |
| Item * | HUD_GetLeftHandWeapon (const 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 nullptr 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) |
References HUD_CalcReloadTime().
| 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.cpp.
References Item::def(), Item::getFiredefs(), le_t::getHandItem(), and HUD_GetFireDefinitionForHand().
Referenced by HUD_CheckFiremodeReservation(), HUD_DisplayActions(), HUD_FireWeapon_f(), HUD_GetFireDefinitionForHand(), HUD_PopupFiremodeReservation(), and HUD_UpdateReactionFiremodes().
| Item * HUD_GetLeftHandWeapon | ( | const 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 nullptr 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.cpp.
References CID_RIGHT, le_t::getLeftHandItem(), le_t::getRightHandItem(), HUD_GetLeftHandWeapon(), and Item::isHeldTwoHanded().
Referenced by HUD_GetLeftHandWeapon(), HUD_ReloadLeft_f(), HUD_UpdateActor(), HUD_UpdateActorCvar(), and HUD_UpdateActorFireMode().
Definition at line 342 of file cl_hud_callbacks.cpp.
References Cmd_AddCommand(), HUD_ExecuteAction_f(), HUD_FireWeapon_f(), HUD_InitCallbacks(), HUD_ReloadLeft_f(), HUD_ReloadRight_f(), HUD_SetMoveMode_f(), HUD_ToggleCrouchReservation_f(), HUD_ToggleReaction_f(), and N_.
Referenced by HUD_InitCallbacks(), and HUD_InitStartup().