Changing player's damage.
If I have 2 plugins, and first plugin set the damage to *2.0
PHP Code:
PHP Code:
100*2*3 = 600 ? or 100*2.0 + 100*3.0 = 500 ?? |
Re: Changing player's damage.
there's no '+' in theses examples, I think it will be 100*2*3 = 600
|
Re: Changing player's damage.
Either damage gonna be *2*3, so *6, either the last value gonna be used.
You should log in both plugins the damage input value, i guess it is the same in both plugins so only 1 change is applied. |
Re: Changing player's damage.
The damage may be 300 (if the 3x dmg plugin is the second) if you don't return HAM_SUPERCEDE in the first. But I'm not sure, why don't you just test?
|
Re: Changing player's damage.
HAM_SUPERCEDE in either plugin will make it block damage completely. All the numbers will be correct but the actual health won't change.
In any other case the second plugin will receive what the first plugin sends. In this example the result would be 100*2*3 (600). Yes, I tested it. Code:
Code:
Code:
Plugin 1: Original damage: 16.8, new damage: 20.1 |
Re: Changing player's damage.
Thanks all :)
|
Re: Changing player's damage.
Quote:
|
Re: Changing player's damage.
That is indeed very funny. I'm still laughing after writing it.
... ? |
| All times are GMT -4. The time now is 19:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.