Skip to content

Commit fa1861c

Browse files
Add vsh_top_score_outline, disabled by default
1 parent 4981a8f commit fa1861c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

addons/sourcemod/configs/vsh/vsh.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,6 +2431,8 @@
24312431
"vsh_telefrag_damage" "8000" //Damage amount to boss from telefrag
24322432
"vsh_music_enable" "1" //Enable boss music?
24332433
"vsh_rps_enable" "0" //Allow everyone use Rock Paper Scissors Taunt?
2434+
"vsh_blacklist_amount" "2" //How many bosses can a player blacklist? (0 disables this feature)
2435+
"vsh_top_score_outline" "0" //Should bosses see the top scoring player through walls via an outline?
24342436
24352437
"vsh_boss_chance_saxton" "0.30" //% chance for next boss to be Saxton Hale from normal bosses pool (0.0 - 1.0)
24362438
"vsh_boss_chance_multi" "0.15" //% chance for next boss to be Multiple bosses (0.0 - 1.0)
@@ -2440,8 +2442,6 @@
24402442
"vsh_cookies_preferences" "1" //Should preferences use cookies to store? (Disable if you want to store preferences somewhere else)
24412443
"vsh_cookies_queue" "1" //Should queue use cookies to store? (Disable if you want to store queue somewhere else)
24422444
2443-
"vsh_blacklist_amount" "2" //How many bosses can a player blacklist? (0 disables this feature)
2444-
24452445
"vsh_class_limit" "1" //Enable/Disable entire class limit
24462446
"vsh_class_limit_scout" "6" //Max on how many players can play as that class, use -1 for no limit
24472447
"vsh_class_limit_soldier" "6"

addons/sourcemod/scripting/saxtonhale.sp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ public void OnPluginStart()
762762
g_ConfigConvar.Create("vsh_music_enable", "1", "Enable boss music?", _, true, 0.0, true, 1.0);
763763
g_ConfigConvar.Create("vsh_rps_enable", "1", "Allow everyone use Rock Paper Scissors Taunt?", _, true, 0.0, true, 1.0);
764764
g_ConfigConvar.Create("vsh_blacklist_amount", "2", "Maximum amount of bosses a player can blacklist for themselves (0 disables the feature)", _, true, 0.0);
765+
g_ConfigConvar.Create("vsh_top_score_outline", "0", "Lets bosses see the top scoring player through walls via an outline.", _, true, 0.0, true, 1.0);
765766

766767
//Incase of lateload, call client join functions
767768
for (int iClient = 1; iClient <= MaxClients; iClient++)
@@ -1804,6 +1805,9 @@ Action GiveNamedItem(int iClient, const char[] sClassname, int iIndex)
18041805

18051806
void UpdateClientGlowEnt(int iClient)
18061807
{
1808+
if (!g_ConfigConvar.LookupBool("vsh_top_score_outline"))
1809+
return;
1810+
18071811
static char sClassModels[][PLATFORM_MAX_PATH] = { //Do we need to precache this? or does TF2 already precache it
18081812
"",
18091813
"models/player/scout.mdl",
@@ -1835,6 +1839,12 @@ void UpdateClientGlowEnt(int iClient)
18351839

18361840
public Action Transmit_PlayerGlow(int iEntity, int iTarget)
18371841
{
1842+
if (!g_ConfigConvar.LookupBool("vsh_top_score_outline"))
1843+
{
1844+
RemoveEntity(iEntity);
1845+
return Plugin_Stop;
1846+
}
1847+
18381848
int iClient = GetEntPropEnt(iEntity, Prop_Data, "m_hParent");
18391849
if (iClient == INVALID_ENT_REFERENCE)
18401850
{

0 commit comments

Comments
 (0)