From f7493dc4632d51c94a6a901c90e5521135868dcf Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Tue, 19 Jul 2011 14:26:04 +0300 Subject: [PATCH] Create a crosshair style stat --- data/qcsrc/common/constants.qh | 11 ++++++----- data/qcsrc/server/defs.qh | 1 + data/qcsrc/server/g_world.qc | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/data/qcsrc/common/constants.qh b/data/qcsrc/common/constants.qh index ea23f861..d2e24ff0 100644 --- a/data/qcsrc/common/constants.qh +++ b/data/qcsrc/common/constants.qh @@ -286,11 +286,12 @@ const float STAT_VORE_DIGESTING = 54; const float STAT_VORE_EATEN = 55; const float STAT_VORE_CANLEAVE = 56; const float STAT_VORE_CANSWALLOW = 57; -const float STAT_SBRING1_TYPE = 58; -const float STAT_SBRING1_CLIP = 59; -const float STAT_SBRING2_TYPE = 60; -const float STAT_SBRING2_CLIP = 61; -const float STAT_HUD = 62; +const float STAT_CROSSHAIR_STYLE = 58; +const float STAT_SBRING1_TYPE = 59; +const float STAT_SBRING1_CLIP = 60; +const float STAT_SBRING2_TYPE = 61; +const float STAT_SBRING2_CLIP = 62; +const float STAT_HUD = 63; const float HUD_NORMAL = 0; const float CTF_STATE_ATTACK = 1; const float CTF_STATE_DEFEND = 2; diff --git a/data/qcsrc/server/defs.qh b/data/qcsrc/server/defs.qh index 11d295d2..2857578f 100644 --- a/data/qcsrc/server/defs.qh +++ b/data/qcsrc/server/defs.qh @@ -608,6 +608,7 @@ string matchid; .float stats_fired[WEP_MAXCOUNT]; // for hitscan bullets fired .float stat_sbring1_type, stat_sbring1_clip, stat_sbring2_type, stat_sbring2_clip; +.float stat_crosshair_style; .float stat_leadlimit; diff --git a/data/qcsrc/server/g_world.qc b/data/qcsrc/server/g_world.qc index 331e3a68..13ad0071 100644 --- a/data/qcsrc/server/g_world.qc +++ b/data/qcsrc/server/g_world.qc @@ -664,6 +664,7 @@ void spawnfunc_worldspawn (void) addstat(STAT_VORE_DIGESTING, AS_INT, stat_digesting); addstat(STAT_VORE_EATEN, AS_INT, stat_eaten); addstat(STAT_VORE_CANLEAVE, AS_INT, stat_canleave); + addstat(STAT_CROSSHAIR_STYLE, AS_INT, stat_crosshair_style); addstat(STAT_SBRING1_TYPE, AS_INT, stat_sbring1_type); addstat(STAT_SBRING1_CLIP, AS_FLOAT, stat_sbring1_clip); addstat(STAT_SBRING2_TYPE, AS_INT, stat_sbring2_type); -- 2.39.2