config.cpp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. //Get this addons macro
  2. //get the macro for the air subaddon
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon vulture
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_vulture_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(vulture)
  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(cis,vulture),
  23. macro_new_vehicle(cis,vulture_elite)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class Eventhandlers;
  32. class CfgVehicles
  33. {
  34. class Air;
  35. class Plane: Air
  36. {
  37. class HitPoints;
  38. };
  39. class Plane_Base_F: Plane
  40. {
  41. class Components;
  42. class HitPoints: HitPoints
  43. {
  44. class HitHull;
  45. };
  46. };
  47. class Plane_Fighter_03_base_F: Plane_Base_F
  48. {
  49. class Components: Components{};
  50. class HitPoints: HitPoints
  51. {
  52. class HitHull: HitHull
  53. {
  54. };
  55. };
  56. };
  57. class Plane_Fighter_03_dynamicLoadout_base_F:Plane_Fighter_03_base_F
  58. {
  59. class Components: Components{};
  60. class HitPoints: HitPoints
  61. {
  62. class HitHull: HitHull
  63. {
  64. };
  65. };
  66. };
  67. class 3as_vulture_dynamicLoadout_base:Plane_Fighter_03_dynamicLoadout_base_F
  68. {
  69. class Components:Components{};
  70. class HitPoints: HitPoints
  71. {
  72. class HitHull: HitHull
  73. {
  74. };
  75. };
  76. };
  77. class 3as_Vulture_dynamicLoadout:3as_vulture_dynamicLoadout_base
  78. {
  79. class Components:Components{};
  80. class HitPoints: HitPoints
  81. {
  82. class HitHull: HitHull
  83. {
  84. };
  85. };
  86. };
  87. class macro_new_vehicle(cis,vulture_elite) : 3as_Vulture_dynamicLoadout
  88. {
  89. displayName="CIS Vulture Elite Droid"
  90. maxSpeed=750;
  91. airBrake=20;
  92. faction = macro_cis_faction
  93. editorSubcategory = macro_editor_cat_air(CIS)
  94. vehicleClass = macro_editor_vehicle_type_air(CIS)
  95. radarTargetSize = 0.7;
  96. class HitPoints: HitPoints
  97. {
  98. class HitHull: HitHull
  99. {
  100. name="HitHull";
  101. visual="Hit_Hull";
  102. armor=7;
  103. explosionShielding=3.5;
  104. passThrough=1;
  105. radius=0.5;
  106. minimalHit=0.050000001;
  107. depends="0";
  108. material=-1;
  109. };
  110. class HitEngine: HitHull
  111. {
  112. name="HitEngine";
  113. visual="Hit_Engine";
  114. armor=4.5;
  115. explosionShielding=4;
  116. passThrough=1;
  117. radius=0.60000002;
  118. minimalHit=0.050000001;
  119. };
  120. };
  121. class Eventhandlers: Eventhandlers
  122. {
  123. hit="";
  124. landing="[_this,true] call bis_fnc_aircraftTailhookAi";
  125. landingcanceled="[_this,false] call bis_fnc_aircraftTailhookAi";
  126. engine="_this call bis_fnc_aircraftFoldingWings";
  127. gear="_this call bis_fnc_aircraftFoldingWings";
  128. };
  129. };
  130. class macro_new_vehicle(cis,vulture) : 3as_Vulture_dynamicLoadout
  131. {
  132. displayName="CIS Vulture Droid"
  133. maxSpeed=750;
  134. airBrake=20;
  135. faction = macro_cis_faction
  136. editorSubcategory = macro_editor_cat_air(CIS)
  137. vehicleClass = macro_editor_vehicle_type_air(CIS)
  138. radarTargetSize = 0.7;
  139. class Components: Components
  140. {
  141. class TransportPylonsComponent
  142. {};
  143. };
  144. class HitPoints: HitPoints
  145. {
  146. class HitHull: HitHull
  147. {
  148. name="HitHull";
  149. visual="Hit_Hull";
  150. armor=7;
  151. explosionShielding=3.5;
  152. passThrough=1;
  153. radius=0.5;
  154. minimalHit=0.050000001;
  155. depends="0";
  156. material=-1;
  157. };
  158. class HitEngine: HitHull
  159. {
  160. name="HitEngine";
  161. visual="Hit_Engine";
  162. armor=4.5;
  163. explosionShielding=4;
  164. passThrough=1;
  165. radius=0.60000002;
  166. minimalHit=0.050000001;
  167. };
  168. };
  169. class Eventhandlers: Eventhandlers
  170. {
  171. hit="";
  172. landing="[_this,true] call bis_fnc_aircraftTailhookAi";
  173. landingcanceled="[_this,false] call bis_fnc_aircraftTailhookAi";
  174. engine="_this call bis_fnc_aircraftFoldingWings";
  175. gear="_this call bis_fnc_aircraftFoldingWings";
  176. };
  177. };
  178. };