config.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #include "../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class RD501_patch_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. class showHintEMP
  30. {
  31. };
  32. };
  33. };
  34. };
  35. class Extended_HitPart_EventHandlers
  36. {
  37. class CAManBase
  38. {
  39. JLTS_weapons_core="if (JLTS_settings_EMP_mainSwitch == 1 || JLTS_settings_Stun_mainSwitch == 1) then {(_this select 0) call RD501_fnc_onHit}";
  40. };
  41. };
  42. class CfgHints
  43. {
  44. class RD501_ordnance
  45. {
  46. displayName="$STR_JLTS_names_HintCatOrdnance";
  47. category="JLTS";
  48. logicalOrder=2;
  49. class EMP
  50. {
  51. displayName="$STR_JLTS_names_HintEMPEffect";
  52. description="$STR_JLTS_descs_HintEMPEffect";
  53. tip="$STR_JLTS_tips_HintEMPEffect";
  54. arguments[]={};
  55. image="\MRC\JLTS\weapons\Core\data\ui\hint_emp_ca.paa";
  56. logicalOrder=1;
  57. class EMP_sub_fry
  58. {
  59. displayName="Weapon Jammed";
  60. description="You have been struck by EMP which may have damaged the circuits of some of your weapons and inventory items. Use the 'Clear Jam' keybind to fix your weapon.";
  61. tip="$STR_JLTS_tips_HintEMPEffect";
  62. arguments[]={};
  63. image="\MRC\JLTS\weapons\Core\data\ui\hint_emp_fry_ca.paa";
  64. };
  65. };
  66. };
  67. };