Fall Damage

I’ve been trying to make the player have no fall damage while holding a specific weapon, I have tried every kind of tutorial and wiki info I’ve found around the internet, none of them seem to work anymore…

(User was banned for this post ("undescriptive thread title" - Gran PC))

function GM:GetFallDamage( ply )
    if ply:GetActiveWeapon() == "weapon" then	
        return 0
    else return 10

You can add this to the shared.lua and it should work.

Thanks I’ll try that

[editline]24th May 2013[/editline]

I’m adding that to the weapon’s folder cl_init.lua

Put this in a shared file. shared.lua, e.g.

function GAMEMODE:GetFallDamage()
if ply:GetActiveWeapon():GetClass() == “weapon_pistol” then
return 0

Don’t return something if you’re not modifying it.