XEH_postinit.sqf 957 B

12345678910111213141516171819202122232425262728
  1. #include "config_macros.hpp"
  2. //Run the jumppack script
  3. [] spawn {
  4. [] spawn compile preprocessFileLineNumbers 'macro_mod_script_path\jumppack\jumppack.sqf';
  5. sleep 0.5;
  6. call compile preprocessFileLineNumbers 'macro_mod_script_path\jumppack\jumppack_effects.sqf';
  7. };
  8. // Add nightvision event handler
  9. call macro_fnc_name(nightvision);
  10. #define QWEAP_NOFAM(name) macro_quote(macro_new_weapon_nofam(name))
  11. #define QWEAP_LAUNCH(name) macro_quote(macro_new_weapon(launcher,name))
  12. // Drone Recharge
  13. RD501_DRONE_BATTERY = "lightsaberG_swing";
  14. //Force Walk
  15. RD501_FORCE_WALK_WEAPONS = [macro_quote(macro_new_weapon_nofam(z1000))];
  16. ["weapon", macro_fnc_name(heavyWeaponHandlePlayerWeaponChanged)] call CBA_fnc_addPlayerEventHandler;
  17. //Auto Reload On Equip
  18. RD501_AUTO_RELOAD_ON_EQUIP = [QWEAP_NOFAM(z1000),QWEAP_LAUNCH(rps1)];
  19. ["weapon", macro_fnc_name(reloadWeaponOnFirstSelected)] call CBA_fnc_addPlayerEventHandler;
  20. // Magclamp
  21. call macro_fnc_name(magclamp);