Raised This Month: $ Target: $400
 0% 

Need some help with vectors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-26-2011 , 11:38   Re: Need some help with vectors
Reply With Quote #1

You have to retrieve v_angle and set angles.
And set fixangle to 1 so it takes effect.

PHP Code:
{
    new 
Float:vecAngle[3]
    
pev(idpev_v_anglevecAngle)
    
vecAngle[1] += 180.0
    
while( vecAngle[1] >= 360.0 )
    {
        
vecAngle[1] -= 360.0
    
}
    
set_pev(idpev_anglesvecAngle)
    
set_pev(idpev_fixangle1)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 12-26-2011 , 13:09   Re: Need some help with vectors
Reply With Quote #2

Ok thank you, but player's movement direction is not changed.
__________________

Last edited by Kidev; 12-26-2011 at 13:39.
Kidev 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:55.


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