Ham_TakeDamage plugin priority?
I'm not very sure about one thing.
Let's say I have two plugins: damage1.amxx damage2.amxx which are loaded at the same order. damage1 contains: if(weapon == CSW_M4A1) SetHamParamFloat(4, Damage * 1.2) damage2 contains: if(skill == 3) SetHamParamFloat(4, Damage * 1.3) and I do with M4A1 about 30 dmg, while skill is equal to three. Will Ham handle it like this: 30 * 1.2 * 1.3? and the shot will deal about 46 damage? Thanks for replies. |
Re: Ham_TakeDamage plugin priority?
As far as I know yes, not pretty sure if it gets both of them or only the one that is the HIGHEST in the plugins.ini, yet I think that it gets both of them :)
|
Re: Ham_TakeDamage plugin priority?
Why not just test it?
|
Re: Ham_TakeDamage plugin priority?
Well, as long as it's very hard (it depends on distance, aiming) to get the damage with restarts etc., I rather ask here, because I don't want to spend my life sitting on a computer chair trying to get if the damage was 42 or 46.
|
Re: Ham_TakeDamage plugin priority?
Ever hear of Debug messages? In this case, create 3 plugins to assist with the debugging/testing.
Plugin 1: Print the damage to see the original damage, then modify it. Plugin 2: Print the damage to see if it changes, then modify it. Plugin 3: Print the damage so you know the final count. |
| All times are GMT -4. The time now is 07:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.