diff --git a/Functions/Wave Type Libraries/Common Wave Library/fn_wave_create.sqf b/Functions/Waves/fn_waves_create.sqf similarity index 99% rename from Functions/Wave Type Libraries/Common Wave Library/fn_wave_create.sqf rename to Functions/Waves/fn_waves_create.sqf index ad13580f..82ae08ec 100644 --- a/Functions/Wave Type Libraries/Common Wave Library/fn_wave_create.sqf +++ b/Functions/Waves/fn_waves_create.sqf @@ -51,22 +51,23 @@ params [ /* ---------------------------------------------------------------------------- Create Queue ---------------------------------------------------------------------------- */ -private _generatManClassesFunction = ["generateMenClassnames"] call BLWK_fnc_waves_getFunctionFromConfig; -private _generateSpawnPositionFunction = ["generateManSpawnPosition"] call BLWK_fnc_waves_getFunctionFromConfig; - if (_totalNumEnemiesToSpawnDuringWave < BASE_ENEMY_NUMBER) then { _totalNumEnemiesToSpawnDuringWave = BASE_ENEMY_NUMBER * ((BLWK_enemiesPerWaveMultiplier * BLWK_currentWaveNumber) + 1); _totalNumEnemiesToSpawnDuringWave = _totalNumEnemiesToSpawnDuringWave + (BLWK_enemiesPerPlayerMultiplier * (count (call CBAP_fnc_players))); _totalNumEnemiesToSpawnDuringWave = round _totalNumEnemiesToSpawnDuringWave; }; -private _availableClassnames = call _generatManClassesFunction; + private "_spawnPosition_temp"; if (!BLWK_multipleEnemyPositions) then { _spawnPosition_temp = selectRandom BLWK_infantrySpawnPositions; }; +private _generatManClassesFunction = ["generateMenClassnames"] call BLWK_fnc_waves_getFunctionFromConfig; +private _availableClassnames = call _generatManClassesFunction; +private _generateSpawnPositionFunction = ["generateManSpawnPosition"] call BLWK_fnc_waves_getFunctionFromConfig; private _onManCreatedFunctionName = ["generateManSpawnPosition",true] call BLWK_fnc_waves_getFunctionFromConfig; + for "_i" from 1 to _totalNumEnemiesToSpawnDuringWave do { if (BLWK_multipleEnemyPositions) then { _spawnPosition_temp = call _generateSpawnPositionFunction; diff --git a/Headers/descriptionEXT/functions.hpp b/Headers/descriptionEXT/functions.hpp index 8b55df52..691f0d64 100644 --- a/Headers/descriptionEXT/functions.hpp +++ b/Headers/descriptionEXT/functions.hpp @@ -463,12 +463,6 @@ class BLWK class handleParatrooperWave {}; }; - class CommonWaveLib - { - file = "Functions\Wave Type Libraries\Common Wave Library"; - class wave_create - {}; - }; class StandardWaveLib { file = "Functions\Wave Type Libraries\Standard Wave Lib"; @@ -528,6 +522,8 @@ class BLWK {}; class waves_onInitialized {}; + class waves_create + {}; class addToMustKillList {};