]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add the correct .use function, fixes damage value
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Apr 2011 16:22:34 +0000 (19:22 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 11 Apr 2011 16:22:34 +0000 (19:22 +0300)
qcsrc/server/w_hagar.qc

index 53419540060eb80a63d176a0404d40703ba3e15b..a770abba30aac1d18158e9f7364d360d134fbbe2 100644 (file)
@@ -154,11 +154,11 @@ void W_Hagar_Attack2_Load (void)
        {
                // time to release the rockets we've loaded
 
+               W_DecreaseAmmo(ammo_rockets, autocvar_g_balance_hagar_secondary_ammo * self.hagar_load, autocvar_g_balance_hagar_reload_ammo);
+
                W_SetupShot (self, FALSE, 2, "weapons/hagar_fire.wav", CHAN_WEAPON, autocvar_g_balance_hagar_secondary_damage);
                pointparticles(particleeffectnum("hagar_muzzleflash"), w_shotorg, w_shotdir * 1000, 1);
 
-               W_DecreaseAmmo(ammo_rockets, autocvar_g_balance_hagar_secondary_ammo * self.hagar_load, autocvar_g_balance_hagar_reload_ammo);
-
                forward = v_forward;
                right = v_right;
                up = v_up;
@@ -192,8 +192,8 @@ void W_Hagar_Attack2_Load (void)
                        }
                        prevmissile = missile;
 
-                       missile.touch = W_Hagar_Touch;
-                       missile.use = W_Hagar_Explode;
+                       missile.touch = W_Hagar_Touch; // not bouncy
+                       missile.use = W_Hagar_Explode2;
                        missile.think = adaptor_think2use_hittype_splash;
                        missile.nextthink = time + autocvar_g_balance_hagar_secondary_lifetime_min + random() * autocvar_g_balance_hagar_secondary_lifetime_rand;
                        PROJECTILE_MAKETRIGGER(missile);