config.cpp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. };
  19. };
  20. };
  21. class CfgWeapons
  22. {
  23. class 3AS_Valken38X_Base_F;
  24. class 3AS_Valken38X_F:3AS_Valken38X_Base_F
  25. {
  26. class Single;
  27. class WeaponSlotsInfo
  28. {
  29. class CowsSlot;
  30. };
  31. };
  32. class macro_new_weapon_nofam(valken38x):3AS_Valken38X_F
  33. {
  34. displayName="Republic Valken 38X";
  35. magazines[]=
  36. {
  37. macro_new_mag(20mw,20),
  38. macro_new_mag(30mw,10)
  39. };
  40. class Single : Single
  41. {
  42. reloadTime=0.5;
  43. };
  44. class WeaponSlotsInfo: WeaponSlotsInfo
  45. {
  46. mass = 30;
  47. class CowsSlot: CowsSlot
  48. {
  49. access = 1;
  50. compatibleItems[] =
  51. {
  52. macro_new_weapon(scope,dc_15a_acogtcw),
  53. macro_new_weapon(scope,valken_6_12x)
  54. };
  55. };
  56. };
  57. };
  58. };