Esempio n. 1
0
    void lobby_generate_cvar_file()
    {
        StreamWriter cvar_writer = new StreamWriter(lobbyManager.cvar_path);

        if (cvar_writer == null)
        {
            return;
        }

        cvar_writer.WriteLine("tk_human " + tickets_human);
        cvar_writer.WriteLine("tk_robot " + tickets_robot);
        cvar_writer.WriteLine("tk_zombie " + tickets_zombie);
        cvar_writer.WriteLine("num_human " + team_num_human);
        cvar_writer.WriteLine("num_robot " + team_num_robot);
        cvar_writer.WriteLine("num_zombie " + team_num_zombie);
        cvar_writer.WriteLine("passThru " + CONSTANTS.bool_to_int(allyBulletPassThru));
        cvar_writer.WriteLine("losVision " + CONSTANTS.bool_to_int(losVision));
        cvar_writer.WriteLine("maxSkills " + maxSkillSpentPerDeath);
        cvar_writer.WriteLine("teamTransparent " + CONSTANTS.bool_to_int(team_transparent));
        cvar_writer.WriteLine("rspwnTime " + respawn_time);
        cvar_writer.WriteLine("startMoney " + insurance_money);
        cvar_writer.WriteLine("map " + map);

        cvar_writer.Close();
    }