config.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 = 2;
  39. scopeCurator=2;
  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=2;
  62. scopeCurator=2;
  63. scopeArsenal=2;
  64. forceInGarage=1;
  65. displayName="AV-76";
  66. side=1;
  67. faction = macro_republic_faction
  68. editorSubcategory = macro_editor_cat(arty)
  69. vehicleClass = macro_editor_cat(arty)
  70. forceInGarage = 1;
  71. class Turrets:Turrets
  72. {
  73. class MainTurret:MainTurret
  74. {
  75. weapons[] = {
  76. macro_new_weapon(artillery,av76)
  77. };
  78. magazines[] = {
  79. "32Rnd_155mm_Mo_shells",
  80. "4Rnd_155mm_Mo_guided",
  81. "6Rnd_155mm_Mo_mine",
  82. "2Rnd_155mm_Mo_Cluster",
  83. "6Rnd_155mm_Mo_smoke",
  84. "2Rnd_155mm_Mo_LG",
  85. "6Rnd_155mm_Mo_AT_mine"
  86. };
  87. maxHorizontalRotSpeed = 0.78;
  88. maxVerticalRotSpeed = 0.26;
  89. memoryPointGunnerOptics = "gunnerview";
  90. cameraDir = "look";
  91. elevationMode=3;
  92. };
  93. };
  94. };
  95. };