Just a stupid Question..About Damage
how can i increase the damage or decrease it?
i mean increase or decrease on percentage(%) |
Re: Just a stupid Question..About Damage
I don't know if this is the best method or the correct one, but tell me if it work and if this is what you want:
Code:
This should take the 50% of the damage, and then increase that porcent to the default damage. |
Re: Just a stupid Question..About Damage
Alucard, you must use a float for the entire calculation.
#define PORCENT 50.0 new Float:fResult = (fDamage * PORCENT) / 100.0; Why not just set PORCENT as a percentage ( 0.5 , 0.75 , 1.5 ) etc. Then you will not need to divide by 100. |
Re: Just a stupid Question..About Damage
..i can't understand at all..
can someone just make a easy explanation for me PS:i come form Hong Kong my english is poor= = #define PORCENT 50 public FwdTakeDamage(id, iInflictor, iAttacker, Float:fDamage, iDamagebits) { new Float:fResult = (fDamage * PORCENT) / 100; fDamage += fResult; so it means increase 50% damage? |
Re: Just a stupid Question..About Damage
PHP Code:
|
Re: Just a stupid Question..About Damage
THX =]
|
| All times are GMT -4. The time now is 00:11. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.