mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-27 06:22:27 +00:00
Dont lower our movement speed if we are on a ramp
This commit is contained in:
parent
025210812d
commit
e6702a4fe3
1 changed files with 7 additions and 2 deletions
|
@ -893,8 +893,13 @@ static void PM_WalkMove(void)
|
|||
pml.forward[2] = 0;
|
||||
pml.right[2] = 0;
|
||||
|
||||
PM_ClipVelocity(pml.forward, pml.groundTrace.plane.normal, pml.forward, OVERCLIP);
|
||||
PM_ClipVelocity(pml.right, pml.groundTrace.plane.normal, pml.right, OVERCLIP);
|
||||
|
||||
//Blaze - july 10, 2009
|
||||
//The following two functions will lower your X/Y velocities depending on the plane you are walking on.
|
||||
//As they are now(commented out), you will stay at the same speed walking up a ramp
|
||||
//
|
||||
//PM_ClipVelocity(pml.forward, pml.groundTrace.plane.normal, pml.forward, OVERCLIP);
|
||||
//PM_ClipVelocity(pml.right, pml.groundTrace.plane.normal, pml.right, OVERCLIP);
|
||||
|
||||
VectorNormalize(pml.forward);
|
||||
VectorNormalize(pml.right);
|
||||
|
|
Loading…
Reference in a new issue