Skip to content

Commit 38764de

Browse files
committed
Hud CSGO: Welcome title can be disabled & changed default value
1 parent 99b9796 commit 38764de

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

addons/sourcemod/scripting/influx_hud_draw_csgo.sp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public APLRes AskPluginLoad2( Handle hPlugin, bool late, char[] szError, int err
8080
public void OnPluginStart()
8181
{
8282
// CONVARS
83-
g_ConVar_Title = CreateConVar( "influx_hud_draw_title", "\tInflux Timer", "Title to be shown to all players.", FCVAR_NOTIFY );
83+
g_ConVar_Title = CreateConVar( "influx_hud_draw_title", "Welcome to Influx Timer!", "Title to be shown to all players when they join. Not shown if empty.", FCVAR_NOTIFY );
8484
g_ConVar_Title.AddChangeHook( E_ConVarChanged_Title );
8585
g_ConVar_Title.GetString( g_szTitle, sizeof( g_szTitle ) );
8686

@@ -200,6 +200,7 @@ public Action Influx_OnDrawHUD( int client, int target, HudType_t hudtype )
200200

201201

202202
if (state <= STATE_START
203+
&& g_szTitle[0] != 0 // Not empty
203204
&& (g_ConVar_TitleDisplayAlways.BoolValue || (g_flJoin[client] + 15.0 > GetEngineTime())))
204205
{
205206
FormatEx( szMsg, sizeof( szMsg ), "%s", g_szTitle );

cfg_build/hud_draw_csgo.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ influx_hud_draw_tabnum "5"
2424
// Minimum: "1.000000"
2525
influx_hud_draw_tabsize "6"
2626

27-
// Title to be shown to all players.
27+
// Title to be shown to all players when they join. Not shown if empty.
2828
// -
29-
// Default: " Influx Timer"
30-
influx_hud_draw_title " Influx Timer"
29+
// Default: "Welcome to Influx Timer!"
30+
influx_hud_draw_title "Welcome to Influx Timer!"
3131

3232
// Do we always display the title when player is in start/has no run?
3333
// -

0 commit comments

Comments
 (0)