Ham Take Damage help
So what the code below does is for humans only removes friendly fire completly
how ever bots still remain getting damaged by friendly fire any ideas? PHP Code:
|
Re: Ham Take Damage help
PHP Code:
EDIT: What bots are you using? Because they should obey the 'mp_friendlyfire' cvar. |
Re: Ham Take Damage help
You're never checking if the client is a bot..
|
Re: Ham Take Damage help
Quote:
and the reason its done the way it is with the multiplyer is for variable damage say you want friendly fire so ppl dont shoot just any where but you want to make it harder to kill a teammate you set dmg_var to 0.25 and it does 25% of the damage originally. But it seems to only work on humans.. I also ran a check ith no ifs just print chats and it only worked if i shot another human player Im thinking it only picks up human player hurts. using ham player hook |
Re: Ham Take Damage help
Bots cannot be hooked with Ham_TakeDamage.
|
Re: Ham Take Damage help
Quote:
Hmm know of any other way of setting damage lower using a multiplier that can hook bots? |
| All times are GMT -4. The time now is 22:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.