config.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. //Get this addons macro
  2. //get the macro for the air macro_patch_name(vehicles)
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon artillery
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_arty_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(artillery)
  13. {
  14. addonRootClass=macro_patch_name(vehicles)
  15. requiredAddons[]=
  16. {
  17. macro_patch_name(vehicles)
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. macro_new_vehicle(artillery,CIS_Arty),
  23. macro_new_vehicle(artillery,av76)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class DefaultEventhandlers;
  32. class CfgVehicles
  33. {
  34. #include "inheritance.hpp"
  35. class macro_new_vehicle(artillery,CIS_Arty): O_Truck_03_device_F
  36. {
  37. displayName = "CIS Rocket Truck";
  38. scope = 0;
  39. scopeCurator=0;
  40. forceInGarage = 1;
  41. faction = macro_cis_faction
  42. editorSubcategory = macro_editor_cat(arty)
  43. vehicleClass = macro_editor_cat(arty)
  44. crew=macro_new_unit_class(opfor,B1_crew)
  45. typicalCargo[] = {"SWOP_CIS_droid_crew"};
  46. side=0;
  47. attenuationEffectType = "TankAttenuation";
  48. #include "sounds.hpp"
  49. textureList[] = {};
  50. hiddenSelections[] = {"Camo1", "Camo2", "Camo3", "Camo4"};
  51. hiddenSelectionsTextures[] =
  52. {
  53. macro_vehicle_textures\Tempest\CIS_Tempest_Ext.paa,
  54. "",
  55. macro_vehicle_textures\Tempest\CIS_Tempest_Cover.paa
  56. };
  57. class EventHandlers: DefaultEventhandlers {};
  58. };
  59. class macro_new_vehicle(artillery,av76):SW_AV7//MBT_01_arty_base_F
  60. {
  61. scope=0;
  62. scopeCurator=0;
  63. scopeArsenal=2;
  64. forceInGarage=1;
  65. displayName="AV-76";
  66. side=1;
  67. RD501_magclamp_small_forbidden = 1;
  68. RD501_magclamp_large_offset[] = {0.0,-6.0,-9.5};
  69. faction = macro_republic_faction
  70. editorSubcategory = macro_editor_cat(arty)
  71. vehicleClass = macro_editor_cat(arty)
  72. forceInGarage = 1;
  73. class Turrets:Turrets
  74. {
  75. class MainTurret:MainTurret
  76. {
  77. weapons[] = {
  78. macro_new_weapon(artillery,av76)
  79. };
  80. magazines[] = {
  81. "32Rnd_155mm_Mo_shells",
  82. "4Rnd_155mm_Mo_guided",
  83. "6Rnd_155mm_Mo_mine",
  84. "2Rnd_155mm_Mo_Cluster",
  85. "6Rnd_155mm_Mo_smoke",
  86. "2Rnd_155mm_Mo_LG",
  87. "6Rnd_155mm_Mo_AT_mine"
  88. };
  89. maxHorizontalRotSpeed = 0.78;
  90. maxVerticalRotSpeed = 0.26;
  91. memoryPointGunnerOptics = "gunnerview";
  92. cameraDir = "look";
  93. elevationMode=3;
  94. };
  95. };
  96. };
  97. };