config.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #define COMPONENT DC_15l
  2. #include "../../../RD501_main/config_macros.hpp"
  3. #include "../../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(dc_15l)
  7. {
  8. author="RD501";
  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(DC,15l),
  18. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class UnderBarrelSlot;
  24. class 3AS_DC15L_Base_F;
  25. class 3AS_DC15L_F:3AS_DC15L_Base_F
  26. {
  27. class FullAuto;
  28. class Single;
  29. class WeaponSlotsInfo
  30. {
  31. class CowsSlot;
  32. class MuzzleSlot;
  33. class UnderBarrelSlot;
  34. };
  35. };
  36. class macro_new_weapon(DC,15l):3AS_DC15L_F
  37. {
  38. displayName="Republic DC-15L";
  39. recoil="recoil_mmg_02";
  40. deployedPivot="bipod";
  41. dispersion=0.00145;
  42. magazines[]=
  43. {
  44. macro_new_mag(20mw,240)
  45. };
  46. class FullAuto:FullAuto
  47. {
  48. reloadTime=0.08;
  49. dispersion=0.00145;
  50. };
  51. class Single : Single
  52. {
  53. reloadTime=0.08;
  54. dispersion=0.00145;
  55. };
  56. class WeaponSlotsInfo: WeaponSlotsInfo
  57. {
  58. mass = 30;
  59. class CowsSlot: CowsSlot
  60. {
  61. access = 1;
  62. compatibleItems[] =
  63. {
  64. macro_new_weapon(scope,dc_15a_acogtcw)
  65. };
  66. };
  67. class UnderBarrelSlot:UnderBarrelSlot
  68. {
  69. linkProxy="\A3\Data_F_Mark\Proxies\Weapon_Slots\UNDERBARREL";
  70. compatibleItems[]=
  71. {
  72. "bipod_01_F_blk",
  73. };
  74. iconPicture="\A3\Weapons_F_Mark\Data\UI\attachment_under.paa";
  75. iconPinpoint="Bottom";
  76. };
  77. class MuzzleSlot: MuzzleSlot
  78. {
  79. linkProxy="\A3\data_f\proxies\weapon_slots\MUZZLE";
  80. displayName="$str_a3_cfgweapons_abr_base_f_weaponslotsinfo_muzzleslot0";
  81. compatibleItems[]=
  82. {
  83. "RD501_muzzle_flash"
  84. };
  85. iconPicture="\A3\Weapons_F\Data\UI\attachment_muzzle.paa";
  86. iconPinpoint="Center";
  87. };
  88. };
  89. };
  90. };