Added WaterClimbSpeed Property to Players
This commit is contained in:
parent
b61be581d9
commit
73159dac3e
3 changed files with 7 additions and 1 deletions
|
|
@ -1997,7 +1997,9 @@ static double P_XYMovement (AActor *mo, DVector2 scroll)
|
|||
(mo->player->cmd.ucmd.forwardmove | mo->player->cmd.ucmd.sidemove) &&
|
||||
mo->BlockingLine->sidedef[1] != NULL)
|
||||
{
|
||||
mo->Vel.Z = WATER_JUMP_SPEED;
|
||||
double spd = mo->FloatVar(NAME_WaterClimbSpeed);
|
||||
if (fabs(spd) >= EQUAL_EPSILON)
|
||||
mo->Vel.Z = spd;
|
||||
}
|
||||
// If the blocked move executed any push specials that changed the
|
||||
// actor's velocity, do not attempt to slide.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue