Status of a hostage
Small question.
Is it possible to ask of a hostage's status? Like... hostage_status = get_hostage_status(hostage_id) if( hostage_status == dead ) forget about it and so on.. ?? |
You could try checking its health.
|
How would I do that?
|
<EDIT>
Code:
|
Ahh, now I see how to approach the problem.
Ok next question. Looking for func_rescue_zone and func_buyzone in CS 1.6 doesn't always work. I need to get the distance between the hostage entity and a rescue or buyzone. So far I'm able to get the distance between hostages and a certain player. Any clue on why the rescue zone can be found on cs_office but not on upc? Ok maybe the "mapper" didn't put that zone in but he/she certainly put the buyzone in. But the buyzone can't be found either. This is how I loop through all entities. Code:
|
This way is better
Code:
|
Thanks VEN, I'll give it a shot.
Also, looking at the upc *.map file, the "mapper" obviously didn't put neither buyzone nor rescue zone in. Sorry for the confusion. |
| All times are GMT -4. The time now is 15:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.