]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/w_nex.qc
Work on adding separate switch delays for each weapon anim, plus clean up
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_nex.qc
index 23dcce96d81a73fa8e2e3ab2e51cd56dbb2189cf..ad5e2034284cc2b4f27d893ac628e414a11d88ba 100644 (file)
@@ -1,5 +1,15 @@
 #ifdef REGISTER_WEAPON
-REGISTER_WEAPON(NEX, w_nex, IT_CELLS, 7, WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE | WEP_TYPE_HITSCAN, BOT_PICKUP_RATING_HIGH, "nex", "nex", _("Nex"))
+REGISTER_WEAPON(
+/* WEP_##id  */ NEX,
+/* function  */ w_nex,
+/* ammotype  */ IT_CELLS,
+/* impulse   */ 7,
+/* flags     */ WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE | WEP_TYPE_HITSCAN,
+/* rating    */ BOT_PICKUP_RATING_HIGH,
+/* model     */ "nex",
+/* shortname */ "nex",
+/* fullname  */ _("Nex")
+);
 #else
 #ifdef SVQC
 
@@ -208,6 +218,8 @@ float w_nex(float req)
        {
                weapon_setup(WEP_NEX);
                self.current_ammo = ammo_cells;
+               self.weaponentity.switchdelay_drop = autocvar_g_balance_nex_switchdelay_drop;
+               self.weaponentity.switchdelay_raise = autocvar_g_balance_nex_switchdelay_raise;
        }
        else if (req == WR_CHECKAMMO1)
        {