- Code: Select all
} else if (pml.ladder) { // ladder takes precedence over swimming
PM_LadderMove();
} else if ( pm->waterlevel > 1 ) {
// swimming
PM_WaterMove();
To allow the player climb out of the water, change in code/game/bg_pmove.c in void CheckLadder( void ):
- Code: Select all
if ((trace.fraction < 1) && ((trace.surfaceFlags & SURF_LADDER) || ( pm->waterlevel > 0.75))){
instead of
- Code: Select all
if ((trace.fraction < 1) && (trace.surfaceFlags & SURF_LADDER)){
To climb out of the water it suffices to move forward (and to look down, in case you need to rectract your head a bit). You may test this at BB.