Getting weapon damage
How do i get damage dealt from a weapon?
|
Re: Getting weapon damage
Ham_Takedamage
also event damage look for damager.sma |
Re: Getting weapon damage
when i get the damage from a HE (for example) and then double it? sry for stupid questions :D
|
Re: Getting weapon damage
Are you asking how to double damage?
SetHamParamFloat( 4, Float:flDamage * 2 ); |
Re: Getting weapon damage
To get damage done by a grenade do this:
PHP Code:
|
Re: Getting weapon damage
Enter the weapons for which you want damage to be modified in the MULTIPLIER_WEAPONS const in the same way the current ones are listed. Set DMG_MULTIPLIER to the value that you want damage to be multiplied by. Default is 2.0, you can also reduce damage with this by using a value less than 1.0. Let me know if you have any problems, I quickly tested it and it worked. Something like this I'm sure already exists.
PHP Code:
PHP Code:
|
Re: Getting weapon damage
Thanks Bugsy! helped me a lot!
|
| All times are GMT -4. The time now is 03:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.