Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/game/server/tf/tf_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ ConVar tf_max_voice_speak_delay( "tf_max_voice_speak_delay", "1.5", FCVAR_DEVELO

ConVar tf_allow_player_use( "tf_allow_player_use", "0", FCVAR_NOTIFY, "Allow players to execute +use while playing." );

ConVar tf_allow_sliding_taunt( "tf_allow_sliding_taunt", "0", FCVAR_NONE, "1 - Allow player to slide for a bit after taunting" );

ConVar tf_deploying_bomb_time( "tf_deploying_bomb_time", "1.90", FCVAR_CHEAT | FCVAR_DEVELOPMENTONLY, "Time to deploy bomb before the point of no return." );
ConVar tf_deploying_bomb_delay_time( "tf_deploying_bomb_delay_time", "0.0", FCVAR_CHEAT | FCVAR_DEVELOPMENTONLY, "Time to delay before deploying bomb." );

Expand Down Expand Up @@ -17770,7 +17772,10 @@ void CTFPlayer::OnTauntSucceeded( const char* pszSceneName, int iTauntIndex /*=
m_angTauntCamera = EyeAngles();

// Slam velocity to zero.
SetAbsVelocity( vec3_origin );
if ( !tf_allow_sliding_taunt.GetBool() )
{
SetAbsVelocity( vec3_origin );
}

// play custom set taunt particle if we have a full set equipped
if ( IsPlayerClass( TF_CLASS_SPY ) )
Expand Down
10 changes: 0 additions & 10 deletions src/game/shared/tf/tf_player_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ ConVar tf_damage_events_track_for( "tf_damage_events_track_for", "30", FCVAR_DE

extern ConVar tf_halloween_giant_health_scale;

ConVar tf_allow_sliding_taunt( "tf_allow_sliding_taunt", "0", FCVAR_NONE, "1 - Allow player to slide for a bit after taunting" );

#endif // GAME_DLL


Expand Down Expand Up @@ -13014,14 +13012,6 @@ bool CTFPlayer::CanMoveDuringTaunt()

if ( m_Shared.InCond( TF_COND_TAUNTING ) || m_Shared.InCond( TF_COND_HALLOWEEN_THRILLER ) )
{
#ifdef GAME_DLL
if ( tf_allow_sliding_taunt.GetBool() )
{
return true;
}
#endif // GAME_DLL


if ( m_bAllowMoveDuringTaunt )
{
return true;
Expand Down