Skip to content

Commit 430aa3a

Browse files
committed
Add support for func_ladder in TF2
1 parent d9cccfb commit 430aa3a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/game/shared/tf/tf_gamemovement.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ ConVar tf_movement_lost_footing_restick( "tf_movement_lost_footing_restick", "50
7777
ConVar tf_movement_lost_footing_friction( "tf_movement_lost_footing_friction", "0.1", FCVAR_REPLICATED | FCVAR_CHEAT,
7878
"Ground friction for players who have lost their footing" );
7979

80+
#ifdef MAPBASE
81+
ConVar tf_ladders( "tf_ladders", "1" );
82+
#endif
83+
8084
extern ConVar cl_forwardspeed;
8185
extern ConVar cl_backspeed;
8286
extern ConVar cl_sidespeed;
@@ -2930,7 +2934,11 @@ void CTFGameMovement::StepMove( Vector &vecDestination, trace_t &trace )
29302934
//-----------------------------------------------------------------------------
29312935
bool CTFGameMovement::GameHasLadders() const
29322936
{
2937+
#ifdef MAPBASE
2938+
return tf_ladders.GetBool();
2939+
#else
29332940
return false;
2941+
#endif
29342942
}
29352943

29362944
//-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)