]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add another hook, also reserve some stat slots for the mod
authorMario <zacjardine@y7mail.com>
Sun, 23 Aug 2015 01:20:38 +0000 (11:20 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 23 Aug 2015 01:20:38 +0000 (11:20 +1000)
qcsrc/client/main.qc
qcsrc/client/mutators/events.qh
qcsrc/client/view.qc
qcsrc/common/stats.qh

index 231dd68675acad0de2fb31691948b57f5fdb0fb5..12157531dc038828838d2436faf96fcf0b14a585 100644 (file)
@@ -23,6 +23,8 @@
 #include "wall.qh"
 #include "waypointsprites.qh"
 
+#include "mutators/events.qh"
+
 #include "../common/vehicles/unit/bumblebee.qh"
 #include "../common/vehicles/cl_vehicles.qh"
 #include "../common/vehicles/vehicles.qh"
index 362e8d321d28714e763cbd0751b72c544bef4260..41177cb66a321193f5eebf4ab4660b92a2be4f14 100644 (file)
@@ -35,4 +35,7 @@ string cmd_string;
     /**/
 MUTATOR_HOOKABLE(CSQC_ConsoleCommand, EV_CSQC_ConsoleCommand);
 
+/* Called when the crosshair is being updated */
+MUTATOR_HOOKABLE(UpdateCrosshair, EV_NO_ARGS);
+
 #endif
index 67bcf422493bb5ceb44b956a934cf7b50b074ccc..1475bf232603a540b62886e7f35080f74cc7700b 100644 (file)
@@ -10,6 +10,8 @@
 #include "shownames.qh"
 #include "waypointsprites.qh"
 
+#include "mutators/events.qh"
+
 #include "../common/constants.qh"
 #include "../common/mapinfo.qh"
 #include "../common/nades.qh"
@@ -801,6 +803,8 @@ void UpdateCrosshair()
                wcross_alpha_prev = wcross_alpha;
                wcross_color_prev = wcross_color;
 
+               MUTATOR_CALLHOOK(UpdateCrosshair);
+
                wcross_scale *= 1 - autocvar__menu_alpha;
                wcross_alpha *= 1 - autocvar__menu_alpha;
                wcross_size = draw_getimagesize(wcross_name) * wcross_scale;
index eb6b0ea9704c67fadbe0c65fccf0901e903b9c04..7f82ae5985a821e450be0c80f059a6626456ef2c 100644 (file)
@@ -190,22 +190,22 @@ const int STAT_CTF_FLAGSTATUS         = 124;
 // 137 empty?
 // 138 empty?
 // 139 empty?
-// 140 empty?
-// 141 empty?
-// 142 empty?
-// 143 empty?
-// 144 empty?
-// 145 empty?
-// 146 empty?
-// 147 empty?
-// 148 empty?
-// 149 empty?
-// 150 empty?
-// 151 empty?
-// 152 empty?
-// 153 empty?
-// 154 empty?
-// 155 empty?
+// 140 reserved
+// 141 reserved
+// 142 reserved
+// 143 reserved
+// 144 reserved
+// 145 reserved
+// 146 reserved
+// 147 reserved
+// 148 reserved
+// 149 reserved
+// 150 reserved
+// 151 reserved
+// 152 reserved
+// 153 reserved
+// 154 reserved
+// 155 reserved
 // 156 empty?
 // 157 empty?
 // 158 empty?