Skip to content

Commit

Permalink
gameplay: add a cvar to adjust max player speed
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercoms committed Apr 11, 2023
1 parent d2e9d92 commit 5f4b9e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/shared/tf/tf_gamemovement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ unsigned int CTFGameMovement::PlayerSolidMask( bool brushOnly )
return ( uMask | BaseClass::PlayerSolidMask( brushOnly ) );
}

static ConVar tf_movement_maxspeed("tf_movement_maxspeed", V_STRINGIFY(TF_MAX_SPEED), FCVAR_REPLICATED, "Maximum movement speed for players.");

//-----------------------------------------------------------------------------
// Purpose: Overridden to allow players to run faster than the maxspeed
//-----------------------------------------------------------------------------
Expand Down

3 comments on commit 5f4b9e2

@Marioiscool246
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@mastercoms
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For whatever reason, using GetFloat on this convar causes prediction errors so I had to revert it for now

@Marioiscool246
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, okay

Please sign in to comment.