How to get damage done by an attacker and...
How to get damage done by an attacker and heal 10% of that? SetEntityHealth(client, damage*0.1) doesn't do that in OnTakeDamage.
|
Re: How to get damage done by an attacker and...
Reduce the damage value by 10% in OnTakeDamage?
|
Re: How to get damage done by an attacker and...
Quote:
|
Re: How to get damage done by an attacker and...
try:
PHP Code:
|
Re: How to get damage done by an attacker and...
Quote:
EDIT: gives tag mismatch warning and doesn't work. :/ |
Re: How to get damage done by an attacker and...
Quote:
This is probably how you do it: PHP Code:
|
Re: How to get damage done by an attacker and...
ist the client the attacker?
in onTakeDamage the client is the victim.. |
Re: How to get damage done by an attacker and...
Quote:
|
Re: How to get damage done by an attacker and...
Then this should work
Code:
SetEntityHealth(attacker, GetClientHealth(attacker) + RoundToFloor(damage * .1)); |
Re: How to get damage done by an attacker and...
Quote:
EDIT: Ah wait, no, it doesn't. It treats damage as a medic's heal, so i should somehow make that damage be only detected as attacker's, not second victim's. |
All times are GMT -4. The time now is 13:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.