Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. /*
  2. Author:
  3.  
  4. BACONMOP
  5.  
  6. Description:
  7.  
  8. Things that may run on both server and client.
  9. Deprecated initialization file, still using until the below is correctly partitioned between server and client.
  10. ______________________________________________________*/
  11. missionActive = true;
  12. enableSaving false;
  13. artySorcher allowDamage False;
  14. artyMLRS allowDamage False;
  15. CVN_CIWS_Active = false;
  16. CVN_CIWS_Cooldown = false;
  17. jetspawnpos = 0;
  18.  
  19. BaseArray = ["respawn_west","FOB_Martian","FOB_Marathon","FOB_Guardian","FOB_Last_Stand","USS_Freedom"/*,"safeZoneHill"*/];
  20.  
  21.  
  22. //TK message
  23. sendTKhintC = {
  24. params["_killed"];
  25. hintC format ["%1, you just teamkilled %2, which is not allowed. You should apologize to %2.", name player, _killed];
  26. };
  27.  
  28. if ( isServer ) then {
  29. //admin channel
  30. adminChannelID = radioChannelCreate [[0.8, 0, 0, 1], "Admin Channel", "%UNIT_NAME", [], true];
  31. publicVariable "adminChannelID";
  32. };
  33. adminChannelID radioChannelAdd [Quartermaster];
  34.  
  35. //---------------------------------- Mission vars (for all clients)
  36. derp_PARAM_AOSize = "AOSize" call BIS_fnc_getParamValue;
  37. derp_PARAM_AntiAirAmount = "AntiAirAmount" call BIS_fnc_getParamValue;
  38. derp_PARAM_MRAPAmount = "MRAPAmount" call BIS_fnc_getParamValue;
  39. derp_PARAM_InfantryGroupsAmount = "InfantryGroupsAmount" call BIS_fnc_getParamValue;
  40. derp_PARAM_AAGroupsAmount = "AAGroupsAmount" call BIS_fnc_getParamValue;
  41. derp_PARAM_ATGroupsAmount = "ATGroupsAmount" call BIS_fnc_getParamValue;
  42. derp_PARAM_RandomVehcsAmount = "RandomVehcsAmount" call BIS_fnc_getParamValue;
  43.  
  44. derp_PARAM_AIAimingAccuracy = "AIAimingAccuracy" call BIS_fnc_getParamValue;
  45. derp_PARAM_AIAimingShake = "AIAimingShake" call BIS_fnc_getParamValue;
  46. derp_PARAM_AIAimingSpeed = "AIAimingSpeed" call BIS_fnc_getParamValue;
  47. derp_PARAM_AISpotingDistance = "AISpotingDistance" call BIS_fnc_getParamValue;
  48. derp_PARAM_AISpottingSpeed = "AISpottingSpeed" call BIS_fnc_getParamValue;
  49. derp_PARAM_AICourage = "AICourage" call BIS_fnc_getParamValue;
  50. derp_PARAM_AIReloadSpeed = "AIReloadSpeed" call BIS_fnc_getParamValue;
  51. derp_PARAM_AICommandingSkill = "AICommandingSkill" call BIS_fnc_getParamValue;
  52. derp_PARAM_AIGeneralSkill = "AIGeneralSkill" call BIS_fnc_getParamValue;
  53.  
  54.  
  55. ["Initialize"] call BIS_fnc_dynamicGroups;
  56. for [ {_i = 0}, {_i < count(paramsArray)}, {_i = _i + 1} ] do {
  57. call compile format
  58. [
  59. "PARAMS_%1 = %2",
  60. (configName ((missionConfigFile >> "Params") select _i)),
  61. (paramsArray select _i)
  62. ];
  63. };
  64.  
  65. //====zeus stuff====
  66. if ( isServer ) then{
  67. addMissionEventHandler ["HandleDisconnect",
  68. {
  69. params ["_unit"];
  70. if !( isNil {_unit getVariable 'zeusModule'} ) then{
  71. _zeus = _unit getVariable 'zeusModule';
  72. unassignCurator (zeusModules select _zeus);
  73. };
  74. false
  75. }
  76. ];
  77. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement