XEH_postInit.sqf 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. #include "config_macros.hpp"
  2. // The time between each droid spawn on a droid dispenser. Is copied so will only effect new dispensers.
  3. GVAR(spawnTime) = 8;
  4. // How many units can be alive for any given droid dispenser. Is copied so will only effect new dispensers.
  5. GVAR(droidDispenserMaxUnitsGlobal) = 20;
  6. // What units can be spawned Is copied so will only effect new dispensers.
  7. GVAR(droidDispenserPossibleUnitsGlobal) = [
  8. "RD501_opfor_unit_B2_droid_Standard",
  9. "RD501_opfor_unit_b1_grenadier",
  10. "RD501_opfor_unit_B1_AT_heavy",
  11. "RD501_opfor_unit_B1",
  12. "RD501_opfor_unit_B1_marksman",
  13. "RD501_opfor_unit_B1_AT_light"
  14. ];
  15. // Orbital Dispenser Module Specific
  16. //The object to spawn for orbital missions, Is copied so will only effect new dispensers.
  17. GVAR(spawnerDefaultObject) = "3as_droid_container";
  18. // The time to delay spawning the dispenser object for orbital missions
  19. GVAR(fireSupportSpawnDelay) = 8;
  20. if(isServer) then {
  21. [QUOTE(GVAR(droidDispenserUpdateGlobals)), {
  22. params["_possibleUnits", "_maxUnits", "_spawnTime"];
  23. diag_log format["[%1 Server] Updating Dispenser Globals ::: Units: %2 | MaxUnits: %3 | SpawnTime: %4", QUOTE(ADDON), _possibleUnits, _maxUnits, _spawnTime];
  24. GVAR(droidDispenserPossibleUnitsGlobal) = _possibleUnits;
  25. GVAR(droidDispenserMaxUnitsGlobal) = _maxUnits;
  26. GVAR(spawnTime) = _spawnTime;
  27. }] call CBA_fnc_addEventHandler;
  28. };