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,15 +827,15 @@ PlayerMove (void)
|
||||||
// set onground, watertype, and waterlevel
|
// set onground, watertype, and waterlevel
|
||||||
PM_CategorizePosition ();
|
PM_CategorizePosition ();
|
||||||
|
|
||||||
if (no_pogo_stick->int_val & 2) {
|
if (pmove.cmd.buttons & BUTTON_JUMP
|
||||||
if (onground != -1 && pmove.oldonground == -1) { // just landed
|
&& onground != -1 && pmove.oldonground == -1 // just landed
|
||||||
|
&& no_pogo_stick->int_val & 2) {
|
||||||
float save = movevars.friction;
|
float save = movevars.friction;
|
||||||
pmove.waterjumptime = 0;
|
pmove.waterjumptime = 0;
|
||||||
movevars.friction *= 3;
|
movevars.friction *= 3;
|
||||||
PM_Friction ();
|
PM_Friction ();
|
||||||
movevars.friction = save;
|
movevars.friction = save;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
pmove.oldonground = onground;
|
pmove.oldonground = onground;
|
||||||
|
|
||||||
if (waterlevel == 2)
|
if (waterlevel == 2)
|
||||||
|
|
Loading…
Reference in a new issue