Advertisement
Guest User

Untitled

a guest
May 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. #define framework
  2.  
  3. #include "core\script_macros.hpp"
  4. #include "core\init.sqf" //DO NOT REMOVE
  5. #include "customization\settings.sqf" //DO NOT REMOVE
  6. #include "core\dia\debug\dia_debug.sqf" //DO NOT REMOVE
  7.  
  8. if (isServer) then {
  9.  
  10. "" call FNC_StartingCount; //DO NOT REMOVE
  11.  
  12. [] spawn { //Spawns code running in parallel
  13.  
  14. while {!FW_MissionEnded} do { //Loops while the mission is not ended
  15.  
  16. #include "customization\endConditions.sqf" //DO NOT REMOVE
  17.  
  18. //The time limit in minutes variable called FW_TimeLimit is set in customization/settings.sqf, to disable the time limit set it to 0
  19. if ((time / 90) >= FW_TimeLimit && FW_TimeLimit != 0) exitWith { //It is recommended that you do not remove the time limit end condition
  20.  
  21. FW_TimeLimitMessage call FNC_EndMission;
  22.  
  23. };
  24. };
  25. };
  26.  
  27. //Randomize ANA personality players
  28. //Change the 5 to however many personalities you have
  29.  
  30. private "_n";
  31. b_ANAplayers = [];
  32. b_ANApers = [];
  33.  
  34. {
  35. if (_x getVariable ["b_isANA", false]) then {
  36. b_ANAplayers = b_ANAplayers + [_x];
  37. };
  38. } forEach allPlayers;
  39. diag_log format["b_ANAplayers: %1", b_ANAplayers];
  40. while {(count b_ANApers < 5) && (count b_ANAplayers > 0)} do {
  41. _n = floor(random(count b_ANAplayers));
  42. b_ANApers = b_ANApers + [b_ANAplayers select _n];
  43. b_ANAplayers = b_ANAplayers - [b_ANAplayers select _n];
  44. };
  45. publicVariable "b_ANApers";
  46. };
  47.  
  48. #include "modules\modules.sqf" //DO NOT REMOVE
  49. #include "core\postChecks.sqf" //DO NOT REMOVE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement