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