Garry's Mod

Garry's Mod

Hunter SWEP
Ghost Fysche 12. juni 2018 kl. 12.06
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
< >
Viser 11 av 1 kommentarer
Lobotomy 3. mai 2019 kl. 16.13 
Thats smart too bad im stupid at that :tank:
< >
Viser 11 av 1 kommentarer
Per side: 1530 50