config.cpp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #define COMPONENT RPS1
  2. #include "../../../RD501_main/config_macros.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(RPS_Disposable)
  6. {
  7. author=DANKAUTHORS;
  8. addonRootClass= macro_patch_name(weapons)
  9. requiredAddons[]=
  10. {
  11. macro_patch_name(weapons)
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. macro_new_weapon(launcher_rps1),
  17. macro_new_weapon(launcher_rps1_u)
  18. };
  19. };
  20. };
  21. class cfgWeapons
  22. {
  23. class Launcher_Base_F;
  24. class launch_RPG32_F: Launcher_Base_F {
  25. class WeaponSlotsInfo;
  26. };
  27. class macro_new_weapon(launcher,rps1) : launch_RPG32_F
  28. {
  29. author= "RD501";
  30. scope = 2;
  31. scopeArsenal=2;
  32. displayName = "Republic RPS1 Launcher";
  33. model = "\3AS\3AS_Weapons\RPS6\3AS_RPS6_F.p3d";
  34. icon = "\RD501_Weapons\Launchers\RPS1\rps_disposable_icon.paa";
  35. picture = "\RD501_Weapons\Launchers\RPS1\rps_disposable_icon.paa";
  36. recoil = "recoil_single_law";
  37. baseWeapon = macro_new_weapon(launcher,rps1)
  38. RD501_Empty_Weapon = macro_new_weapon(launcher,rps1_u)
  39. magazines[] = { macro_new_mag(rps1,1) };
  40. magazineWell[]={""};
  41. magazineReloadTime = 0.1;
  42. reloadMagazineSound[] = {"",1,1};
  43. class EventHandlers {
  44. fired = macro_quote(_this call macro_fnc_name(onWeaponFiredSwapToEmpty));
  45. };
  46. class WeaponSlotsInfo: WeaponSlotsInfo {
  47. mass = 80;
  48. };
  49. };
  50. class macro_new_weapon(launcher,rps1_u) : macro_new_weapon(launcher,rps1)
  51. {
  52. author= "RD501";
  53. scope = 1;
  54. scopeArsenal=1;
  55. displayName = "Republic RPS1 Launcher (Used)";
  56. icon = "\RD501_Weapons\Launchers\RPS1\rps_disposable_icon.paa";
  57. picture = "\RD501_Weapons\Launchers\RPS1\rps_disposable_icon.paa";
  58. baseWeapon = macro_new_weapon(launcher,rps1_u)
  59. magazineWell[]={"empty"};
  60. magazines[] = { "empty" };
  61. class WeaponSlotsInfo: WeaponSlotsInfo {
  62. mass = 10;
  63. };
  64. };
  65. };