Esempio n. 1
0
    private static string getTeamPrefix(Entity player)
    {
        string allies = GSCFunctions.GetMapCustom("allieschar");
        string axis   = GSCFunctions.GetMapCustom("axischar");
        string team   = player.SessionTeam;
        string ret;

        if (isTeamBased && player.SessionTeam == "allies")
        {
            ret = GSCFunctions.TableLookup("mp/factiontable.csv", 0, allies, 7);
        }
        else if (isTeamBased && player.SessionTeam == "axis")
        {
            ret = GSCFunctions.TableLookup("mp/factiontable.csv", 0, axis, 7);
        }
        else
        {
            ret = "US_";
        }
        return(ret);
    }