AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Set player aim angle to another player (https://forums.alliedmods.net/showthread.php?t=117454)

xbatista 02-01-2010 09:19

Set player aim angle to another player
 
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 ?

Exolent[jNr] 02-01-2010 09:56

Re: Set player aim angle to another player
 
http://forums.alliedmods.net/showthread.php?t=49343

entity_set_aim().

xbatista 02-01-2010 10:40

Re: Set player aim angle to another player
 
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

Exolent[jNr] 02-01-2010 11:49

Re: Set player aim angle to another player
 
Aimbot much?

xbatista 02-01-2010 12:42

Re: Set player aim angle to another player
 
what? :)

Sylwester 02-01-2010 17:21

Re: Set player aim angle to another player
 
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


M249-M4A1 02-01-2010 21:50

Re: Set player aim angle to another player
 
Quote:

Originally Posted by Exolent[jNr] (Post 1075232)
Aimbot much?

thats what i think

xbatista 02-02-2010 12:15

Re: Set player aim angle to another player
 
hmmm thanks


All times are GMT -4. The time now is 07:23.

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