Describes a character with all its attributes. More...
#include <chr_shared.h>
Data Fields | |
int | ucn |
char | name [MAX_VAR] |
char | path [MAX_VAR] |
char | body [MAX_VAR] |
char | head [MAX_VAR] |
int | skin |
int | HP |
int | minHP |
int | maxHP |
int | STUN |
int | morale |
int | state |
chrScoreGlobal_t | score |
chrScoreMission_t * | scoreMission |
actorSizeEnum_t | fieldSize |
inventory_t | i |
teamDef_t * | teamDef |
int | gender |
chrReservations_t | reservedTus |
chrFiremodeSettings_t | RFmode |
Describes a character with all its attributes.
Definition at line 253 of file chr_shared.h.
char character_s::body[MAX_VAR] |
Definition at line 257 of file chr_shared.h.
Referenced by CHRSH_CharGetBody(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), Com_GetCharacterValues(), G_ClientReadCharacter(), and GAME_NetSendCharacter().
Definition at line 273 of file chr_shared.h.
Referenced by CL_LoadCharacterXML(), CL_SaveCharacterXML(), Com_GetCharacterValues(), G_ClientGetFreeSpawnPointForActorSize(), and GAME_NetSendCharacter().
Gender index.
Definition at line 278 of file chr_shared.h.
Referenced by CL_LoadCharacterXML(), CL_SaveCharacterXML(), Com_GetCharacterValues(), G_AppearPerishEvent(), G_ClientReadCharacter(), G_SendInvisible(), and GAME_NetSendCharacter().
char character_s::head[MAX_VAR] |
Definition at line 258 of file chr_shared.h.
Referenced by CHRSH_CharGetHead(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), Com_GetCharacterValues(), G_ClientReadCharacter(), and GAME_NetSendCharacter().
int character_s::HP |
Health points (current ones).
Definition at line 261 of file chr_shared.h.
Referenced by AI_SetStats(), CHRSH_CharGenAbilitySkills(), CL_CharacterSkillAndScoreCvars(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), CL_UpdateCharacterStats(), CP_MissionEnd(), CP_ParseCharacterData(), G_ClientAssignDefaultActorValues(), G_ClientReadCharacter(), GAME_NetSendCharacter(), HOS_EmployeeInit_f(), HOS_HealCharacter(), HOS_ListClick_f(), and HOS_UpdateMenu().
Inventory definition.
Definition at line 275 of file chr_shared.h.
Referenced by AI_SetEquipment(), AIR_RemoveEmployee(), CHRSH_CharGetBody(), CHRSH_CharGetHead(), CL_ActorEquipmentSelect_f(), CL_CleanTempInventory(), CL_GenerateCharacter(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), CL_UpdateEquipmentMenuParameters_f(), E_ResetEmployee(), G_ActorInvMove(), G_AddItemToFloor(), G_ClientAction(), G_ClientReadInventory(), G_ClientShoot(), G_InventoryDropToFloorCheck(), G_InventoryRemoveItemByID(), G_InventoryToFloor(), G_SpawnItemOnFloor(), GAME_AppendTeamMember(), GAME_SendCurrentTeamSpawningInfo(), and MP_GetEquipment().
Maximum health points (as in: 100% == fully healed).
Definition at line 263 of file chr_shared.h.
Referenced by AIL_isinjured(), CHRSH_CharGenAbilitySkills(), CL_CharacterSkillAndScoreCvars(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), CP_ParseCharacterData(), G_AppearPerishEvent(), G_ClientReadCharacter(), G_Damage(), G_ShootSingle(), G_UpdateCharacterSkills(), GAME_NetSendCharacter(), HOS_EmployeeInit_f(), HOS_HealCharacter(), HOS_ListClick_f(), and HOS_UpdateMenu().
Minimum hp during combat
Definition at line 262 of file chr_shared.h.
Referenced by G_ClientReadCharacter(), and G_Damage().
Definition at line 265 of file chr_shared.h.
Referenced by AI_SetStats(), CHRSH_CharGenAbilitySkills(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), CP_ParseCharacterData(), G_ClientAssignDefaultActorValues(), G_ClientReadCharacter(), and GAME_NetSendCharacter().
char character_s::name[MAX_VAR] |
Character name (as in: soldier name).
Definition at line 255 of file chr_shared.h.
Referenced by actorL_tostring(), CL_ActorDie(), CL_ActorRevitalised(), CL_AddTargetingBox(), CL_CharacterSkillAndScoreCvars(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), CL_UpdateActorAircraftVar(), CL_UpdateCharacterStats(), CL_UpdateEmployeeList(), Com_GetCharacterValues(), CP_MissionEnd(), E_ChangeName_f(), E_EmployeeList_f(), G_ClientReadCharacter(), G_MoraleBehaviour(), G_MoralePanic(), G_MoraleRage(), G_PrintActorStats(), G_TouchEdicts(), G_UpdateCharacterSkills(), GAME_NetSendCharacter(), HOS_UpdateMenu(), HUD_UpdateAllActors(), MP_UpdateMenuParameters_f(), TR_CargoList(), TR_CheckEmployee(), and TR_TransferSelect().
char character_s::path[MAX_VAR] |
Definition at line 256 of file chr_shared.h.
Referenced by CHRSH_CharGetBody(), CHRSH_CharGetHead(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), Com_GetCharacterValues(), G_ClientReadCharacter(), and GAME_NetSendCharacter().
Definition at line 279 of file chr_shared.h.
Referenced by CL_ActorReservationChange(), CL_ActorReservedTUs(), CL_ActorReserveTUs(), CL_ActorSetShotSettings(), G_ActorGetReservedTUs(), G_ActorHasEnoughTUsReactionFire(), G_ActorReserveTUs(), G_ClientAction(), G_ClientStateChange(), G_Damage(), G_EventActorSendReservations(), and HUD_PopupFiremodeReservation().
< Stores the reserved TUs for actions.
Definition at line 280 of file chr_shared.h.
Referenced by CL_ActorSetRFMode(), G_ActorGetTUForReactionFire(), G_ActorHasWorkingFireModeSet(), G_ActorInvMove(), G_EventReactionFireChange(), G_ReactionFireGetTUsForItem(), G_ReactionFireSetDefault(), G_ReactionFireTryToShoot(), G_ReactionFireUpdate(), and HUD_DisplayFiremodeEntry().
Array of scores/stats the soldier/unit collected over time.
Definition at line 269 of file chr_shared.h.
Referenced by AI_SearchBestTarget(), CHRSH_CharGenAbilitySkills(), CL_CharacterSkillAndScoreCvars(), CL_DoSwapSkills(), CL_GetHitProbability(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), CL_ShouldUpdateSoldierRank(), CL_StatsUpdate_f(), CL_SwapSkill(), CL_UGVCvars(), CL_UpdateCharacterStats(), CP_GetWinProbabilty(), CP_NationHandleBudget(), CP_ParseCharacterData(), E_CreateEmployeeAtIndex(), G_ActorGiveTimeUnits(), G_AppearPerishEvent(), G_ClientAssignDefaultActorValues(), G_ClientReadCharacter(), G_Damage(), G_Morale(), G_MoraleBehaviour(), G_SendCharacterData(), G_ShootGrenade(), G_ShootSingle(), G_UpdateCharacterBodycount(), G_UpdateCharacterSkills(), GAME_CP_CharacterCvars(), GAME_NetSendCharacter(), HOS_HealCharacter(), HOS_UpdateMenu(), TR_CargoList(), TR_CheckEmployee(), and TR_TransferSelect().
Array of scores/stats the soldier/unit collected in a mission - only used in battlescape (server side). Otherwise it's NULL.
Definition at line 270 of file chr_shared.h.
Referenced by G_ClientAssignDefaultActorValues(), G_ClientMove(), G_ClientShoot(), G_Damage(), G_GetEarnedExperience(), G_UpdateCharacterBodycount(), and G_UpdateHitScore().
Index of skin.
Definition at line 259 of file chr_shared.h.
Referenced by CL_ChangeSkin_f(), CL_ChangeSkinForWholeTeam_f(), CL_CharacterSkillAndScoreCvars(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), CL_UpdateActorAircraftVar(), Com_GetCharacterValues(), G_AppearPerishEvent(), G_ClientReadCharacter(), and GAME_NetSendCharacter().
a character can request some initial states when the team is spawned (like reaction fire)
Definition at line 267 of file chr_shared.h.
Referenced by CL_ActorStateChange(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), and GAME_CP_InitializeBattlescape().
Definition at line 264 of file chr_shared.h.
Referenced by CL_LoadCharacterXML(), CL_SaveCharacterXML(), CP_ParseCharacterData(), G_ClientReadCharacter(), and GAME_NetSendCharacter().
Pointer to team definition.
Definition at line 277 of file chr_shared.h.
Referenced by AI_CivilianCalcBestAction(), AI_SetCharacterValues(), AI_SetEquipment(), CHRSH_CharGenAbilitySkills(), CHRSH_CharGetBody(), CHRSH_CharGetHead(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), CL_UpdateCharacterValues(), Com_GetCharacterValues(), G_AppearPerishEvent(), G_ClientGetWeaponFromInventory(), G_ClientReadCharacter(), G_Damage(), G_MoralePanic(), G_ReactionFireCanBeEnabled(), G_SendInvisible(), G_UpdateCharacterSkills(), GAME_AppendTeamMember(), and GAME_NetSendCharacter().
int character_s::ucn |
unique character number
Definition at line 254 of file chr_shared.h.
Referenced by AIR_SaveAircraftXML(), CL_ActorEquipmentSelect_f(), CL_GenerateCharacter(), CL_LoadCharacterXML(), CL_SaveCharacterXML(), CP_MissionEnd(), E_EmployeeSelect(), E_GetEmployeeFromChrUCN(), G_ActorGetByUCN(), G_ClientReadCharacter(), G_SendCharacterData(), GAME_CP_InitializeBattlescape(), GAME_NetSendCharacter(), MP_SaveTeamState_f(), and TR_SaveXML().