Raised This Month: $ Target: $400
 0% 

get user aim angle and change it (htfiwdt??)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 04-22-2007 , 12:03   Re: get user aim angle and change it (htfiwdt??)
Reply With Quote #8

Hmm... hold on, let me try


EDIT:
Ok this works:
PHP Code:
public testtt(id){
    
    if (!(
get_user_flags(id)&ADMIN_MAP))
        return 
PLUGIN_HANDLED
    
    
new Float:angles[3]
    
entity_get_vector(id,EV_VEC_v_angle,angles)

    
angles[0] += random_float(-20.5,20.5)
    
angles[1] += random_float(-21.0,21.0)  

    
entity_set_vector idEV_VEC_v_angleangles)  
    
entity_set_int(id,EV_INT_fixangle,1)
    return 
PLUGIN_HANDLED

And it is true, the third value of angle is alweys 0..
__________________
http://www.nican132.com
I require reputation!

Last edited by Nican; 04-22-2007 at 12:28.
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican
 



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 06:46.


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