/*************************************************
 * Decompiled by Serious and Edited by SyndiShanX
 * Script: cp\cp_mi_cairo_infection.csc
*************************************************/

#using scripts\codescripts\struct;
#using scripts\cp\_load;
#using scripts\cp\_siegebot_theia;
#using scripts\cp\_util;
#using scripts\cp\cp_mi_cairo_infection_fx;
#using scripts\cp\cp_mi_cairo_infection_patch_c;
#using scripts\cp\cp_mi_cairo_infection_sgen_test_chamber;
#using scripts\cp\cp_mi_cairo_infection_sim_reality_starts;
#using scripts\cp\cp_mi_cairo_infection_sound;
#using scripts\cp\cp_mi_cairo_infection_theia_battle;
#using scripts\cp\cp_mi_cairo_infection_util;
#using scripts\shared\clientfield_shared;
#using scripts\shared\util_shared;
#namespace cp_mi_cairo_infection;

function main() {
  init_clientfields();
  util::set_streamer_hint_function(&force_streamer, 11);
  cp_mi_cairo_infection_fx::main();
  cp_mi_cairo_infection_sound::main();
  cp_mi_cairo_infection_theia_battle::main();
  cp_mi_cairo_infection_sim_reality_starts::main();
  cp_mi_cairo_infection_sgen_test_chamber::main();
  load::main();
  util::waitforclient(0);
  namespace_f397b667::function_7403e82b();
}

function init_clientfields() {
  clientfield::register("world", "set_exposure_bank", 1, 2, "int", &function_1e832062, 0, 0);
}

function force_streamer(n_zone) {
  switch (n_zone) {
    case 1: {
      forcestreamxmodel("veh_t7_mil_vtol_egypt_cabin_details_attch");
      forcestreamxmodel("veh_t7_mil_vtol_egypt_cabin_details_attch_screenglows");
      forcestreamxmodel("veh_t7_mil_vtol_egypt_screens_d1");
      break;
    }
    case 6: {
      forcestreamxmodel("c_spc_decayman_stage1_fb");
      forcestreamxmodel("c_spc_decayman_stage1_tout_fb");
      forcestreamxmodel("c_spc_decayman_stage2_tin_fb");
      forcestreamxmodel("c_spc_decayman_stage2_fb");
      forcestreamxmodel("c_spc_decayman_stage2_tout_fb");
      forcestreamxmodel("c_spc_decayman_stage3_tin_fb");
      forcestreamxmodel("c_spc_decayman_stage3_fb");
      forcestreamxmodel("c_spc_decayman_stage4_fb");
      break;
    }
    case 9: {
      forcestreambundle("cin_inf_04_humanlabdeath_3rd_sh150");
      forcestreamxmodel("c_spc_decayman_stage1_fb");
      forcestreamxmodel("c_spc_decayman_stage1_tout_fb");
      forcestreamxmodel("c_spc_decayman_stage2_tin_fb");
      forcestreamxmodel("c_spc_decayman_stage2_fb");
      forcestreamxmodel("c_spc_decayman_stage2_tout_fb");
      forcestreamxmodel("c_spc_decayman_stage3_tin_fb");
      forcestreamxmodel("c_spc_decayman_stage3_fb");
      forcestreamxmodel("c_spc_decayman_stage4_fb");
      break;
    }
    case 3: {
      forcestreamxmodel("c_hro_sarah_base_body");
      forcestreamxmodel("c_hro_sarah_base_head");
      forcestreambundle("cin_inf_04_02_sarah_vign_01");
      forcestreamxmodel("c_hro_maretti_base_body");
      forcestreamxmodel("c_hro_maretti_base_head");
      forcestreamxmodel("c_hro_taylor_base_body");
      forcestreamxmodel("c_hro_taylor_base_head");
      forcestreamxmodel("c_hro_diaz_base_body");
      forcestreamxmodel("c_hro_diaz_base_head");
      forcestreambundle("cin_inf_05_taylorinfected_3rd_sh010");
      forcestreambundle("cin_inf_05_taylorinfected_3rd_sh020");
      forcestreambundle("cin_inf_05_taylorinfected_3rd_sh030");
      forcestreambundle("cin_inf_05_taylorinfected_3rd_sh040");
      forcestreambundle("cin_inf_05_taylorinfected_3rd_sh050");
      forcestreambundle("cin_inf_05_taylorinfected_3rd_sh060");
      forcestreambundle("cin_inf_05_taylorinfected_3rd_sh070");
      forcestreambundle("cin_inf_05_taylorinfected_3rd_sh080");
      break;
    }
    default: {
      break;
    }
  }
}

function function_1e832062(localclientnum, oldval, newval, bnewent, binitialsnap, fieldname, bwastimejump) {
  if(newval != oldval) {
    setexposureactivebank(localclientnum, newval);
  }
}