UFO: Alien Invasion
|
#include <chr_shared.h>
Data Structures | |
struct | model_t |
Public Member Functions | |
const char * | getActorSound (int gender, actorSound_t soundType) const |
Returns the actor sounds for a given category. More... | |
Data Fields | |
int | idx |
char | id [MAX_VAR] |
char | name [MAX_VAR] |
char | tech [MAX_VAR] |
char | footstepSound [MAX_VAR] |
linkedList_t *const * | names |
const int * | numNames |
linkedList_t * | models [NAME_LAST] |
int | numModels [NAME_LAST] |
linkedList_t * | sounds [SND_MAX][NAME_LAST] |
int | numSounds [SND_MAX][NAME_LAST] |
int | team |
bool | robot |
bool | armour |
bool | weapons |
const objDef_t * | onlyWeapon |
actorSizeEnum_t | size |
char | hitParticle [MAX_VAR] |
char | deathTextureName [MAX_VAR] |
short | resistance [MAX_DAMAGETYPES] |
const chrTemplate_t * | characterTemplates [MAX_TEMPLATES_PER_TEAM] |
int | numTemplates |
const BodyData * | bodyTemplate |
Definition at line 296 of file chr_shared.h.
const char * teamDef_s::getActorSound | ( | int | gender, |
actorSound_t | soundType | ||
) | const |
Returns the actor sounds for a given category.
[in] | gender | The gender of the actor |
[in] | soundType | Which sound category (actorSound_t) |
Definition at line 54 of file chr_shared.cpp.
References Com_DPrintf(), linkedList_t::data, DEBUG_CLIENT, DEBUG_SOUND, NAME_LAST, linkedList_t::next, numSounds, and sounds.
Referenced by CL_ActorPlaySound(), G_SplashDamage(), and Touch_HurtTrigger().
bool teamDef_s::armour |
Does this team use armour.
Definition at line 323 of file chr_shared.h.
Referenced by CHRSH_IsArmourUseableForTeam(), Com_ParseTeam(), InventoryInterface::EquipActorNormal(), and TEST_F().
const BodyData* teamDef_s::bodyTemplate |
Definition at line 339 of file chr_shared.h.
Referenced by AI_SetStats(), AM_CheckFire(), CL_ActorInjuryModifier(), CL_ActorWound(), Com_ParseTeam(), G_ActorGetInjuryPenalty(), G_BleedWounds(), G_ClientReadCharacter(), G_DamageActor(), G_IsActorWounded(), G_SendWoundStats(), G_TreatActor(), GAME_LoadCharacter(), GAME_NetSendCharacter(), GAME_SaveCharacter(), HOS_EntryWoundData(), HOS_GetInjuryLevel(), HOS_HealWounds(), and HUD_ActorWoundData_f().
const chrTemplate_t* teamDef_s::characterTemplates[MAX_TEMPLATES_PER_TEAM] |
Definition at line 336 of file chr_shared.h.
Referenced by CHRSH_CharGenAbilitySkills(), CHRSH_GetTemplateByID(), and Com_ParseTeam().
char teamDef_s::deathTextureName[MAX_VAR] |
texture name for death of any member of this team
Definition at line 332 of file chr_shared.h.
Referenced by CL_AddActor(), and Com_ParseTeam().
char teamDef_s::footstepSound[MAX_VAR] |
Definition at line 301 of file chr_shared.h.
Referenced by G_SendFootstepSound(), and LE_PlayFootStepSound().
char teamDef_s::hitParticle[MAX_VAR] |
Particle id of what particle effect should be spawned if a unit of this type is hit.
Definition at line 331 of file chr_shared.h.
Referenced by LE_ActorBodyHit().
char teamDef_s::id[MAX_VAR] |
id from script file.
Definition at line 298 of file chr_shared.h.
Referenced by AI_SetCharacterValues(), AIL_InitActor(), AM_CreateUnitChr(), CHRSH_CharGenAbilitySkills(), CL_TeamDefInitMenu(), Com_GetTeamDefinitionByID(), Com_GiveModel(), Com_GiveName(), Com_ParseActorModels(), Com_ParseTeam(), CP_ParseCampaignData(), InventoryInterface::EquipActorMelee(), GAME_AppendTeamMember(), GAME_CP_TeamIsKnown(), GAME_SaveCharacter(), RS_GetTechForTeam(), and TEST_F().
int teamDef_s::idx |
The index in the teamDef array.
Definition at line 297 of file chr_shared.h.
Referenced by Com_ParseTeam(), CP_ParseCampaignData(), G_EventActorAdd(), G_EventActorAppear(), GAME_CP_TeamIsKnown(), GAME_NetSendCharacter(), and RS_GetTechForTeam().
linkedList_t* teamDef_s::models[NAME_LAST] |
Models list per gender.
Definition at line 314 of file chr_shared.h.
Referenced by CL_PrecacheCharacterModels(), Com_GiveModel(), Com_ParseActorModels(), and TEST_F().
char teamDef_s::name[MAX_VAR] |
Translatable name.
Definition at line 299 of file chr_shared.h.
Referenced by CL_ActorAppear(), CL_AddTargetingBox(), CL_TeamDefInitMenu(), Com_GetGender(), and InventoryInterface::EquipActorNormal().
linkedList_t* const* teamDef_s::names |
Names list per gender.
Definition at line 303 of file chr_shared.h.
Referenced by Com_GiveName(), and Com_ParseTeam().
Amount of models in this list for all different genders.
Definition at line 315 of file chr_shared.h.
Referenced by CL_PrecacheCharacterModels(), Com_GetGender(), Com_GiveModel(), Com_ParseActorModels(), and TEST_F().
const int* teamDef_s::numNames |
Amount of names in this list for all different genders.
Definition at line 304 of file chr_shared.h.
Referenced by Com_GetGender(), Com_GiveName(), and Com_ParseTeam().
Amount of sounds in this list for all different genders and soundtypes.
Definition at line 318 of file chr_shared.h.
Referenced by Com_ParseActorSounds(), and getActorSound().
int teamDef_s::numTemplates |
Definition at line 337 of file chr_shared.h.
Referenced by CHRSH_CharGenAbilitySkills(), CHRSH_GetTemplateByID(), Com_ParseTeam(), and TEST_F().
const objDef_t* teamDef_s::onlyWeapon |
ods[] index - If this team is not able to use 'normal' weapons, we have to assign a weapon to it The default value is NONE for every 'normal' actor - but e.g. bloodspiders only have the ability to melee attack their victims. They get a weapon assigned with several bloodspider melee attack firedefinitions
Definition at line 325 of file chr_shared.h.
Referenced by AI_SetEquipment(), AIL_isfighter(), AM_CreateUnitChr(), Com_ParseTeam(), InventoryInterface::EquipActorMelee(), G_ReactionFireCanBeEnabled(), and GAME_AppendTeamMember().
short teamDef_s::resistance[MAX_DAMAGETYPES] |
Resistance to damage
Definition at line 334 of file chr_shared.h.
Referenced by Com_ParseTeam(), and G_ApplyProtection().
bool teamDef_s::robot |
Definition at line 322 of file chr_shared.h.
Referenced by CHRSH_CharGetHead(), CHRSH_IsTeamDefRobot(), CL_GetReactionFireHead(), CL_UpdateCharacterValues(), InventoryInterface::EquipActor(), G_UpdateCharacterExperience(), GAME_AppendTeamMember(), and Touch_HurtTrigger().
actorSizeEnum_t teamDef_s::size |
What size is this unit on the field (1=1x1 or 2=2x2)?
Definition at line 330 of file chr_shared.h.
Referenced by Com_GetCharacterValues().
linkedList_t* teamDef_s::sounds[SND_MAX][NAME_LAST] |
Sounds list per gender and per sound type.
Definition at line 317 of file chr_shared.h.
Referenced by Com_ParseActorSounds(), getActorSound(), and TEST_F().
int teamDef_s::team |
What is the race of this team?
Definition at line 320 of file chr_shared.h.
Referenced by CHRSH_CharGenAbilitySkills(), CHRSH_IsArmourUseableForTeam(), CHRSH_IsTeamDefAlien(), and CL_TeamDefInitMenu().
char teamDef_s::tech[MAX_VAR] |
technology_t id from research.ufo
Definition at line 300 of file chr_shared.h.
Referenced by CP_ParseCampaignData().
bool teamDef_s::weapons |
Does this team use weapons.
Definition at line 324 of file chr_shared.h.
Referenced by AI_CivilianCalcActionScore(), AIL_isfighter(), Com_ParseTeam(), InventoryInterface::EquipActor(), InventoryInterface::EquipActorNormal(), G_ClientGetWeaponFromInventory(), G_MoralePanic(), and G_ReactionFireCanBeEnabled().