0.3.9.0534

max out zombie count on spawn chance
allow variable increase to antagonist array
This commit is contained in:
vbawol 2016-06-18 12:57:45 -05:00
parent ecd09836e0
commit fa2185a27d
34 changed files with 12 additions and 10 deletions

View File

@ -13,7 +13,8 @@
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnDecrease.sqf
*/
private ["_index"];
_index = EPOCH_spawnIndex find _this;
params ["_spawnName", ["_decrease",1]];
_index = EPOCH_spawnIndex find _spawnName;
if (_index != -1) then{
EPOCH_playerSpawnArray set[_index, ((EPOCH_playerSpawnArray select _index) - 1) max 0];
EPOCH_playerSpawnArray set[_index, ((EPOCH_playerSpawnArray select _index) - _decrease) max 0];
};

View File

@ -13,7 +13,8 @@
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf
*/
private ["_index"];
_index = EPOCH_spawnIndex find _this;
params ["_spawnName", ["_increase",1]];
_index = EPOCH_spawnIndex find _spawnName;
if (_index != -1) then{
EPOCH_playerSpawnArray set[_index, ((EPOCH_playerSpawnArray select _index) + 1) min (EPOCH_spawnLimits select _index)];
EPOCH_playerSpawnArray set[_index, ((EPOCH_playerSpawnArray select _index) + _increase) min (EPOCH_spawnLimits select _index)];
};

View File

@ -4,7 +4,7 @@ if (random EPOCH_droneRndChance < _spawnChance) then {
};
if (EPOCH_mod_Ryanzombies_Enabled) then {
if (random EPOCH_zombieRndChance < _spawnChance) then {
"EPOCH_RyanZombie_1" call EPOCH_unitSpawnIncrease;
["EPOCH_RyanZombie_1",12] call EPOCH_unitSpawnIncrease;
};
};
if (random EPOCH_sapperRndChance < _spawnChance) then {

View File

@ -1 +1 @@
build=533;
build=534;

View File

@ -1 +1 @@
build=533;
build=534;

View File

@ -1 +1 @@
build=533;
build=534;

View File

@ -1 +1 @@
build=533;
build=534;

View File

@ -1 +1 @@
533
534