darkstaride

Untitled

Nov 25th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.98 KB | None | 0 0
  1. /*=============================================
  2. init_client.sqf executes everything that is needed
  3. Authors: richarddanh.com
  4. www.pizzadox.org
  5. =================================================*/
  6. client_execution = {
  7. if (isplayer player) then
  8. {
  9. waituntil {local player};
  10. player enableSimulation false;
  11. 2003 CutText ["Initialising...", "BLACK"];
  12. //calculate time
  13. _future = time + 5;
  14. waitUntil {(time >= _future)};
  15. defaultloadoutinit = [player] spawn {
  16. _unit = _this select 0;
  17. removeAllWeapons _unit;
  18. removeAllItems _unit;
  19. clearMagazineCargo (unitBackpack _unit);
  20. [_unit, "ALL"] call ACE_fnc_RemoveGear;
  21. //{_unit addweapon _x} foreach startinggear;
  22. _unit addWeapon "ACE_Earplugs";
  23. _unit addWeapon "ItemGPS";
  24. _unit addWeapon "ItemWatch";
  25. _unit addWeapon "ACRE_PRC343";
  26. _unit addWeapon "ACRE_PRC148";
  27. _unit addWeapon "ACE_GlassesLHD_glasses";
  28. _unit addWeapon "ACE_GlassesGasMask_US";
  29. _unit addWeapon "ACE_Map";
  30. _unit addWeapon "ItemCompass";
  31. _unit addweapon "NVGoggles";
  32. _unit addweapon "Binocular";
  33. waituntil {(player hasweapon "ACE_Earplugs" ) && (player hasweapon "ACE_GlassesLHD_glasses" ) };
  34. [_unit] execFSM "x\ace\addons\sys_goggles\use_earplug.fsm";
  35. [_unit, "ACE_GlassesLHD_glasses"] execFSM "x\ace\addons\sys_goggles\use_glasses.fsm";
  36. };
  37. ace_sys_tracking_markers_enabled = false;
  38. ace_sys_eject_fnc_weaponcheck = {};
  39. setViewDistance 1609;
  40. setTerrainGrid 50;
  41. onMapSingleClick {_shift};
  42. player setskill 0;
  43. player setVariable ["BIS_noCoreConversations", true];
  44. enableRadio false;
  45. {player disableAI _x} foreach ["MOVE","ANIM","TARGET","AUTOTARGET"];
  46. [] call (compile (preprocessFileLineNumbers ("\ca\Modules\MP\data\scripts\MPframework.sqf")));
  47. waitUntil { scriptDone defaultloadoutinit };
  48. titleFadeOut 0.1;
  49. 2003 CutText ["Camp Ethan Allen", "BLACK IN", 5];
  50. diag_log format ["Mission Initialisation Completed for: %1 at: %2", player, time];
  51. player enablesimulation true;
  52. player addEventHandler ["Respawn",{
  53. _unit = _this select 0;
  54. removeAllWeapons _unit;
  55. removeAllItems _unit;
  56. clearMagazineCargo (unitBackpack _unit);
  57. [_unit, "ALL"] call ACE_fnc_RemoveGear;
  58. //{_unit addweapon _x} foreach startinggear;
  59. _unit addWeapon "ACE_Earplugs";
  60. _unit addWeapon "ItemGPS";
  61. _unit addWeapon "ItemWatch";
  62. _unit addWeapon "ACRE_PRC343";
  63. _unit addWeapon "ACRE_PRC148";
  64. _unit addWeapon "ACE_GlassesLHD_glasses";
  65. _unit addWeapon "ACE_GlassesGasMask_US";
  66. _unit addWeapon "ACE_Map";
  67. _unit addWeapon "ItemCompass";
  68. _unit addweapon "NVGoggles";
  69. _unit addweapon "Binocular";
  70. waituntil {(player hasweapon "ACE_Earplugs" ) && (player hasweapon "ACE_GlassesLHD_glasses" ) };
  71. [_unit] execFSM "x\ace\addons\sys_goggles\use_earplug.fsm";
  72. [_unit, "ACE_GlassesLHD_glasses"] execFSM "x\ace\addons\sys_goggles\use_glasses.fsm";
  73. }];
  74. [] spawn {
  75. sleep 5;
  76. [str ("Camp Ethan Allen"), str("Chernarus"), str(date select 1) + "." + str(date select 2) + "." + str(date select 0)] spawn BIS_fnc_infoText;
  77. };
  78. };
  79. };
  80.  
  81. player call client_execution;
  82.  
  83. //JiP (Join in progress)
  84. if (!isServer && isNull player) then {
  85. waitUntil {!isNull player};
  86. waituntil {local player};
  87. player call client_execution;
  88. player setpos (getmarkerpos "respawn_west");
  89. };
Advertisement
Add Comment
Please, Sign In to add comment