]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix incorrect size applied to mines and electro orbs when they stick to something...
authorterencehill <piuntn@gmail.com>
Mon, 5 Apr 2021 12:34:49 +0000 (14:34 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 5 Apr 2021 12:34:49 +0000 (14:34 +0200)
qcsrc/common/weapons/weapon/electro.qc
qcsrc/common/weapons/weapon/minelayer.qc

index 1505503b31bb6b7f58584e382dade98479bbd05a..0e2ef52cd0c1df80755a7330b86113dfdb0e8871 100644 (file)
@@ -258,9 +258,9 @@ void W_Electro_Orb_Stick(entity this, entity to)
 
        newproj.owner = this.owner;
        newproj.realowner = this.realowner;
-       setsize(newproj, this.mins, this.maxs);
        setorigin(newproj, this.origin);
        setmodel(newproj, MDL_PROJECTILE_ELECTRO);
+       setsize(newproj, this.mins, this.maxs);
        newproj.angles = vectoangles(-trace_plane_normal); // face against the surface
 
        newproj.takedamage = this.takedamage;
index b458e2c37371baa1c916ad2d0b92c3a1abd56002..f9ff84653a63ffa3f499cff7fa20e905203f1e6a 100644 (file)
@@ -18,9 +18,9 @@ void W_MineLayer_Stick(entity this, entity to)
 
        newmine.owner = this.owner;
        newmine.realowner = this.realowner;
-       setsize(newmine, '-4 -4 -4', '4 4 4');
        setorigin(newmine, this.origin);
        setmodel(newmine, MDL_MINELAYER_MINE);
+       setsize(newmine, '-4 -4 -4', '4 4 4');
        newmine.angles = vectoangles(-trace_plane_normal); // face against the surface
 
        newmine.mine_orientation = -trace_plane_normal;