]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Move weapon hardcoded impulses to the included weapon list and note when it should... 1052/head
authorMario <mario.mario@y7mail.com>
Wed, 6 Jul 2022 15:04:29 +0000 (01:04 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 6 Jul 2022 15:04:29 +0000 (01:04 +1000)
qcsrc/common/weapons/all.inc
qcsrc/common/weapons/all.qh

index 4da01579f19b55edbf4f22a89d609e4420263047..15e61025b7f03da9ede755c321a619d2865ccf3b 100644 (file)
@@ -25,3 +25,7 @@
 #include "weapon/seeker.qh"
 #include "weapon/shockwave.qh"
 #include "weapon/arc.qh"
+
+// Weapon registry is sorted to allocate the weapons included above first, update the value below to the number of listed weapons
+// TODO: remove eventually in a way that does not cause https://gitlab.com/xonotic/xonotic-data.pk3dir/-/issues/2714
+#define WEP_HARDCODED_IMPULSES 20
index 37858af5b6b61fc8b7f9febe6a9d6bcfa60b8af3..286b7a3d3dbfdde33e21975131c2214a691082c6 100644 (file)
@@ -308,10 +308,7 @@ WepSet WEPSET_SUPERWEAPONS;
 
 #include "all.inc"
 
-// TODO: remove after 0.8.5. Retains impulse number compatibility because 0.8.1 clients don't reload the weapons.cfg
-#define WEP_HARDCODED_IMPULSES 20
-
-// TODO: invert after 0.8.5. Will require moving 'best weapon' impulses
+// TODO: invert after changes have been made to the hardcoded weapon impulses. Will require moving 'best weapon' impulses
 #define WEP_IMPULSE_BEGIN 230
 #define WEP_IMPULSE_END bound(WEP_IMPULSE_BEGIN, WEP_IMPULSE_BEGIN + (REGISTRY_COUNT(Weapons) - 1) - 1, 253)