]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/hagar.qc
Merge branch 'master' into TimePath/debug_draw
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / hagar.qc
index a7c1ecd9e054c7a39d96ab22fdfbb2bffe1a2338..2544100df9cec869563691868c693dd5c7552b24 100644 (file)
@@ -133,9 +133,8 @@ void W_Hagar_Attack(Weapon thiswep)
 
        Send_Effect(EFFECT_HAGAR_MUZZLEFLASH, w_shotorg, w_shotdir * 1000, 1);
 
-       missile = spawn();
+       missile = new(missile);
        missile.owner = missile.realowner = self;
-       missile.classname = "missile";
        missile.bot_dodge = true;
        missile.bot_dodgerating = WEP_CVAR_PRI(hagar, damage);
 
@@ -176,9 +175,8 @@ void W_Hagar_Attack2(Weapon thiswep)
 
        Send_Effect(EFFECT_HAGAR_MUZZLEFLASH, w_shotorg, w_shotdir * 1000, 1);
 
-       missile = spawn();
+       missile = new(missile);
        missile.owner = missile.realowner = self;
-       missile.classname = "missile";
        missile.bot_dodge = true;
        missile.bot_dodgerating = WEP_CVAR_SEC(hagar, damage);
 
@@ -236,9 +234,8 @@ void W_Hagar_Attack2_Load_Release(int slot)
        missile = world;
        for(counter = 0; counter < shots; ++counter)
        {
-               missile = spawn();
+               missile = new(missile);
                missile.owner = missile.realowner = self;
-               missile.classname = "missile";
                missile.bot_dodge = true;
                missile.bot_dodgerating = WEP_CVAR_SEC(hagar, damage);