aboutsummaryrefslogtreecommitdiff
path: root/gamemode/server/damagemod.lua
blob: c90fb5211f464a5ea0801f6b479d4c8de2454f8c (plain)
1
2
3
4
5
6
7
8
9
10
function GM:GetFallDamage(ply, speed)
    print("Fall dammage detected:" .. speed)
    if(ply:HasItem("Feather-fall Rune",1)) then
        ply:RemoveItem("Feather-fall Rune",1)
        return 0
    else
        return speed/11
    end
end