05-31-2013, 22:08
There is a problem with the output text names for command.
doInfo() - is a problem here.
in file _team.gsc
doInfo() - is a problem here.
Code:
showTeams()
{
level.infotext = NewHudElem();
level.infotext.alignX = "BOTTOMLEFT";
level.infotext.alignY = "BOTTOM";
level.infotext.horzAlign = "BOTTOMLEFT";
level.infotext.vertAlign = "BOTTOM";
level.infotext.y = 30;
level.infotext.x = 5;
level.infotext.foreground = true;
level.infotext.fontScale = 1.2;
level.infotext.font = "default";
level.infotext.alpha = 1;
level.infotext.color = ( 1.0, 1.0, 1.0 );
wait 0.20;
}
Code:
doInfo()
{
self endon("disconnect");
for(i = 10; i >= 0; i -= 1)
{
//**************************************************\\
ttm = ??????(the standard name of the team "axis");
ttm2 = ??????(the standard name of the team "Allies");
//**************************************************\\
level.infotext setText(ttm2 + ": ^4" + level.aliveCount["axis"] + " ^1| " + ttm + ": ^4" + level.aliveCount["allies"]);
if(i == 0)
{
i = 10;
}
wait 1;
}
}
in file _team.gsc
Code:
setDvar("g_TeamName_Allies", getTeamShortName( "allies" ));
setDvar("g_TeamName_Axis", getTeamShortName( "axis" ));