small_scripts 1.1

This commit is contained in:
Resxt 2022-03-09 23:36:34 +01:00
parent d9cc0ae2ce
commit 679b1a0c01
2 changed files with 26 additions and 1 deletions

View File

@ -5,3 +5,7 @@ Simple drag and drop scripts
## display_player_stats.gsc ## display_player_stats.gsc
Display the player's killstreak, total kills and deaths on top of the screen Display the player's killstreak, total kills and deaths on top of the screen
## change_team_names.gsc
Change the team names to custom names depending on the game mode

View File

@ -0,0 +1,21 @@
Init()
{
switch (GetDvar("g_gametype"))
{
case "infect":
ReplaceTeamNames("^1Infected", "^2Survivors");
break;
case "dm":
ReplaceTeamNames("^1Solo", "");
break;
default:
ReplaceTeamNames("^1Team #1", "^1Team #2");
break;
}
}
ReplaceTeamNames(axis_name, allies_name)
{
SetDvar("g_TeamName_Axis", axis_name);
SetDvar("g_TeamName_Allies", allies_name);
}