share/hedgewars/Data/Scripts/Multiplayer/No_Gravity.lua
author Periklis Ntanasis <pntanasis@gmail.com>
Tue, 24 Dec 2013 01:10:38 +0200
changeset 9831 afa4e3e04cc5
parent 9819 5b10d119955c
permissions -rw-r--r--
typos correction
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9816
e71188c140ee No gravity mode
unc0rr
parents:
diff changeset
     1
function onNewTurn()
e71188c140ee No gravity mode
unc0rr
parents:
diff changeset
     2
    SetGravity(0)
e71188c140ee No gravity mode
unc0rr
parents:
diff changeset
     3
end
e71188c140ee No gravity mode
unc0rr
parents:
diff changeset
     4
e71188c140ee No gravity mode
unc0rr
parents:
diff changeset
     5
function onGameTick20()
e71188c140ee No gravity mode
unc0rr
parents:
diff changeset
     6
    if TurnTimeLeft < 20 then
e71188c140ee No gravity mode
unc0rr
parents:
diff changeset
     7
        SetGravity(100)
e71188c140ee No gravity mode
unc0rr
parents:
diff changeset
     8
    end
e71188c140ee No gravity mode
unc0rr
parents:
diff changeset
     9
end