Unnamed
public text v1 · immutable
function NANOSUIT.EntityTakeDamage( Player, _, _, Amount, DmgInfo )
if not Player:IsPlayer( ) then
return DmgInfo
end
if Player:GetNanosuitMode( ) == MODE_ARMOUR then
if Player:TakeNanosuitEnergy( Amount * 0.5 ) then
DmgInfo:SetDamage( math.floor( DmgInfo:GetDamage( ) * 0.1 ) )
end
return DmgInfo
end
end
hook.Add( "EntityTakeDamage", "NanosuitScaleDamage", NANOSUIT.EntityTakeDamage )