]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Create a crosshair style stat
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 19 Jul 2011 11:26:04 +0000 (14:26 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 19 Jul 2011 11:26:04 +0000 (14:26 +0300)
data/qcsrc/common/constants.qh
data/qcsrc/server/defs.qh
data/qcsrc/server/g_world.qc

index ea23f8619dcdc7570a2877d4865ba6d3d090bc50..d2e24ff033a7a23c3f637c1871fd8a6d80da3181 100644 (file)
@@ -286,11 +286,12 @@ const float STAT_VORE_DIGESTING = 54;
 const float STAT_VORE_EATEN = 55;\r
 const float STAT_VORE_CANLEAVE = 56;\r
 const float STAT_VORE_CANSWALLOW = 57;\r
-const float STAT_SBRING1_TYPE = 58;\r
-const float STAT_SBRING1_CLIP = 59;\r
-const float STAT_SBRING2_TYPE = 60;\r
-const float STAT_SBRING2_CLIP = 61;\r
-const float STAT_HUD = 62;\r
+const float STAT_CROSSHAIR_STYLE = 58;\r
+const float STAT_SBRING1_TYPE = 59;\r
+const float STAT_SBRING1_CLIP = 60;\r
+const float STAT_SBRING2_TYPE = 61;\r
+const float STAT_SBRING2_CLIP = 62;\r
+const float STAT_HUD = 63;\r
 const float HUD_NORMAL = 0;\r
 const float CTF_STATE_ATTACK = 1;\r
 const float CTF_STATE_DEFEND = 2;\r
index 11d295d25c38c62a3523f210b5b8c5690bcab154..2857578f835b99a174089c5c587a03beaee7e130 100644 (file)
@@ -608,6 +608,7 @@ string matchid;
 .float stats_fired[WEP_MAXCOUNT];  // for hitscan bullets fired\r
 \r
 .float stat_sbring1_type, stat_sbring1_clip, stat_sbring2_type, stat_sbring2_clip;\r
+.float stat_crosshair_style;\r
 \r
 .float stat_leadlimit;\r
 \r
index 331e3a685333246da39732e92820c4d11ea2fb88..13ad0071b5eeadf572f11409fd86491908e26b4b 100644 (file)
@@ -664,6 +664,7 @@ void spawnfunc_worldspawn (void)
        addstat(STAT_VORE_DIGESTING, AS_INT, stat_digesting);\r
        addstat(STAT_VORE_EATEN, AS_INT, stat_eaten);\r
        addstat(STAT_VORE_CANLEAVE, AS_INT, stat_canleave);\r
+       addstat(STAT_CROSSHAIR_STYLE, AS_INT, stat_crosshair_style);\r
        addstat(STAT_SBRING1_TYPE, AS_INT, stat_sbring1_type);\r
        addstat(STAT_SBRING1_CLIP, AS_FLOAT, stat_sbring1_clip);\r
        addstat(STAT_SBRING2_TYPE, AS_INT, stat_sbring2_type);\r