Raised This Month: $ Target: $400
 0% 

Velocity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 09-22-2012 , 09:57   Velocity
Reply With Quote #1

I want to set a players velocity to the same velocity as a entity; So a player can still stand on it and move around on it as the entity moves to. This is a snip of what I have so far, but when the player stands on the entity the players velocity is off. All i want is the players velocity to match the entity's velocity so he/she can run/walk/stand on it like a func_train entity works.

PHP Code:
pevidpev_velocityvelocity1 );
peviEntitypev_velocityvVelocity2 );

nVelocity[0] = (velocity1[0] + (vVelocity2[0]));
nVelocity[1] = (velocity1[1] + (vVelocity2[1]));
nVelocity[2] = (velocity1[2] + (vVelocity2[2]));
set_pevidpev_velocitynVelocity ); 
Thanks
Pastout is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-22-2012 , 10:36   Re: Velocity
Reply With Quote #2

HOMIGAWD Search dude....this is STILL an active question.
And if its your thread.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 09-22-2012 , 10:39   Re: Velocity
Reply With Quote #3

Quote:
Originally Posted by Liverwiz View Post
HOMIGAWD Search dude....this is STILL an active question.
And if its your thread.
Search for what? I have search for velocity before none of them are the results im trying to produce.
Pastout is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 09-22-2012 , 10:59   Re: Velocity
Reply With Quote #4

I had the same problem and could solved it like that.
Try setting the entity's solid state to bbox and the movetype to noclip.
SpeeDeeR is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 09-22-2012 , 11:04   Re: Velocity
Reply With Quote #5

I have try every movetype there is and the only movetype that came close to what i was trying to do was movetype_step, but it causes the entity to drop to the ground and stay on the ground. right now im using movetype_fly.
Pastout 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 08:21.


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