]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/base.qh
Add a new mutator hook to handle weapon speed (projectiles etc)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / base.qh
index d7102cb81a62bc5f7080fac41c283b89a1ceebbb..199cb62fb7bcca7a448db4b3eb64b179e9020a3e 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef MUTATORS_BASE_H
+#define MUTATORS_BASE_H
 const float CBC_ORDER_EXCLUSIVE = 3;
 const float CBC_ORDER_FIRST = 1;
 const float CBC_ORDER_LAST = 2;
@@ -109,6 +111,11 @@ MUTATOR_HOOKABLE(WeaponRateFactor);
        // INPUT, OUTPUT:
                float weapon_rate;
 
+MUTATOR_HOOKABLE(WeaponSpeedFactor);
+       // allows changing weapon speed (projectiles mostly)
+       // INPUT, OUTPUT:
+               //float ret_float;
+
 MUTATOR_HOOKABLE(SetStartItems);
        // adjusts {warmup_}start_{items,weapons,ammo_{cells,plasma,rockets,nails,shells,fuel}}
 
@@ -375,3 +382,4 @@ MUTATOR_HOOKABLE(AccuracyTargetValid);
        const float MUT_ACCADD_VALID = 0; // return this flag to make the function continue if target is a client
        const float MUT_ACCADD_INVALID = 1; // return this flag to make the function always continue
        const float MUT_ACCADD_INDIFFERENT = 2; // return this flag to make the function always return
+#endif