mirror of
https://github.com/Resxt/Plutonium-IW5-Scripts.git
synced 2025-04-19 04:32:53 +00:00
small_scripts 1.1
This commit is contained in:
parent
d9cc0ae2ce
commit
679b1a0c01
@ -4,4 +4,8 @@ Simple drag and drop scripts
|
||||
|
||||
## 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
|
21
small_scripts/change_team_names.gsc
Normal file
21
small_scripts/change_team_names.gsc
Normal 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user