]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reapply size to func_breakable when changing its model
authorMario <mario@smbclan.net>
Fri, 21 Oct 2016 01:38:32 +0000 (11:38 +1000)
committerMario <mario@smbclan.net>
Fri, 21 Oct 2016 01:38:32 +0000 (11:38 +1000)
qcsrc/common/triggers/func/breakable.qc

index d2c8ee06770202e2c23dc25b3fe3223caae385a9..b6dcd01f8843cc5f9310db9b93d213c4848e80ed 100644 (file)
@@ -109,6 +109,7 @@ void func_breakable_look_destroyed(entity this)
                        this.origin_z = floorZ;
                }
                _setmodel(this, this.mdl_dead);
+               ApplyMinMaxScaleAngles(this);
                this.effects &= ~EF_NODRAW;
        }
 
@@ -120,6 +121,7 @@ void func_breakable_look_destroyed(entity this)
 void func_breakable_look_restore(entity this)
 {
        _setmodel(this, this.mdl);
+       ApplyMinMaxScaleAngles(this);
        this.effects &= ~EF_NODRAW;
 
        if(this.mdl_dead != "") // only do this if we use mdl_dead, to behave better with misc_follow