]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/hlac.qc
Merge branch 'master' into TimePath/debug_draw
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / hlac.qc
index 2c9ed7f8df6c31ad7054fc662c5d5a7709a82c1d..4bd4656b8443590a4ef368331de10e4c54b845db 100644 (file)
@@ -87,9 +87,8 @@ void W_HLAC_Attack(Weapon thiswep)
                self.punchangle_y = random() - 0.5;
        }
 
-       missile = spawn();
+       missile = new(hlacbolt);
        missile.owner = missile.realowner = self;
-       missile.classname = "hlacbolt";
        missile.bot_dodge = true;
 
     missile.bot_dodgerating = WEP_CVAR_PRI(hlac, damage);
@@ -130,9 +129,8 @@ void W_HLAC_Attack2(void)
        W_SetupShot(self, false, 3, SND(LASERGUN_FIRE), CH_WEAPON_A, WEP_CVAR_SEC(hlac, damage));
        Send_Effect(EFFECT_BLASTER_MUZZLEFLASH, w_shotorg, w_shotdir * 1000, 1);
 
-       missile = spawn();
+       missile = new(hlacbolt);
        missile.owner = missile.realowner = self;
-       missile.classname = "hlacbolt";
        missile.bot_dodge = true;
 
     missile.bot_dodgerating = WEP_CVAR_SEC(hlac, damage);