custom_init.sqf 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. //last update 5/21/2018 5;38 pm est by Namenai
  2. root="scripts\zeus3denScripts";
  3. publicVariable "root";
  4. //Calls the file that has all the factorizations, basicly a really big enum file.
  5. [] execVM (root+"\file_paths.sqf");
  6. //waits until all the file paths are declared.
  7. waitUntil { !(isNil "filePathsDone") };
  8. //Check sum used to check if all the exec have ran.
  9. checkSumVariable=0;
  10. checkSumCounter=1;
  11. publicVariable "checkSum";
  12. publicVariable "checkSumCounter";
  13. //Obtains what kind of mission file the file is.
  14. packageType=missionNamespace getVariable ["missionType","normal"];
  15. //Selects the right script package based on mission type.
  16. switch (packageType) do {
  17. case "multipleOccupationSimulator": {
  18. [] execVM (root+scriptPackagePath+"\mosPackage.sqf");
  19. missionNamespace setVariable ["scriptPackageDeployedName", "multipleOccupationSimulator package", true];
  20. };
  21. case "test": {
  22. [] execVM (root+scriptPackagePath+"\defaultPackage.sqf");
  23. [] execVM (root+scriptPackagePath+"\testPackage.sqf");
  24. missionNamespace setVariable ["scriptPackageDeployedName", "test package", true];
  25. };
  26. default {
  27. [] execVM (root+scriptPackagePath+"\defaultPackage.sqf");
  28. missionNamespace setVariable ["scriptPackageDeployedName", "default package", true];
  29. };
  30. };