No gravity mode
authorunc0rr
Sun, 22 Dec 2013 23:17:42 +0400
changeset 9816 e71188c140ee
parent 9815 d4621fb76284
child 9817 2f2f4f0f671d
No gravity mode
share/hedgewars/Data/Scripts/Multiplayer/NoGravity.lua
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/share/hedgewars/Data/Scripts/Multiplayer/NoGravity.lua	Sun Dec 22 23:17:42 2013 +0400
@@ -0,0 +1,9 @@
+function onNewTurn()
+    SetGravity(0)
+end
+
+function onGameTick20()
+    if TurnTimeLeft < 20 then
+        SetGravity(100)
+    end
+end