Garry's Mod

Garry's Mod

Hunter SWEP
Ghost Fysche 2018년 6월 12일 오후 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
< >
전체 댓글 1개 중 1~1개 표시 중
Lobotomy 2019년 5월 3일 오후 4시 13분 
Thats smart too bad im stupid at that :tank:
< >
전체 댓글 1개 중 1~1개 표시 중
페이지당 표시 개수: 1530 50