Raised This Month: $ Target: $400
 0% 

Detect looking at bomb


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 08-31-2009 , 13:04   Detect looking at bomb
Reply With Quote #1

How would you detect if a player is looking at the bomb?
BOYSplayCS is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 08-31-2009 , 13:12   Re: Detect looking at bomb
Reply With Quote #2

is_in_viewcone(entity, const Floatrigin[3], use3d = 0) ?
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 08-31-2009 , 13:19   Re: Detect looking at bomb
Reply With Quote #3

I believe you want to detect if player is looking direct to bomb instead of just seeing it. Then you would do something similiar as:
PHP Code:
new entbodypart;
get_user_aimingidentbodypart );
if( 
is_ent_bombent ) )
     
//Action 
SnoW is offline
Send a message via MSN to SnoW
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 08-31-2009 , 13:18   Re: Detect looking at bomb
Reply With Quote #4

Hmm, I don't think that's it. I mean a whole function.
BOYSplayCS is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 08-31-2009 , 13:20   Re: Detect looking at bomb
Reply With Quote #5

Ah, that makes more sense. Thank you SnoW ;)
BOYSplayCS 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 15:09.


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