Raised This Month: $ Target: $400
 0% 

changing user velocity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bwgrubbs1
Senior Member
Join Date: Sep 2006
Old 06-23-2007 , 03:16   Re: changing user velocity
Reply With Quote #5

Now that I look at it...I think he does know what he's talking about...but he just kinda told me to use stuff like i was stupid.

Well in this case I am...because I looked up what he said

velocity_by_aim

but I dont know HOW to use this function. They give an example, but i am still unclear.

Quote:
Originally Posted by tsimscabinet at msn dot com
This native can easily be manually done with more alteration. This is an example of such:
new Float:vAngles[3] // plug in the view angles of the entity
new Float:vReturn[3] // to get out an origin fDistance away
new Float:fDistance = 400.0 // fDistance being the distance from the entity of your choice
entity_get_vector(id,EV_VEC_v_angles,vAngles)
vReturn[0] = floatcos( vAngles[1], degrees ) * fDistance
vReturn[1] = floatsin( vAngles[1], degrees ) * fDistance
vReturn[2] = floatsin( -vAngles[0], degrees ) * fDistance
bwgrubbs1 is offline
 



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 21:33.


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