]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
func_plat: support a "lip" property
authorRudolf Polzer <divverent@xonotic.org>
Fri, 30 Dec 2011 13:49:51 +0000 (14:49 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 30 Dec 2011 13:49:51 +0000 (14:49 +0100)
qcsrc/server/t_plats.qc

index e3f2ee769ee56d7d61df75ee9ade2f8e9ba7412a..56afeaf5b284ba3af071a6d9fc422663b45e6097 100644 (file)
@@ -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