Skip to content

Commit 8afec43

Browse files
committed
Add expanded version of ValveSoftware#1446
1 parent c2fe298 commit 8afec43

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

src/game/client/tf/tf_hud_mainmenuoverride.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,19 @@ void CHudMainMenuOverride::OnCommand( const char *command )
19871987
else if ( FStrEq( "watch_stream", command ) )
19881988
{
19891989
//SetWatchStreamVisible( !m_pWatchStreamsPanel->IsVisible() );
1990+
#ifdef BDSBASE
1991+
//vgui::system()->ShellExecute( "open", "https://www.twitch.tv/directory/game/Team%20Fortress%202" );
1992+
1993+
ShowConfirmDialog("#TF_Watch_Streams_Title", "#TF_Watch_Streams_Text",
1994+
"#MessageBox_OK",
1995+
"#cancel", [](bool bConfirmed, void* pContext)
1996+
{
1997+
if (bConfirmed)
1998+
vgui::system()->ShellExecute("open", "https://www.twitch.tv/directory/game/Team%20Fortress%202");
1999+
});
2000+
#else
19902001
vgui::system()->ShellExecute( "open", "https://www.twitch.tv/directory/game/Team%20Fortress%202" );
2002+
#endif
19912003
}
19922004
else if ( FStrEq( "close_quest_map", command ) )
19932005
{

src/game/client/tf/tf_streams.cpp

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#include "bitmap/bitmap.h"
2020
#include "imageutils.h"
2121

22+
#ifdef BDSBASE
23+
#include "confirm_dialog.h"
24+
#endif
25+
2226
#include "tier2/fileutils.h"
2327

2428
#include "checksum_sha1.h"
@@ -776,7 +780,19 @@ void CTFStreamListPanel::OnCommand( const char *command )
776780
}
777781
else if ( FStrEq( command, "view_more" ) )
778782
{
779-
vgui::system()->ShellExecute( "open", "https://www.twitch.tv/directory/game/Team%20Fortress%202" );
783+
#ifdef BDSBASE
784+
//vgui::system()->ShellExecute( "open", "https://www.twitch.tv/directory/game/Team%20Fortress%202" );
785+
786+
ShowConfirmDialog("#TF_Watch_Streams_Title", "#TF_Watch_Streams_Text",
787+
"#MessageBox_OK",
788+
"#cancel", [](bool bConfirmed, void* pContext)
789+
{
790+
if (bConfirmed)
791+
vgui::system()->ShellExecute("open", "https://www.twitch.tv/directory/game/Team%20Fortress%202");
792+
});
793+
#else
794+
vgui::system()->ShellExecute("open", "https://www.twitch.tv/directory/game/Team%20Fortress%202");
795+
#endif
780796
}
781797
else
782798
{

src/game/server/tf/tf_player.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ ConVar tf_highfive_height_tolerance( "tf_highfive_height_tolerance", "12", FCVAR
237237
ConVar tf_highfive_debug( "tf_highfive_debug", "0", FCVAR_NONE, "Turns on some console spew for debugging high five issues." );
238238

239239
#ifdef BDSBASE
240-
ConVar tf_allow_econ_tauntkill("tf_allow_econ_tauntkill", "0", FCVAR_NOTIFY, "Allow equippable taunts to tauntkill.");
240+
ConVar tf_allow_econ_tauntkill("tf_allow_econ_tauntkill", "1", FCVAR_NOTIFY, "Allow equippable taunts to tauntkill.");
241+
//new range is 175 (credit to ficool2), old range is 500.
242+
ConVar tf_tauntkill_trickshot_range("tf_tauntkill_trickshot_range", "175", FCVAR_NOTIFY, "Alows you to use the old or new range values (or any values in between) of the range for the Texan Trickshot", true, 175, true, 500);
241243
#endif
242244

243245
ConVar tf_test_teleport_home_fx( "tf_test_teleport_home_fx", "0", FCVAR_CHEAT );
@@ -19734,7 +19736,7 @@ void CTFPlayer::DoTauntAttack( void )
1973419736
}
1973519737
}
1973619738
#ifdef BDSBASE
19737-
else if (iTauntAttack == TAUNTATK_HEAVY_HIGH_NOON || iTauntAttack == TAUNTATK_ENGINEER_TRICKSHOT)
19739+
else if (iTauntAttack == TAUNTATK_HEAVY_HIGH_NOON || (tf_allow_econ_tauntkill.GetBool() && iTauntAttack == TAUNTATK_ENGINEER_TRICKSHOT))
1973819740
#else
1973919741
else if ( iTauntAttack == TAUNTATK_HEAVY_HIGH_NOON )
1974019742
#endif
@@ -19748,8 +19750,7 @@ void CTFPlayer::DoTauntAttack( void )
1974819750

1974919751
if (iTauntAttack == TAUNTATK_ENGINEER_TRICKSHOT)
1975019752
{
19751-
//credit to ficool2
19752-
range = 175;
19753+
range = tf_tauntkill_trickshot_range.GetInt();
1975319754
}
1975419755

1975519756
Vector vecEnd = EyePosition() + vecForward * range;

0 commit comments

Comments
 (0)