Raised This Month: $ Target: $400
 0% 

func_bomb_target


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
njee
Junior Member
Join Date: Nov 2010
Old 11-17-2010 , 02:06   Re: func_bomb_target
Reply With Quote #1

Quote:
Originally Posted by Emp` View Post
Catch the event you want and check if cs_get_user_mapzones for the player has the corresponding bit for bomb target.
Code:
#define CS_MAPZONE_BUY 			(1<<0)
#define CS_MAPZONE_BOMBTARGET 		(1<<1)
#define CS_MAPZONE_HOSTAGE_RESCUE 	(1<<2)
#define CS_MAPZONE_ESCAPE		(1<<3)
#define CS_MAPZONE_VIP_SAFETY 		(1<<4)

/* Returns in bitwise form if the user is in a specific map zone.
 * NOTE: If user can't plant (cs_get_user_plant(index) is 0) then cs_get_user_mapzones(index) & CS_MAPZONE_BOMBTARGET will return 0 too.
 */
native cs_get_user_mapzones(index);
However, looking at the NOTE, it seems you would be able to just check cs_get_user_plant.

If you need to know for a player without the ability to plant, you could attempt to find the bounds of the bomb target's entity (pev_mins and pev_maxs) and check if the player is within that space.
can be an example, please
njee is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode