]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/arena.qc
Arena: block players before the round start in a MUCH better way, like frozen players...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / arena.qc
index a51da69ff041b1afc9051f69b789692ef2f58c7e..d9bcf5c3e1a802b7f554487f8beb709caa3872fc 100644 (file)
@@ -256,10 +256,7 @@ void Arena_Warmup()
                        FOR_EACH_CLIENT(e)
                        {
                                if(e.spawned && e.classname == "player")
-                                       e.movetype = MOVETYPE_NONE;
-                               e.velocity = '0 0 0';
-                               e.avelocity = '0 0 0';
-                               e.movement = '0 0 0';
+                                       e.blocked = 1;
                        }
                }
        }
@@ -278,10 +275,10 @@ void Arena_Warmup()
                }
 
                if(g_arena) {
-                       FOR_EACH_PLAYER(e)
+                       FOR_EACH_CLIENT(e)
                        {
-                               if(e.health > 0 && e.movetype == MOVETYPE_NONE)
-                                       e.movetype = MOVETYPE_WALK;
+                               if(e.blocked)
+                                       e.blocked = 0;
                        }
                }
        }