Garry's Mod

Garry's Mod

Hunter SWEP
Ghost Fysche 12 Jun, 2018 @ 12:06pm
fall damage issue code
fixed your fall damage problem messing with the code

put this in your if ( SERVER ) then

local function ReduceFallDamage(ent, dmginfo)
if ent:IsPlayer() and ent.ShouldReduceFallDamage and dmginfo:IsFallDamage() then
dmginfo:ScaleDamage(.5w)
end
end
function SWEP:Deploy()
self.waitingwep = 0
self.Weapon:EmitSound("weapons/hunter/growl.wav")
self.Owner.ShouldReduceFallDamage = true
end
function SWEP:Holster()
self.Owner.ShouldReduceFallDamage = false
return true
end
< >
Showing 1-1 of 1 comments
Lobotomy 3 May, 2019 @ 4:13pm 
Thats smart too bad im stupid at that :tank:
< >
Showing 1-1 of 1 comments
Per page: 1530 50