]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/minelayer.qc
Revert "Remove legacy Quake bbox expansion: projectiles"
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / minelayer.qc
index 40474b874030a8fed1b2a03e933b064a82057733..c73db2bc28f1d9e634d87b36fc4a21b5146b6e39 100644 (file)
@@ -20,7 +20,7 @@ void W_MineLayer_Stick(entity this, entity to)
        newmine.realowner = this.realowner;
        setorigin(newmine, this.origin);
        setmodel(newmine, MDL_MINELAYER_MINE);
-       setsize(newmine, MINE_MINS, MINE_MAXS);
+       setsize(newmine, '-4 -4 -4', '4 4 4');
        newmine.angles = vectoangles(-trace_plane_normal); // face against the surface
 
        newmine.movedir = -trace_plane_normal;
@@ -269,7 +269,7 @@ void W_MineLayer_Attack(Weapon thiswep, entity actor, .entity weaponentity)
 
        W_DecreaseAmmo(thiswep, actor, WEP_CVAR(minelayer, ammo), weaponentity);
 
-       W_SetupShot_ProjectileSize(actor, weaponentity, MINE_MINS, MINE_MAXS, false, 5, SND_MINE_FIRE, CH_WEAPON_A, WEP_CVAR(minelayer, damage), thiswep.m_id);
+       W_SetupShot_ProjectileSize(actor, weaponentity, '-4 -4 -4', '4 4 4', false, 5, SND_MINE_FIRE, CH_WEAPON_A, WEP_CVAR(minelayer, damage), thiswep.m_id);
        W_MuzzleFlash(thiswep, actor, weaponentity, w_shotorg, w_shotdir);
 
        entity mine = WarpZone_RefSys_SpawnSameRefSys(actor);
@@ -295,7 +295,7 @@ void W_MineLayer_Attack(Weapon thiswep, entity actor, .entity weaponentity)
        PROJECTILE_MAKETRIGGER(mine);
        mine.projectiledeathtype = thiswep.m_id;
        mine.weaponentity_fld = weaponentity;
-       setsize(mine, MINE_MINS, MINE_MAXS);
+       setsize(mine, '-4 -4 -4', '4 4 4'); // give it some size so it can be shot
 
        setorigin(mine, w_shotorg - v_forward * 4); // move it back so it hits the wall at the right point
        W_SetupProjVelocity_Basic(mine, WEP_CVAR(minelayer, speed), 0);