From: bones_was_here Date: Fri, 14 Oct 2022 08:34:12 +0000 (+1000) Subject: func_plat: Use Q3 defaults for .dmg .speed and .lip on Q3 maps X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7087e5920dd7aed30dd6e932d0e1dcdefe65ccb9;p=xonotic%2Fxonotic-data.pk3dir.git func_plat: Use Q3 defaults for .dmg .speed and .lip on Q3 maps --- diff --git a/qcsrc/common/mapobjects/func/plat.qc b/qcsrc/common/mapobjects/func/plat.qc index 15f21b1d4..4e4aa632b 100644 --- a/qcsrc/common/mapobjects/func/plat.qc +++ b/qcsrc/common/mapobjects/func/plat.qc @@ -58,7 +58,12 @@ void plat_link(entity this) spawnfunc(func_plat) { - if (this.spawnflags & CRUSH) + if (q3compat) + { + this.spawnflags = 0; // Q3 plats have no spawnflags + if (!this.dmg) this.dmg = 2; + } + else if (this.spawnflags & CRUSH) { this.dmg = 10000; } @@ -124,8 +129,8 @@ spawnfunc(func_plat) setblocked(this, plat_crush); - if (!this.speed) this.speed = 150; - if (!this.lip) this.lip = 16; + if (!this.speed) this.speed = q3compat ? 200 : 150; + if (!this.lip) this.lip = q3compat ? 8 : 16; if (!this.height) this.height = this.size.z - this.lip; this.pos1 = this.origin;