Raised This Month: $ Target: $400
 0% 

Reflect user Velocity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BigMac
Member
Join Date: Jul 2009
Old 06-22-2010 , 12:15   Reflect user Velocity
Reply With Quote #1

This is what i got so far but doesnt work all the time
PHP Code:
new Float:origin[3], Float:oFar[3], Float:oRetNormal[3];
pev(idpev_velocitygsz_set_velocity[id]);
pev(idpev_originorigin);
oFar[0] = origin[0] + (gsz_set_velocity[id][0] * 8192.0);
oFar[1] = origin[1] + (gsz_set_velocity[id][1] * 8192.0);
oFar[2] = origin[2] + (gsz_set_velocity[id][2] * 8192.0);
fm_trace_normal(idoriginoFaroRetNormal);
gsz_set_velocity[id][0] = -2.0 * (gsz_set_velocity[id][0]*oRetNormal[0])*oRetNormal[0] + gsz_set_velocity[id][0];
gsz_set_velocity[id][1] = -2.0 * (gsz_set_velocity[id][1]*oRetNormal[1])*oRetNormal[1] + gsz_set_velocity[id][1];
gsz_set_velocity[id][2] = -2.0 * (gsz_set_velocity[id][2]*oRetNormal[2])*oRetNormal[2] + gsz_set_velocity[id][2]; 
I want it to reflect the user velocity for
Height and Forward Speed
__________________
BigMac 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 14:45.


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