Raised This Month: $ Target: $400
 0% 

Set player aim angle to another player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-01-2010 , 09:19   Set player aim angle to another player
Reply With Quote #1

How to set 1-st player v_angle on other 2-nd player body(just aim on his body), but if that player found on 1-st player's screen ?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-01-2010 , 09:56   Re: Set player aim angle to another player
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=49343

entity_set_aim().
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-01-2010 , 10:40   Re: Set player aim angle to another player
Reply With Quote #3

Not really this , I mean if any other player found on your screen then automatically aim on him, I mean pev_V_angle, I don't know how to do this, not enough brains / run out off brains / maths is poor
__________________

Last edited by xbatista; 02-01-2010 at 10:46.
xbatista is offline
Send a message via Skype™ to xbatista
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-01-2010 , 11:49   Re: Set player aim angle to another player
Reply With Quote #4

Aimbot much?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-01-2010 , 12:42   Re: Set player aim angle to another player
Reply With Quote #5

what?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 02-01-2010 , 17:21   Re: Set player aim angle to another player
Reply With Quote #6

try this:
PHP Code:
    new Float:t[3], Float:o[3]
    
pev(idpev_origino)
    
pev(targetpev_origint)
    
t[0] = t[0]-o[0]
    
t[1] = t[1]-o[1]
    
t[2] = t[2]-o[2]-17.0

    
new Float:xy_dist floatsqroot(t[0]*t[0] + t[1]*t[1])
    new 
Float:angle[3]
    if(
t[1]<0)
        
angle[1]=-floatacos(t[0]/xy_dist1)
    else
        
angle[1]=floatacos(t[0]/xy_dist1)
    
angle[0]=-floatatan(t[2]/xy_dist1)

    
set_pev(idpev_anglesangle)
    
set_pev(idpev_fixangle1
__________________
Impossible is Nothing
Sylwester is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 02-01-2010 , 21:50   Re: Set player aim angle to another player
Reply With Quote #7

Quote:
Originally Posted by Exolent[jNr] View Post
Aimbot much?
thats what i think
__________________
M249-M4A1 is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-02-2010 , 12:15   Re: Set player aim angle to another player
Reply With Quote #8

hmmm thanks
__________________
xbatista is offline
Send a message via Skype™ to xbatista
Reply


Thread Tools
Display Modes

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 07:23.


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