Check if a user is in a bombsite?
Umm..cant find it in functions...how would I do this?
|
You can try cs_get_user_plant.
Also, if that doesn't work, you can find all bombsites and just check in PreThink if they're anywhere near the site, in a certain radius. |
But thats the point...I dont want it when they are planting...I want it when they are in the site.
|
Quote:
You can also hook StatusIcon, I just don't remember the parameters for the bomb icon. |
Oooooo..
See what I thought that function was saying is if they were a terrorist with the bomb... Not that they could plant the bomb in that spot. |
Quote:
|
Quote:
|
Quote:
EDIT: You can even do it outside of client_PreThink. Just don't use a set_task, client_PreThink is actually less resource intensive. |
players and bombsites are both rectangular, sphere calculations won't always work accurately in this instance.
|
Quote:
|
| All times are GMT -4. The time now is 16:21. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.