Raised This Month: $ Target: $400
 0% 

[CS:GO] Detecting enemy under crosshair


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jcrr
Senior Member
Join Date: Jul 2015
Old 08-13-2015 , 12:39   [CS:GO] Detecting enemy under crosshair
Reply With Quote #1

Hello guys, how can i detect if enemy player is under crosshair of other player or in some distance from middle of crosshair??

I need somthing like this

PHP Code:
if(enemy is 100 pixels from crosshair)
{
       do 
somthing

or

PHP Code:
if(enemy is directly under crosshair)
{
       do 
somthing

Thanks in advance ;)
__________________

Jcrr is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 08-13-2015 , 13:08   Re: [CS:GO] Detecting enemy under crosshair
Reply With Quote #2

GetClientAbsOrigin my bad I misread

or

GetClientAimTarget
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 08-13-2015 at 19:02.
RedSword is offline
m_bNightstalker
Senior Member
Join Date: Jan 2015
Location: JWD
Old 08-13-2015 , 15:28   Re: [CS:GO] Detecting enemy under crosshair
Reply With Quote #3

Quote:
Originally Posted by RedSword View Post
This would only solve his "direct" dectection. To detect if a player is visible near the crosshair you need something much more advaned. Like calc the angle between client angles and target player pos and then check if the client is visible if needed.

And am I right when I say you like to create a "smooth" aimbot?

Last edited by m_bNightstalker; 08-13-2015 at 15:29.
m_bNightstalker is offline
Jcrr
Senior Member
Join Date: Jul 2015
Old 08-13-2015 , 16:20   Re: [CS:GO] Detecting enemy under crosshair
Reply With Quote #4

And am I right when I say you like to create a "smooth" aimbot?
no , i want to make automatic "enemy spotted" message when enemy is under crosshair
__________________

Jcrr 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 05:17.


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