• Player Resistance?
    2 replies, posted
Is there a way to make all players have a higher defence without adding more default health? Because I have a weapon pack that has pretty high damage and I don't want to go through everyone just to change their damage.
Iirc there's a function you can use to scale the damage a player gets. You could check if the damage is caused by a weapon, and then return like dmg * 0.5 or whatever you want.
dmginfo:ScaleDamage( 0-1 ) on function GM:EntityTakeDamage( ent, dmgInfo ) [url]http://wiki.garrysmod.com/page/GM/EntityTakeDamage[/url] [url]http://wiki.garrysmod.com/page/Category:CTakeDamageInfo[/url]
Sorry, you need to Log In to post a reply to this thread.