Epoch/Sources/epoch_code/compile/setup/masterLoop/Event7.sqf
vbawol a503633b36 0.3.9.0473
Add inital support of Ryans Zombies and Demons mod
EPOCH_client_bitePlayer changes:
settings now config based via CfgObjectInteractions
2016-05-23 15:01:40 -05:00

25 lines
753 B
Plaintext

_spawnChance = ((EPOCH_playerNuisance + EPOCH_playerSoiled)/2) max 1;
if (random EPOCH_droneRndChance < _spawnChance) then {
"I_UAV_01_F" call EPOCH_unitSpawnIncrease;
};
if (EPOCH_mod_Ryanzombies_Enabled) then {
if (random EPOCH_zombieRndChance < _spawnChance) then {
"EPOCH_RyanZombie_1" call EPOCH_unitSpawnIncrease;
};
};
if (random EPOCH_sapperRndChance < _spawnChance) then {
"Epoch_Sapper_F" call EPOCH_unitSpawnIncrease;
};
_spawnUnits = [];
{
if (_x > 0) then{
_spawnUnits pushBack(EPOCH_spawnIndex select _forEachIndex);
};
} forEach EPOCH_playerSpawnArray;
// test spawning one antagonist every 10 minutes select one unit at random to spawn
if !(_spawnUnits isEqualTo[]) then{
(selectRandom _spawnUnits) call EPOCH_unitSpawn;
};