config.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. #define COMPONENT DC_15s
  2. #include "../../RD501_main/config_macros.hpp"
  3. #include "../_common/common.hpp"
  4. class CfgPatches
  5. {
  6. class macro_patch_name(valken38x)
  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_nofam(valken38x),
  18. macro_new_weapon_nofam(valken38y)
  19. };
  20. };
  21. };
  22. class CfgWeapons
  23. {
  24. class 3AS_Valken38X_Base_F;
  25. class 3AS_Valken38X_F:3AS_Valken38X_Base_F
  26. {
  27. class Single;
  28. class WeaponSlotsInfo
  29. {
  30. class CowsSlot;
  31. };
  32. };
  33. class macro_new_weapon_nofam(valken38x):3AS_Valken38X_F
  34. {
  35. displayName="Republic Valken 38X";
  36. dispersion=0.00045;
  37. magazines[]=
  38. {
  39. macro_new_mag(20mwdp,20),
  40. macro_new_mag(30mw,10)
  41. };
  42. class Single : Single
  43. {
  44. reloadTime=0.65;
  45. dispersion=0.00045;
  46. };
  47. class WeaponSlotsInfo: WeaponSlotsInfo
  48. {
  49. mass = 30;
  50. class CowsSlot: CowsSlot
  51. {
  52. access = 1;
  53. compatibleItems[] =
  54. {
  55. macro_new_weapon(scope,valken_6_12x)
  56. };
  57. };
  58. };
  59. };
  60. class arifle_MX_Base_F;
  61. class JLTS_DW32S:arifle_MX_Base_F
  62. {
  63. class Single;
  64. class WeaponSlotsInfo
  65. {
  66. class CowsSlot;
  67. };
  68. };
  69. class macro_new_weapon_nofam(valken38y):JLTS_DW32S
  70. {
  71. displayName="Republic Valken 38Y";
  72. dispersion=0.00045;
  73. magazines[]=
  74. {
  75. macro_new_mag(20mwdp,20),
  76. macro_new_mag(30mw,10)
  77. };
  78. muzzles[]={"this"};
  79. class Single : Single
  80. {
  81. reloadTime=0.65;
  82. dispersion=0.00045;
  83. };
  84. class WeaponSlotsInfo: WeaponSlotsInfo
  85. {
  86. mass = 30;
  87. class CowsSlot: CowsSlot
  88. {
  89. access = 1;
  90. compatibleItems[] =
  91. {
  92. macro_new_weapon(scope,valken_6_12x)
  93. };
  94. };
  95. };
  96. };
  97. };