config.cpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. //get generlized macros
  2. #include "../../../RD501_main/config_macros.hpp"
  3. //General name of the vehicle
  4. #define vehicle_addon atap
  5. #define patch_name MODNAME##vehicle_addon##_Patches
  6. #define vehicle_classname MODNAME##_##vehicle_addon
  7. class CfgPatches
  8. {
  9. class RD501_patch_atap
  10. {
  11. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  12. requiredAddons[]=
  13. {
  14. RD501_patch_vehicles
  15. };
  16. requiredVersion=0.1;
  17. units[]=
  18. {
  19. macro_new_vehicle(walker,republic_atap_MkII)
  20. };
  21. weapons[]=
  22. {
  23. };
  24. };
  25. };
  26. class CfgVehicles
  27. {
  28. class MBT_01_base_F;
  29. class MBT_01_arty_base_F: MBT_01_base_F
  30. {
  31. class Turrets;
  32. };
  33. class 3as_ATAP_base: MBT_01_arty_base_F
  34. {
  35. class Turrets:Turrets
  36. {
  37. class MainTurret1;
  38. class MainTurretBottom;
  39. class MainTurretTop;
  40. };
  41. };
  42. class macro_new_vehicle(walker,republic_atap_MkII):3as_ATAP_base
  43. {
  44. scope=2;
  45. scopeCurator=2;
  46. displayName= "Republic ATAP Mk.II";
  47. faction = MACRO_QUOTE(macro_faction(republic));
  48. editorSubcategory = MACRO_QUOTE(macro_editor_cat(tank));
  49. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(tank));
  50. RD501_magclamp_small_forbidden=1;
  51. RD501_magclamp_large_offset[]={0.0, -5.5, -10.5};
  52. class Turrets:Turrets
  53. {
  54. class MainTurretTop:MainTurretTop{};
  55. class MainTurretBottom:MainTurretBottom{};
  56. class MainTurret1: MainTurret1
  57. {
  58. elevationMode=0;
  59. minElev=-25;
  60. weapons[]=
  61. {
  62. macro_new_weapon(mynock_cannon,mbt)
  63. };
  64. magazines[]=
  65. {
  66. macro_new_mag(mynock_mbt_ap,12),
  67. macro_new_mag(mynock_mbt_he,12),
  68. macro_new_mag(mynock_mbt_ap,12),
  69. macro_new_mag(mynock_mbt_he,12)
  70. };
  71. };
  72. };
  73. };
  74. };