From: Rudolf Polzer Date: Fri, 30 Dec 2011 13:49:51 +0000 (+0100) Subject: func_plat: support a "lip" property X-Git-Tag: xonotic-v0.6.0~74^2~15 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5927ea11b70b4a3d969b451d71fce295964a7135;p=xonotic%2Fxonotic-data.pk3dir.git func_plat: support a "lip" property --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index e3f2ee769..56afeaf5b 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -231,10 +231,12 @@ void spawnfunc_func_plat() if (!self.speed) self.speed = 150; + if (!self.lip) + self.lip = 8; self.pos1 = self.origin; self.pos2 = self.origin; - self.pos2_z = self.origin_z - self.size_z + 8; + self.pos2_z = self.origin_z - self.size_z + self.lip; plat_spawn_inside_trigger (); // the "start moving" trigger