/*************************************************
 * Decompiled by Serious and Edited by SyndiShanX
 * Script: cp\bonuszm\_bonuszm_data.gsc
*************************************************/

#using scripts\codescripts\struct;
#using scripts\cp\bonuszm\_bonuszm;
#using scripts\cp\bonuszm\_bonuszm_spawner_shared;
#namespace namespace_a432d965;

function autoexec function_dc036a7c() {
  if(!sessionmodeiscampaignzombiesgame()) {
    return;
  }
  level.var_a432d965 = struct::get_script_bundle("bonuszmdata", getdvarstring("mapname"));
  level.bzm_overridelocomotion = &bzm_overridelocomotion;
  level.bzm_overridehealth = &bzm_overridehealth;
  level.bzm_overridesuicidalchance = &bzm_overridesuicidalchance;
}

function function_da5f2c0d(mapname, checkpointname) {
  level.var_a9e78bf7 = undefined;
  if(!isDefined(level.var_a432d965)) {
    function_9a6a6726();
    function_97b4bacb(1, 0);
    function_4542e087();
    namespace_2396e2d7::function_fc1970dd();
    return;
  }
  var_6967e3b9 = undefined;
  prefix = "";
  var_e6879fdc = getstructfield(level.var_a432d965, "skiptocount");
  if(!isDefined(var_e6879fdc)) {
    var_e6879fdc = 0;
  }
  for(i = 1; i <= var_e6879fdc; i++) {
    prefix = function_15c7079(i);
    var_454219da = getstructfield(level.var_a432d965, prefix + "skiptoname");
    if(var_454219da == checkpointname) {
      var_6967e3b9 = i;
      break;
    }
  }
  level.var_a9e78bf7 = [];
  if(!isDefined(var_6967e3b9)) {
    level.var_5deb2d16 = 1;
    function_9a6a6726();
    function_97b4bacb(1, 0);
    function_4542e087();
    namespace_2396e2d7::function_fc1970dd();
    return;
  }
  level.var_5deb2d16 = 0;
  level.var_a9e78bf7["skiptoname"] = var_454219da;
  level.var_a9e78bf7["powerdropchance"] = getstructfield(level.var_a432d965, "powerdropchance");
  level.var_a9e78bf7["cybercoredropchance"] = getstructfield(level.var_a432d965, "cybercoredropchance");
  level.var_a9e78bf7["cybercoreupgradeddropchance"] = getstructfield(level.var_a432d965, "cybercoreupgradeddropchance");
  level.var_a9e78bf7["maxdropammochance"] = getstructfield(level.var_a432d965, "maxdropammochance");
  level.var_a9e78bf7["maxdropammoupgradedchance"] = getstructfield(level.var_a432d965, "maxdropammoupgradedchance");
  level.var_a9e78bf7["weapondropchance"] = getstructfield(level.var_a432d965, "weapondropchance");
  level.var_a9e78bf7["instakilldropchance"] = getstructfield(level.var_a432d965, "instakilldropchance");
  level.var_a9e78bf7["instakillupgradeddropchance"] = getstructfield(level.var_a432d965, "instakillupgradeddropchance");
  level.var_a9e78bf7["powerupdropsenabled"] = getstructfield(level.var_a432d965, prefix + "powerupdropsenabled");
  level.var_a9e78bf7["zigzagdeviationmin"] = getstructfield(level.var_a432d965, prefix + "zigzagdeviationmin");
  level.var_a9e78bf7["zigzagdeviationmax"] = getstructfield(level.var_a432d965, prefix + "zigzagdeviationmax");
  level.var_a9e78bf7["zigzagdeviationmintime"] = getstructfield(level.var_a432d965, prefix + "zigzagdeviationmintime");
  level.var_a9e78bf7["zigzagdeviationmaxtime"] = getstructfield(level.var_a432d965, prefix + "zigzagdeviationmaxtime");
  level.var_a9e78bf7["onlyuseonstart"] = getstructfield(level.var_a432d965, prefix + "onlyuseonstart");
  level.var_a9e78bf7["zombifyenabled"] = getstructfield(level.var_a432d965, prefix + "zombifyenabled");
  level.var_a9e78bf7["startunaware"] = getstructfield(level.var_a432d965, prefix + "startunaware");
  level.var_a9e78bf7["alertnessspreaddelay"] = getstructfield(level.var_a432d965, prefix + "alertnessspreaddelay");
  level.var_a9e78bf7["forcecleanuponcompletion"] = getstructfield(level.var_a432d965, prefix + "forcecleanuponcompletion");
  level.var_a9e78bf7["disablefailsafelogic"] = getstructfield(level.var_a432d965, prefix + "disablefailsafelogic");
  level.var_a9e78bf7["extraspawns"] = getstructfield(level.var_a432d965, prefix + "extraspawns");
  level.var_a9e78bf7["extraspawngapmin"] = getstructfield(level.var_a432d965, prefix + "extraspawngapmin");
  level.var_a9e78bf7["walkpercent"] = getstructfield(level.var_a432d965, prefix + "walkpercent");
  level.var_a9e78bf7["runpercent"] = getstructfield(level.var_a432d965, prefix + "runpercent");
  level.var_a9e78bf7["sprintpercent"] = getstructfield(level.var_a432d965, prefix + "sprintpercent");
  level.var_a9e78bf7["levelonehealth"] = getstructfield(level.var_a432d965, prefix + "levelonehealth");
  level.var_a9e78bf7["leveltwohealth"] = getstructfield(level.var_a432d965, prefix + "leveltwohealth");
  level.var_a9e78bf7["levelthreehealth"] = getstructfield(level.var_a432d965, prefix + "levelthreehealth");
  level.var_a9e78bf7["levelonezombies"] = getstructfield(level.var_a432d965, prefix + "levelonezombies");
  level.var_a9e78bf7["leveltwozombies"] = getstructfield(level.var_a432d965, prefix + "leveltwozombies");
  level.var_a9e78bf7["levelthreezombies"] = getstructfield(level.var_a432d965, prefix + "levelthreezombies");
  level.var_a9e78bf7["suicidalzombiechance"] = getstructfield(level.var_a432d965, prefix + "suicidalzombiechance");
  level.var_a9e78bf7["suicidalzombieupgradedchance"] = getstructfield(level.var_a432d965, prefix + "suicidalzombieupgradedchance");
  level.var_a9e78bf7["deimosinfectedzombiechance"] = getstructfield(level.var_a432d965, prefix + "deimosinfectedzombiechance");
  level.var_a9e78bf7["sparkzombiechance"] = getstructfield(level.var_a432d965, prefix + "sparkzombiechance");
  level.var_a9e78bf7["sparkzombieupgradedchance"] = getstructfield(level.var_a432d965, prefix + "sparkzombieupgradedchance");
  level.var_a9e78bf7["maxreachabilitylevel"] = getstructfield(level.var_a432d965, prefix + "maxreachabilitylevel");
  level.var_a9e78bf7["reachabilityinterval"] = getstructfield(level.var_a432d965, prefix + "reachabilityinterval");
  level.var_a9e78bf7["maxreachabilityparasites"] = getstructfield(level.var_a432d965, prefix + "maxreachabilityparasites");
  level.var_a9e78bf7["powerdropsscalar"] = getstructfield(level.var_a432d965, prefix + "powerdropsscalar");
  level.var_a9e78bf7["pathabilityenabled"] = getstructfield(level.var_a432d965, prefix + "pathabilityenabled");
  level.var_a9e78bf7["sprinttoplayerdistance"] = getstructfield(level.var_a432d965, prefix + "sprinttoplayerdistance");
  level.var_a9e78bf7["skipobjectivewait"] = getstructfield(level.var_a432d965, prefix + "skipobjectivewait");
  level.var_a9e78bf7["zombiehealthscale1"] = getstructfield(level.var_a432d965, "zombiehealthscale1");
  level.var_a9e78bf7["zombiehealthscale2"] = getstructfield(level.var_a432d965, "zombiehealthscale2");
  level.var_a9e78bf7["zombiehealthscale3"] = getstructfield(level.var_a432d965, "zombiehealthscale3");
  level.var_a9e78bf7["zombiehealthscale4"] = getstructfield(level.var_a432d965, "zombiehealthscale4");
  level.var_a9e78bf7["zombiehealthscale5"] = getstructfield(level.var_a432d965, "zombiehealthscale5");
  level.var_a9e78bf7["extrazombiescale1"] = getstructfield(level.var_a432d965, "extrazombiescale1");
  level.var_a9e78bf7["extrazombiescale2"] = getstructfield(level.var_a432d965, "extrazombiescale2");
  level.var_a9e78bf7["extrazombiescale3"] = getstructfield(level.var_a432d965, "extrazombiescale3");
  level.var_a9e78bf7["extrazombiescale4"] = getstructfield(level.var_a432d965, "extrazombiescale4");
  level.var_a9e78bf7["magicboxonlyweaponchance"] = getstructfield(level.var_a432d965, "magicboxonlyweaponchance");
  level.var_a9e78bf7["maxmagicboxonlyweapons"] = getstructfield(level.var_a432d965, "maxmagicboxonlyweapons");
  level.var_a9e78bf7["camochance"] = getstructfield(level.var_a432d965, "camochance");
  function_9a6a6726();
  function_97b4bacb(0, 1);
  function_4542e087();
  namespace_2396e2d7::function_fc1970dd();
  namespace_2396e2d7::function_b6c845e8();
  bonuszm::function_aaa07980();
  level._zombiezigzagdistancemin = level.var_a9e78bf7["zigzagdeviationmin"];
  level._zombiezigzagdistancemax = level.var_a9e78bf7["zigzagdeviationmax"];
  level._zombiezigzagtimemin = level.var_a9e78bf7["zigzagdeviationmintime"];
  level._zombiezigzagtimemax = level.var_a9e78bf7["zigzagdeviationmaxtime"];
  if(level.var_a9e78bf7["startunaware"]) {
    level.var_3004e0c8 = 0;
  } else {
    level.var_3004e0c8 = 1;
  }
}

function function_9a6a6726() {
  if(!isDefined(level.var_a432d965)) {
    return;
  }
  if(!isDefined(level.var_a9e78bf7)) {
    return;
  }
  level.var_a9e78bf7["aitypeMale1"] = getstructfield(level.var_a432d965, "aitypeMale1");
  level.var_a9e78bf7["aitypeMale2"] = getstructfield(level.var_a432d965, "aitypeMale2");
  level.var_a9e78bf7["aitypeMale3"] = getstructfield(level.var_a432d965, "aitypeMale3");
  level.var_a9e78bf7["aitypeMale4"] = getstructfield(level.var_a432d965, "aitypeMale4");
  level.var_a9e78bf7["maleSpawnChance2"] = getstructfield(level.var_a432d965, "maleSpawnChance2");
  level.var_a9e78bf7["maleSpawnChance3"] = getstructfield(level.var_a432d965, "maleSpawnChance3");
  level.var_a9e78bf7["maleSpawnChance4"] = getstructfield(level.var_a432d965, "maleSpawnChance4");
  level.var_a9e78bf7["aitypeFemale"] = getstructfield(level.var_a432d965, "aitypeFemale");
  level.var_a9e78bf7["femaleSpawnChance"] = getstructfield(level.var_a432d965, "femaleSpawnChance");
}

function function_97b4bacb(zombify, var_a621e856) {
  if(!isDefined(level.var_a9e78bf7["powerdropchance"])) {
    if(isDefined(level.var_a432d965)) {
      level.var_a9e78bf7["powerdropchance"] = getstructfield(level.var_a432d965, "powerdropchance");
      if(!isDefined(level.var_a9e78bf7["powerdropchance"])) {
        level.var_a9e78bf7["powerdropchance"] = 0;
      }
    } else {
      level.var_a9e78bf7["powerdropchance"] = 40;
    }
  }
  if(!isDefined(level.var_a9e78bf7["maxdropammochance"])) {
    if(isDefined(level.var_a432d965)) {
      level.var_a9e78bf7["maxdropammochance"] = getstructfield(level.var_a432d965, "maxdropammochance");
      if(!isDefined(level.var_a9e78bf7["maxdropammochance"])) {
        level.var_a9e78bf7["maxdropammochance"] = 0;
      }
    } else {
      level.var_a9e78bf7["maxdropammochance"] = 50;
    }
  }
  if(!isDefined(level.var_a9e78bf7["maxdropammoupgradedchance"])) {
    if(isDefined(level.var_a432d965)) {
      level.var_a9e78bf7["maxdropammoupgradedchance"] = getstructfield(level.var_a432d965, "maxdropammoupgradedchance");
      if(!isDefined(level.var_a9e78bf7["maxdropammoupgradedchance"])) {
        level.var_a9e78bf7["maxdropammoupgradedchance"] = 0;
      }
    } else {
      level.var_a9e78bf7["maxdropammoupgradedchance"] = 0;
    }
  }
  if(!isDefined(level.var_a9e78bf7["cybercoredropchance"])) {
    if(isDefined(level.var_a432d965)) {
      level.var_a9e78bf7["cybercoredropchance"] = getstructfield(level.var_a432d965, "cybercoredropchance");
      if(!isDefined(level.var_a9e78bf7["cybercoredropchance"])) {
        level.var_a9e78bf7["cybercoredropchance"] = 0;
      }
    } else {
      level.var_a9e78bf7["cybercoredropchance"] = 30;
    }
  }
  if(!isDefined(level.var_a9e78bf7["cybercoreupgradeddropchance"])) {
    if(isDefined(level.var_a432d965)) {
      level.var_a9e78bf7["cybercoreupgradeddropchance"] = getstructfield(level.var_a432d965, "cybercoreupgradeddropchance");
      if(!isDefined(level.var_a9e78bf7["cybercoreupgradeddropchance"])) {
        level.var_a9e78bf7["cybercoreupgradeddropchance"] = 0;
      }
    } else {
      level.var_a9e78bf7["cybercoreupgradeddropchance"] = 0;
    }
  }
  if(!isDefined(level.var_a9e78bf7["rapsdropchance"])) {
    if(isDefined(level.var_a432d965)) {
      level.var_a9e78bf7["rapsdropchance"] = getstructfield(level.var_a432d965, "rapsdropchance");
      if(!isDefined(level.var_a9e78bf7["rapsdropchance"])) {
        level.var_a9e78bf7["rapsdropchance"] = 0;
      }
    } else {
      level.var_a9e78bf7["rapsdropchance"] = 0;
    }
  }
  if(!isDefined(level.var_a9e78bf7["weapondropchance"])) {
    if(isDefined(level.var_a432d965)) {
      level.var_a9e78bf7["weapondropchance"] = getstructfield(level.var_a432d965, "weapondropchance");
      if(!isDefined(level.var_a9e78bf7["weapondropchance"])) {
        level.var_a9e78bf7["weapondropchance"] = 0;
      }
    } else {
      level.var_a9e78bf7["weapondropchance"] = 20;
    }
  }
  if(!isDefined(level.var_a9e78bf7["instakilldropchance"])) {
    if(isDefined(level.var_a432d965)) {
      level.var_a9e78bf7["instakilldropchance"] = getstructfield(level.var_a432d965, "instakilldropchance");
      if(!isDefined(level.var_a9e78bf7["instakilldropchance"])) {
        level.var_a9e78bf7["instakilldropchance"] = 0;
      }
    } else {
      level.var_a9e78bf7["powerdropchance"] = 15;
    }
  }
  if(!isDefined(level.var_a9e78bf7["instakillupgradeddropchance"])) {
    if(isDefined(level.var_a432d965)) {
      level.var_a9e78bf7["instakillupgradeddropchance"] = getstructfield(level.var_a432d965, "instakillupgradeddropchance");
      if(!isDefined(level.var_a9e78bf7["instakillupgradeddropchance"])) {
        level.var_a9e78bf7["instakillupgradeddropchance"] = 0;
      }
    } else {
      level.var_a9e78bf7["instakillupgradeddropchance"] = 0;
    }
  }
  if(!isDefined(level.var_a9e78bf7["powerupdropsenabled"])) {
    level.var_a9e78bf7["powerupdropsenabled"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["waituntilskiptostarts"])) {
    level.var_a9e78bf7["waituntilskiptostarts"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["skiptoname"])) {
    level.var_a9e78bf7["skiptoname"] = "default";
  }
  if(!isDefined(level.var_a9e78bf7["onlyuseonstart"])) {
    level.var_a9e78bf7["onlyuseonstart"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["zombifyenabled"])) {
    level.var_a9e78bf7["zombifyenabled"] = zombify;
  }
  if(!isDefined(level.var_a9e78bf7["startunaware"])) {
    level.var_a9e78bf7["startunaware"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["alertnessspreaddelay"])) {
    level.var_a9e78bf7["alertnessspreaddelay"] = 2;
  }
  if(!isDefined(level.var_a9e78bf7["forcecleanuponcompletion"])) {
    level.var_a9e78bf7["forcecleanuponcompletion"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["disablefailsafelogic"])) {
    level.var_a9e78bf7["disablefailsafelogic"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["extraspawns"])) {
    level.var_a9e78bf7["extraspawns"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["zigzagdeviationmin"])) {
    level.var_a9e78bf7["zigzagdeviationmin"] = 250;
  }
  if(!isDefined(level.var_a9e78bf7["zigzagdeviationmax"])) {
    level.var_a9e78bf7["zigzagdeviationmax"] = 400;
  }
  if(!isDefined(level.var_a9e78bf7["zigzagdeviationmintime"])) {
    level.var_a9e78bf7["zigzagdeviationmintime"] = 2500;
  }
  if(!isDefined(level.var_a9e78bf7["zigzagdeviationmaxtime"])) {
    level.var_a9e78bf7["zigzagdeviationmaxtime"] = 4000;
  }
  if(!isDefined(level.var_a9e78bf7["extraspawngapmin"])) {
    level.var_a9e78bf7["extraspawngapmin"] = 2;
  }
  if(!isDefined(level.var_a9e78bf7["walkpercent"])) {
    if(isDefined(var_a621e856) && var_a621e856) {
      level.var_a9e78bf7["walkpercent"] = 0;
    } else {
      level.var_a9e78bf7["walkpercent"] = 33;
    }
  }
  if(!isDefined(level.var_a9e78bf7["runpercent"])) {
    if(isDefined(var_a621e856) && var_a621e856) {
      level.var_a9e78bf7["runpercent"] = 0;
    } else {
      level.var_a9e78bf7["runpercent"] = 33;
    }
  }
  if(!isDefined(level.var_a9e78bf7["sprintpercent"])) {
    if(isDefined(var_a621e856) && var_a621e856) {
      level.var_a9e78bf7["sprintpercent"] = 0;
    } else {
      level.var_a9e78bf7["sprintpercent"] = 34;
    }
  }
  if(!isDefined(level.var_a9e78bf7["levelonehealth"])) {
    level.var_a9e78bf7["levelonehealth"] = 150;
  }
  if(!isDefined(level.var_a9e78bf7["leveltwohealth"])) {
    level.var_a9e78bf7["leveltwohealth"] = 350;
  }
  if(!isDefined(level.var_a9e78bf7["levelthreehealth"])) {
    level.var_a9e78bf7["levelthreehealth"] = 650;
  }
  if(!isDefined(level.var_a9e78bf7["levelonezombies"])) {
    if(isDefined(var_a621e856) && var_a621e856) {
      level.var_a9e78bf7["levelonezombies"] = 0;
    } else {
      level.var_a9e78bf7["levelonezombies"] = 33;
    }
  }
  if(!isDefined(level.var_a9e78bf7["leveltwozombies"])) {
    if(isDefined(var_a621e856) && var_a621e856) {
      level.var_a9e78bf7["leveltwozombies"] = 0;
    } else {
      level.var_a9e78bf7["leveltwozombies"] = 33;
    }
  }
  if(!isDefined(level.var_a9e78bf7["levelthreezombies"])) {
    if(isDefined(var_a621e856) && var_a621e856) {
      level.var_a9e78bf7["levelthreezombies"] = 0;
    } else {
      level.var_a9e78bf7["levelthreezombies"] = 34;
    }
  }
  if(!isDefined(level.var_a9e78bf7["zombiehealthscale1"])) {
    level.var_a9e78bf7["zombiehealthscale1"] = 0.5;
  }
  if(!isDefined(level.var_a9e78bf7["zombiehealthscale2"])) {
    level.var_a9e78bf7["zombiehealthscale2"] = 1;
  }
  if(!isDefined(level.var_a9e78bf7["zombiehealthscale3"])) {
    level.var_a9e78bf7["zombiehealthscale3"] = 1.25;
  }
  if(!isDefined(level.var_a9e78bf7["zombiehealthscale4"])) {
    level.var_a9e78bf7["zombiehealthscale4"] = 1.5;
  }
  if(!isDefined(level.var_a9e78bf7["zombiehealthscale5"])) {
    level.var_a9e78bf7["zombiehealthscale5"] = 2;
  }
  if(!isDefined(level.var_a9e78bf7["extrazombiescale1"])) {
    level.var_a9e78bf7["extrazombiescale1"] = 1;
  }
  if(!isDefined(level.var_a9e78bf7["extrazombiescale2"])) {
    level.var_a9e78bf7["extrazombiescale2"] = 1.5;
  }
  if(!isDefined(level.var_a9e78bf7["extrazombiescale3"])) {
    level.var_a9e78bf7["extrazombiescale3"] = 1.75;
  }
  if(!isDefined(level.var_a9e78bf7["extrazombiescale4"])) {
    level.var_a9e78bf7["extrazombiescale4"] = 2;
  }
  if(!isDefined(level.var_a9e78bf7["suicidalzombiechance"])) {
    level.var_a9e78bf7["suicidalzombiechance"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["suicidalzombieupgradedchance"])) {
    level.var_a9e78bf7["suicidalzombieupgradedchance"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["deimosinfectedzombiechance"])) {
    level.var_a9e78bf7["deimosinfectedzombiechance"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["sparkzombiechance"])) {
    level.var_a9e78bf7["sparkzombiechance"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["sparkzombieupgradedchance"])) {
    level.var_a9e78bf7["sparkzombieupgradedchance"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["magicboxonlyweaponchance"])) {
    level.var_a9e78bf7["magicboxonlyweaponchance"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["maxmagicboxonlyweapons"])) {
    level.var_a9e78bf7["maxmagicboxonlyweapons"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["camochance"])) {
    level.var_a9e78bf7["camochance"] = 30;
  }
  if(!isDefined(level.var_a9e78bf7["pathabilityenabled"])) {
    level.var_a9e78bf7["pathabilityenabled"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["sprinttoplayerdistance"])) {
    level.var_a9e78bf7["sprinttoplayerdistance"] = 1000;
  }
  if(!isDefined(level.var_a9e78bf7["skipobjectivewait"])) {
    level.var_a9e78bf7["skipobjectivewait"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["maxreachabilitylevel"])) {
    level.var_a9e78bf7["maxreachabilitylevel"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["reachabilityinterval"])) {
    level.var_a9e78bf7["reachabilityinterval"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["maxreachabilityparasites"])) {
    level.var_a9e78bf7["maxreachabilityparasites"] = 0;
  }
  if(!isDefined(level.var_a9e78bf7["powerdropsscalar"])) {
    level.var_a9e78bf7["powerdropsscalar"] = 1;
  }
}

function function_15c7079(index) {
  return ("skipto" + index) + "_";
}

function private function_4542e087() {
  if(!level.var_a9e78bf7["zombifyenabled"]) {
    return;
  }
  total_percentage = (level.var_a9e78bf7["levelonezombies"] + level.var_a9e78bf7["leveltwozombies"]) + level.var_a9e78bf7["levelthreezombies"];
  assert(total_percentage == 100, "" + level.var_a9e78bf7[""]);
  total_percentage = (level.var_a9e78bf7["walkpercent"] + level.var_a9e78bf7["runpercent"]) + level.var_a9e78bf7["sprintpercent"];
  assert(total_percentage == 100, "" + level.var_a9e78bf7[""]);
  assert(level.var_a9e78bf7[""] < level.var_a9e78bf7[""], "");
  assert(level.var_a9e78bf7[""] < level.var_a9e78bf7[""], "");
}

function private bzm_overridelocomotion(var_68d35041, var_dbe80e3b, var_5a7ff9f0) {
  if(!level.var_a9e78bf7["zombifyenabled"]) {
    return;
  }
  total_percentage = (var_68d35041 + var_dbe80e3b) + var_5a7ff9f0;
  assert(total_percentage == 100, "" + level.var_a9e78bf7[""]);
  level.var_a9e78bf7["walkpercent"] = var_68d35041;
  level.var_a9e78bf7["runpercent"] = var_dbe80e3b;
  level.var_a9e78bf7["sprintpercent"] = var_5a7ff9f0;
}

function private bzm_overridehealth(var_52292ab5, var_d3cfcdb3, var_dd13b525) {
  if(!level.var_a9e78bf7["zombifyenabled"]) {
    return;
  }
  level.var_a9e78bf7["levelonehealth"] = var_52292ab5;
  level.var_a9e78bf7["leveltwohealth"] = var_d3cfcdb3;
  level.var_a9e78bf7["levelthreehealth"] = var_dd13b525;
}

function private bzm_overridesuicidalchance(chance) {
  if(!level.var_a9e78bf7["zombifyenabled"]) {
    return;
  }
  if(chance > 100) {
    chance = 100;
  }
  level.var_a9e78bf7["suicidalzombiechance"] = chance;
}

function private function_481f94(chance) {
  if(!level.var_a9e78bf7["zombifyenabled"]) {
    return;
  }
  if(chance > 100) {
    chance = 100;
  }
  level.var_a9e78bf7["sparkzombiechance"] = chance;
}