mirror of
https://github.com/ENSL/NS.git
synced 2025-02-16 17:11:15 +00:00
automatic alien/marine cfg execution
This commit is contained in:
parent
9ebab42ec7
commit
43b6debd50
2 changed files with 13 additions and 0 deletions
|
@ -578,12 +578,24 @@ void ScorePanel::SortTeams()
|
|||
SortActivePlayers(kMarine1Team);
|
||||
SortActivePlayers(kAlien2Team);
|
||||
SortActivePlayers(kMarine2Team);
|
||||
|
||||
if (oldteam != gHUD.GetHUDTeam())
|
||||
{
|
||||
ClientCmd("exec alienofficial.cfg\n");
|
||||
oldteam = gHUD.GetHUDTeam();
|
||||
}
|
||||
}
|
||||
else {
|
||||
SortActivePlayers(kMarine1Team);
|
||||
SortActivePlayers(kAlien1Team);
|
||||
SortActivePlayers(kMarine2Team);
|
||||
SortActivePlayers(kAlien2Team);
|
||||
|
||||
if (oldteam != gHUD.GetHUDTeam())
|
||||
{
|
||||
ClientCmd("exec marineofficial.cfg\n");
|
||||
oldteam = gHUD.GetHUDTeam();
|
||||
}
|
||||
}
|
||||
|
||||
SortActivePlayers(kSpectatorTeam);
|
||||
|
|
|
@ -113,6 +113,7 @@ private:
|
|||
|
||||
unsigned int m_iIconFrame;
|
||||
unsigned int m_iLastFrameIncrementTime;
|
||||
int oldteam;
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Reference in a new issue