initPlayerLocal.sqf 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* Nam's Jetpack script is disabled until seperate testing can be completed.
  2. (_this select 0) addEventHandler ["InventoryOpened", {
  3. namUnit=(_this select 0);
  4. _namBackPack=typeof(unitBackpack namUnit);
  5. _namIsConfigured=namUnit getVariable ["namJumpPackConfig", false];
  6. if(!_namIsConfigured && {_namBackPack isEqualTo "SWOP_B_CloneDV"}) then
  7. {
  8. [namUnit] execVM "scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\jumpAssinger.sqf";
  9. [namUnit] execVM "scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\jumpShort.sqf";
  10. [namUnit] execVM "scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\jumpLong.sqf";
  11. [namUnit] execVM "scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\jumpVertical.sqf";
  12. [namUnit] execVM "scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\jumpHandler.sqf";
  13. namUnit setVariable ["namJumpPackConfig", true, true];
  14. hint parseText format["<t color='#40e0d0'>Namenai's Horseborne JumpScript Protocal has been initiated.(HJS Protocal) at time %1 </t> <img image='scripts\zeus3denScripts\playerBased\airborne\HJS Protocal\horseborneImage.jpg' <img size='10' />",time];
  15. };
  16. }];
  17. (_this select 0) addMPEventHandler ["MPRespawn", {
  18. namUnit=(_this select 0);
  19. namUnit setVariable ["namJumpPackConfig", false, true];
  20. }];
  21. */
  22. //delets body on death
  23. Player addEventHandler ["GetInMan", {
  24. _x addMPEventHandler ["MPkilled",{deleteVehicle (_this select 0);}];
  25. }];
  26. Player addEventHandler ["GetOutMan", {
  27. _x removeAllMPEventHandlers "MPKILLED";
  28. }];
  29. player enableFatigue False;
  30. player addEventHandler ["Respawn", {player enableFatigue false}];