Garry's Mod

Garry's Mod

Hunter SWEP
Ghost Fysche 12 czerwca 2018 o 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
< >
Wyświetlanie 1-1 z 1 komentarzy
Lobotomy 3 maja 2019 o 16:13 
Thats smart too bad im stupid at that :tank:
< >
Wyświetlanie 1-1 z 1 komentarzy
Na stronę: 1530 50