Author Topic: How can I rename the allies and axis team name in SD  (Read 618 times)

Offline Dream

  • Rank: Private
  • *
  • Posts: 0
How can I rename the allies and axis team name in SD
« on: November 29, 2010, 05:09:09 pm »
Hello Everybody!

Sorry my bad English, i write from Hungary. So my problem is; How can I rename the team names on the Scoreboard. I want change team names , example: Defender => Véd? , and Attack => Támadó ? :?:

Thanks in advance :oops:

Offline gixslayer

  • Rank: Private
  • *
  • Posts: 9
Re: How can I rename the allies and axis team name in SD
« Reply #1 on: November 30, 2010, 06:39:30 am »
Edit the maps\mp\gametypes\_scoreboard.gsc
Taken from promod, either replace the &"PROMOD_ATTACK_NAME" parts with a custom string or create a localization table for those strings.

Code: [Select]
init()
{
switch(game["allies"])
{
case "sas":
setdvar("g_TeamName_Allies", &"PROMOD_ATTACK_NAME");
precacheShader("faction_128_sas");
setdvar("g_TeamIcon_Allies", "faction_128_sas");
setdvar("g_TeamColor_Allies", ".5 .5 .5");
setdvar("g_ScoresColor_Allies", "0 0 0");
break;

case "marines":
setdvar("g_TeamName_Allies", &"PROMOD_ATTACK_NAME");
precacheShader("faction_128_usmc");
setdvar("g_TeamIcon_Allies", "faction_128_usmc");
setdvar("g_TeamColor_Allies", "0.6 0.64 0.69");
setdvar("g_ScoresColor_Allies", "0.6 0.64 0.69");
break;
}

switch(game["axis"])
{
case "opfor":
               setdvar("g_TeamName_Axis", &"PROMOD_DEFENCE_NAME");
precacheShader("faction_128_ussr");
setdvar("g_TeamIcon_Axis", "faction_128_ussr");
setdvar("g_TeamColor_Axis", "0.52 0.28 0.28");
setdvar("g_ScoresColor_Axis", "0.52 0.28 0.28");
break;
case "arab":
setdvar("g_TeamName_Axis", &"PROMOD_DEFENCE_NAME");
precacheShader("faction_128_arab");
setdvar("g_TeamIcon_Axis", "faction_128_arab");
setdvar("g_TeamColor_Axis", "0.65 0.57 0.41");
setdvar("g_ScoresColor_Axis", "0.65 0.57 0.41");
break;
}
setdvar("g_ScoresColor_Spectator", ".25 .25 .25");
setdvar("g_ScoresColor_Free", ".76 .78 .10");
setdvar("g_teamColor_MyTeam", ".6 .8 .6" );
setdvar("g_teamColor_EnemyTeam", "1 .45 .5" );
}