]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/porto.qc
Entity debugger
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / porto.qc
index 89019c40c1b15d879c4782feccfa68fb13f6bc69..35689dadd188552f5ef528ab20e16292f7d8be27 100644 (file)
@@ -251,11 +251,10 @@ void W_Porto_Attack(float type)
 
        //Send_Effect(EFFECT_GRENADE_MUZZLEFLASH, w_shotorg, w_shotdir * 1000, 1);
 
-       gren = spawn();
+       gren = new(porto);
        gren.cnt = type;
        gren.owner = gren.realowner = self;
        gren.playerid = self.playerid;
-       gren.classname = "porto";
        gren.bot_dodge = true;
        gren.bot_dodgerating = 200;
        gren.movetype = MOVETYPE_BOUNCEMISSILE;