]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a couple of missing pieces for the impressive announcement
authorMario <zacjardine@y7mail.com>
Fri, 24 Apr 2015 05:33:32 +0000 (15:33 +1000)
committerMario <zacjardine@y7mail.com>
Fri, 24 Apr 2015 05:33:32 +0000 (15:33 +1000)
qcsrc/common/weapons/w_vortex.qc

index 6deff5e57fe7ca141efb45a47f97f5cc05023231..3c0d21354de46d73af552d758ab95f81bd293f10 100644 (file)
@@ -264,6 +264,11 @@ bool W_Vortex(int req)
                        VORTEX_SETTINGS(WEP_SKIP_CVAR, WEP_SET_PROP);
                        return true;
                }
+               case WR_SETUP:
+               {
+                       self.vortex_lasthit = 0;
+                       return true;
+               }
                case WR_CHECKAMMO1:
                {
                        ammo_amount = self.WEP_AMMO(VORTEX) >= WEP_CVAR_PRI(vortex, ammo);
@@ -289,6 +294,11 @@ bool W_Vortex(int req)
                        VORTEX_SETTINGS(WEP_CONFIG_WRITE_CVARS, WEP_CONFIG_WRITE_PROPS);
                        return true;
                }
+               case WR_RESETPLAYER:
+               {
+                       self.vortex_lasthit = 0;
+                       return true;
+               }
                case WR_RELOAD:
                {
                        W_Reload(min(WEP_CVAR_PRI(vortex, ammo), WEP_CVAR_SEC(vortex, ammo)), "weapons/reload.wav");