[HL] Giving Damage To Entity
How can I give a damage to entity (player)?
For example, I need to hit player with 50.0 (float) damage. |
Re: [HL] Giving Damage To Entity
PHP Code:
|
Re: [HL] Giving Damage To Entity
If player has armor (Half-Life), it is not correct. Damage will affect on health and armor during the game. Example:
player has 100 HP/100 AP. After taking 50.0 damage he will be 90 HP/ 80 AP I can calculate the loss of armor & health separately and use set_pev(player, pev_armorvalue, AP) and set_pev(player, pev_health, HP) to set it. But may be it's not best way. |
Re: [HL] Giving Damage To Entity
PHP Code:
PHP Code:
|
Re: [HL] Giving Damage To Entity
Спасибо! Thanks a lot!
|
Re: [HL] Giving Damage To Entity
Quote:
|
| All times are GMT -4. The time now is 07:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.