]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
also implement func_plat.height
authorRudolf Polzer <divverent@xonotic.org>
Fri, 30 Dec 2011 13:53:03 +0000 (14:53 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 30 Dec 2011 13:53:03 +0000 (14:53 +0100)
qcsrc/server/t_plats.qc

index 56afeaf5b284ba3af071a6d9fc422663b45e6097..fc31ad50ce3332d9027b557e0904aad1a01b8451 100644 (file)
@@ -175,11 +175,6 @@ void plat_reset()
 void spawnfunc_path_corner() { }
 void spawnfunc_func_plat()
 {
-       if (!self.t_length)
-               self.t_length = 80;
-       if (!self.t_width)
-               self.t_width = 10;
-
        if (self.sounds == 0)
                self.sounds = 2;
 
@@ -232,11 +227,13 @@ void spawnfunc_func_plat()
        if (!self.speed)
                self.speed = 150;
        if (!self.lip)
-               self.lip = 8;
+               self.lip = 16;
+       if (!self.height)
+               self.height = self.size_z - self.lip;
 
        self.pos1 = self.origin;
        self.pos2 = self.origin;
-       self.pos2_z = self.origin_z - self.size_z + self.lip;
+       self.pos2_z = self.origin_z - self.height;
 
        plat_spawn_inside_trigger ();   // the "start moving" trigger