AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Velocity (https://forums.alliedmods.net/showthread.php?t=196526)

Pastout 09-22-2012 09:57

Velocity
 
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

Liverwiz 09-22-2012 10:36

Re: Velocity
 
HOMIGAWD Search dude....this is STILL an active question.
And if its your thread. :nono:

Pastout 09-22-2012 10:39

Re: Velocity
 
Quote:

Originally Posted by Liverwiz (Post 1803949)
HOMIGAWD Search dude....this is STILL an active question.
And if its your thread. :nono:

Search for what? I have search for velocity before none of them are the results im trying to produce.

SpeeDeeR 09-22-2012 10:59

Re: Velocity
 
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.

Pastout 09-22-2012 11:04

Re: Velocity
 
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.


All times are GMT -4. The time now is 08:21.

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