damage event
Heres my damage event which works like life steal
PHP Code:
|
Re: damage event
Code:
Not that this would help your problem, but, isn't that the same as this: Code:
You made them both floats, only to floatround afterwards? |
Re: damage event
yes it is the same but I'm not sure if damage can be a float or not so I just made it into a float then rounded it up to a integer
|
Re: damage event
Quote:
Now, try to explain, what is the ammount to give to who and we will be able to fix it. bcas current_hp + current_hp + damage = new life? makes no sense. If attacker has 70 hp and damage 35 it would be 70 + 70 + 35 = 175. And on top of that, that gives the player who gets damaged extra life. This means no one would be able to kill anyone unless damage > 100. This gives attacker +(damage/3) to life so if attacker does 140 damage he gets 46 hp: Code:
|
Re: damage event
thxs [ --<-@ ] Black Rose
works like a charm |
| All times are GMT -4. The time now is 00:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.