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 , 11:38   Re: get user aim angle and change it (htfiwdt??)
Reply With Quote #6

You did not specify what vector to change:
Vector 0 is EV_VEC_origin, so i think you are trowing the player of the map

change:
entity_set_vector ( id, 0, anglesnew)
to:
entity_set_vector ( id, EV_VEC_v_angle, anglesnew)

For list of all vectors and others:
http://www.amxmodx.org/funcwiki.php?go=module&id=3


and, you can use instead of:
anglesnew[0] = angles[0] + random_float(-20.5,20.5)
anglesnew[1] = angles[1] + random_float(-21.0,21.0)
anglesnew[2] = angles[2] + random_float(-20.5,20.5)
to:
angles[0] += random_float(-20.5,20.5)
angles[1] += random_float(-21.0,21.0)
angles[2] += random_float(-20.5,20.5)
entity_set_vector ( id, EV_VEC_v_angle, angles)
__________________
http://www.nican132.com
I require reputation!

Last edited by Nican; 04-22-2007 at 11:44.
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