chrScoreMission_s Struct Reference

Structure of all stats collected in a mission. More...

#include <chr_shared.h>

Data Fields

int movedNormal
int movedCrouched
int kills [KILLED_NUM_TYPES]
int stuns [KILLED_NUM_TYPES]
int fired [SKILL_NUM_TYPES]
int firedTUs [SKILL_NUM_TYPES]
qboolean firedHit [KILLED_NUM_TYPES]
int hits [SKILL_NUM_TYPES][KILLED_NUM_TYPES]
int firedSplash [SKILL_NUM_TYPES]
int firedSplashTUs [SKILL_NUM_TYPES]
qboolean firedSplashHit [KILLED_NUM_TYPES]
int hitsSplash [SKILL_NUM_TYPES][KILLED_NUM_TYPES]
int hitsSplashDamage [SKILL_NUM_TYPES][KILLED_NUM_TYPES]
int skillKills [SKILL_NUM_TYPES]
int heal

Detailed Description

Structure of all stats collected in a mission.

Note:
More general Info: http://ufoai.ninex.info/wiki/index.php/Proposals/Attribute_Increase
Mostly collected in g_client.c and not used anywhere else (at least that's the plan ;)). The result is parsed into chrScoreGlobal_t which is stored in savegames.
BTAxis about "hit" count: "But yeah, what we want is a counter per skill. This counter should start at 0 every battle, and then be increased by 1 everytime:
  • a direct fire weapon hits (or deals damage, same thing) the actor the weapon was fired at. If it wasn't fired at an actor, nothing should happen.
  • a splash weapon deals damage to any enemy actor. If multiple actors are hit, increase the counter multiple times."

Definition at line 75 of file chr_shared.h.


Field Documentation

int chrScoreMission_s::fired[SKILL_NUM_TYPES]

Count of fired "firemodes" (i.e. the count of how many times the soldier started shooting)

Definition at line 87 of file chr_shared.h.

Referenced by G_ClientShoot().

Definition at line 89 of file chr_shared.h.

Referenced by G_ClientShoot(), and G_UpdateHitScore().

int chrScoreMission_s::firedSplash[SKILL_NUM_TYPES]

Count of fired splash "firemodes".

Definition at line 93 of file chr_shared.h.

Referenced by G_ClientShoot().

Definition at line 95 of file chr_shared.h.

Referenced by G_ClientShoot(), and G_UpdateHitScore().

int chrScoreMission_s::firedSplashTUs[SKILL_NUM_TYPES]

Count of TUs used for the fired "firemodes" (splash damage only).

Definition at line 94 of file chr_shared.h.

Referenced by G_ClientShoot(), and G_GetEarnedExperience().

int chrScoreMission_s::firedTUs[SKILL_NUM_TYPES]

Count of TUs used for the fired "firemodes". (direct hits only)

Definition at line 88 of file chr_shared.h.

Referenced by G_ClientShoot(), and G_GetEarnedExperience().

How many hitpoints has this soldier received trough healing in battlescape.

Definition at line 102 of file chr_shared.h.

Referenced by G_Damage().

int chrScoreMission_s::hits[SKILL_NUM_TYPES][KILLED_NUM_TYPES]

Temporarily used for shot-stats calculations and status-tracking. Not used in stats. Count of hits (aliens, civilians or, teammates) per skill. It is a sub-count of "fired". It's planned to be increased by 1 for each series of shots that dealt _some_ damage.

Definition at line 90 of file chr_shared.h.

Referenced by G_GetEarnedExperience(), and G_UpdateHitScore().

int chrScoreMission_s::hitsSplash[SKILL_NUM_TYPES][KILLED_NUM_TYPES]

Same as firedHit but for Splash damage. Count of splash hits.

Definition at line 96 of file chr_shared.h.

Referenced by G_GetEarnedExperience(), and G_UpdateHitScore().

int chrScoreMission_s::hitsSplashDamage[SKILL_NUM_TYPES][KILLED_NUM_TYPES]

Count of dealt splash damage (aliens, civilians or, teammates). This is counted in overall damage (healthpoint).

Definition at line 97 of file chr_shared.h.

Referenced by G_UpdateHitScore().

int chrScoreMission_s::kills[KILLED_NUM_TYPES]
Todo:
use existing code

Count of kills (aliens, civilians, teammates)

Definition at line 83 of file chr_shared.h.

Referenced by G_GetEarnedExperience(), and G_UpdateCharacterBodycount().

Definition at line 79 of file chr_shared.h.

Referenced by G_ClientMove(), and G_GetEarnedExperience().

Definition at line 78 of file chr_shared.h.

Referenced by G_ClientMove(), and G_GetEarnedExperience().

int chrScoreMission_s::skillKills[SKILL_NUM_TYPES]
Todo:
Check HEALING of others.

Number of kills related to each skill.

Definition at line 100 of file chr_shared.h.

Referenced by G_UpdateCharacterBodycount().

int chrScoreMission_s::stuns[KILLED_NUM_TYPES]

Count of stuns(aliens, civilians, teammates)

Definition at line 84 of file chr_shared.h.

Referenced by G_UpdateCharacterBodycount().


The documentation for this struct was generated from the following file:

Generated by  doxygen 1.6.2