config.cpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #define COMPONENT rocket
  2. #include "../../RD501_main/config_macros.hpp"
  3. #include "../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(rocket)
  7. {
  8. author=DANKAUTHORS;
  9. addonRootClass= macro_patch_name(weapons)
  10. requiredAddons[]=
  11. {
  12. macro_patch_name(weapons)
  13. };
  14. requiredVersion=0.1;
  15. units[]={};
  16. weapons[]={
  17. macro_new_weapon(hh,15),
  18. macro_new_weapon(rps,6),
  19. macro_new_weapon(Launcher,PLX1),
  20. };
  21. };
  22. };
  23. class cfgWeapons
  24. {
  25. class launch_RPG32_F;
  26. class RocketHH15Clone;
  27. class RocketRPS6_F;
  28. class JLTS_PLX1_AT;
  29. /*class macro_new_weapon(hh,15):RocketHH15Clone
  30. {
  31. author= "RD501";
  32. _generalMacro = macro_new_weapon(hh,15)
  33. scope = 2;
  34. scopeCurator=2;
  35. scopeArsenal=2;
  36. displayName = "Republic HH-15 Rocket Launcher.";
  37. #include "rocket_scope_fix.hpp"
  38. magazineWell[] += {macro_new_magwell(rocket_RPS)};
  39. };
  40. class macro_new_weapon(rps,6):RocketRPS6_F
  41. {
  42. author= "RD501";
  43. _generalMacro = macro_new_weapon(rps,6)
  44. scope = 2;
  45. scopeCurator=2;
  46. scopeArsenal=2;
  47. displayName = "Republic RPS 6 Rocket Launcher.";
  48. recoil = "recoil_single_law";
  49. #include "rocket_scope_fix.hpp"
  50. magazineWell[] += {macro_new_magwell(rocket_RPS)};
  51. };*/
  52. class macro_new_weapon(Launcher,PLX1): JLTS_PLX1_AT
  53. {
  54. author= "RD501";
  55. _generalMacro = macro_new_weapon(Launcher,PLX1)
  56. scope = 2;
  57. scopeCurator=2;
  58. scopeArsenal=2;
  59. displayName = "Republic PLX1s";
  60. ace_javelin_enabled = 1; // Enable Javelin-style locking (0-disabled, 1-enabled)
  61. weaponInfoType = "ACE_RscOptics_javelin"; // Inteface
  62. modelOptics = "\z\ace\addons\javelin\data\reticle_titan.p3d"; // Optics model
  63. canLock = 0; // Disable vanilla locking (0-disabled, 1-enabled)
  64. lockingTargetSound[] = {"", 0, 1}; // Locking sound
  65. lockedTargetSound[] = {"", 0, 1}; // Target acquired sound
  66. };
  67. };