config.cpp 581 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #include "../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class macro_patch_name(emp)
  5. {
  6. author=DANKAUTHORS;
  7. requiredAddons[]=
  8. {
  9. macro_root_req
  10. };
  11. requiredVersion=0.1;
  12. units[]={};
  13. weapons[]={};
  14. };
  15. };
  16. class CfgFunctions
  17. {
  18. class RD501
  19. {
  20. class Weapons
  21. {
  22. file="\RD501_EMP";
  23. class onHit
  24. {
  25. };
  26. class onHitEMP
  27. {
  28. };
  29. };
  30. };
  31. };
  32. class Extended_HitPart_EventHandlers
  33. {
  34. class CAManBase
  35. {
  36. JLTS_weapons_core="if (JLTS_settings_EMP_mainSwitch == 1 || JLTS_settings_Stun_mainSwitch == 1) then {(_this select 0) call RD501_fnc_onHit}";
  37. };
  38. };