mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
allow players to run down ramps normally when no_pogo_stick bit 1 is set
This commit is contained in:
parent
013743931d
commit
d9eff16941
1 changed files with 8 additions and 8 deletions
|
@ -827,14 +827,14 @@ PlayerMove (void)
|
|||
// set onground, watertype, and waterlevel
|
||||
PM_CategorizePosition ();
|
||||
|
||||
if (no_pogo_stick->int_val & 2) {
|
||||
if (onground != -1 && pmove.oldonground == -1) { // just landed
|
||||
float save = movevars.friction;
|
||||
pmove.waterjumptime = 0;
|
||||
movevars.friction *= 3;
|
||||
PM_Friction ();
|
||||
movevars.friction = save;
|
||||
}
|
||||
if (pmove.cmd.buttons & BUTTON_JUMP
|
||||
&& onground != -1 && pmove.oldonground == -1 // just landed
|
||||
&& no_pogo_stick->int_val & 2) {
|
||||
float save = movevars.friction;
|
||||
pmove.waterjumptime = 0;
|
||||
movevars.friction *= 3;
|
||||
PM_Friction ();
|
||||
movevars.friction = save;
|
||||
}
|
||||
pmove.oldonground = onground;
|
||||
|
||||
|
|
Loading…
Reference in a new issue