config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #define COMPONENT E5
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(b2)
  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(b2,standard)
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class Rifle_Base_F;
  24. class Rifle_Long_Base_F: Rifle_Base_F
  25. {};
  26. class DBA_B2_Weapon: Rifle_Long_Base_F
  27. {class Secondary: Rifle_Long_Base_F{};};
  28. class macro_new_weapon(b2,standard):DBA_B2_Weapon
  29. {
  30. magazines[]=
  31. {
  32. macro_new_mag(b2gun,40)
  33. };
  34. reloadAction="";
  35. class Secondary: Secondary
  36. {
  37. muzzles[]=
  38. {
  39. "this"
  40. };
  41. magazines[]=
  42. {
  43. macro_new_mag(b2rocket,3)
  44. };
  45. };
  46. };
  47. };
  48. class CfgMagazines
  49. {
  50. class CA_Magazine;
  51. class 101st_B2_Rocket: CA_Magazine{};
  52. class macro_new_mag(b2rocket,3):101st_B2_Rocket
  53. {
  54. descriptionShort="Wrist Rockets";
  55. displayName="B2 Wrist Rockets";
  56. count=3;
  57. ammo=macro_new_ammo(b2rocket)
  58. };
  59. class 101st_B2_Mag: CA_Magazine{}
  60. class macro_new_mag(b2gun,40):101st_B2_Mag
  61. {
  62. descriptionShort="B2 Droid Magazine";
  63. displayName="B2 Droid Magazine";
  64. count=40;
  65. ammo=macro_new_ammo(b2gun)
  66. tracersEvery=1;
  67. };
  68. };
  69. class CfgAmmo
  70. {
  71. class JLTS_bullet_carbine_red;
  72. class 101st_Wrist_Rocket_Ammo: JLTS_bullet_carbine_red{}
  73. class macro_new_ammo(b2rocket):101st_Wrist_Rocket_Ammo
  74. {
  75. cost=50;
  76. caliber=3;
  77. dangerRadiusBulletClose=16;
  78. dangerRadiusHit=40;
  79. effectFly="b2rockets_Effect";
  80. explosionAngle=60;
  81. explosive=0.80000001;
  82. hit=100;
  83. effectFlare="FlareShell";
  84. effectsFire="CannonFire";
  85. explosionDir="explosionDir";
  86. explosionEffects="ATMissileExplosion";
  87. explosionEffectsDir="explosionDir";
  88. explosionPos="explosionPos";
  89. explosionType="explosive";
  90. indirectHit=5;
  91. indirectHitRange=3;
  92. model="\A3\Weapons_F\Ammo\ugl_slug";
  93. muzzleEffect="BIS_fnc_effectFiredRocket";
  94. };
  95. class 101st_B2_Ammo: JLTS_bullet_carbine_red{}
  96. class macro_new_ammo(b2gun):101st_B2_Ammo
  97. {
  98. cost=1;
  99. caliber=3;
  100. dangerRadiusBulletClose=16;
  101. dangerRadiusHit=40;
  102. explosionAngle=60;
  103. explosive=0;
  104. hit=20;
  105. model="\RD501_Vehicle_Weapons\_ammo\data\laser_small_red.p3d";
  106. tracerScale=1;
  107. tracerStartTime=0;
  108. tracerEndTime=10;
  109. explosionSoundEffect="DefaultExplosion";
  110. explosionEffects="ExploAmmoExplosionPlaneCAS";
  111. craterEffects="ExploAmmoCrater";
  112. };
  113. };