config.cpp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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 RD501_patch_vulture
  13. {
  14. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  15. requiredAddons[]=
  16. {
  17. RD501_patch_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_QUOTE(macro_faction(CIS));
  93. editorSubcategory = MACRO_QUOTE(macro_editor_cat_air(CIS));
  94. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type_air(CIS));
  95. radarTargetSize = 0.7;
  96. weapons[]={
  97. macro_new_weapon(generic,aircraft_laser),
  98. macro_new_weapon(wynd,a2a_vulture)
  99. };
  100. magazines[]={
  101. macro_new_mag(generic_aircraft_gun,1000),
  102. macro_new_mag(generic_aircraft_gun,1000),
  103. macro_new_mag(a2a,2),
  104. macro_new_mag(a2a,2)
  105. };
  106. class Components: Components
  107. {
  108. class TransportPylonsComponent
  109. {};
  110. };
  111. class HitPoints: HitPoints
  112. {
  113. class HitHull: HitHull
  114. {
  115. name="HitHull";
  116. visual="Hit_Hull";
  117. armor=7;
  118. explosionShielding=3.5;
  119. passThrough=1;
  120. radius=0.5;
  121. minimalHit=0.050000001;
  122. depends="0";
  123. material=-1;
  124. };
  125. class HitEngine: HitHull
  126. {
  127. name="HitEngine";
  128. visual="Hit_Engine";
  129. armor=4.5;
  130. explosionShielding=4;
  131. passThrough=1;
  132. radius=0.60000002;
  133. minimalHit=0.050000001;
  134. };
  135. };
  136. class Eventhandlers: Eventhandlers
  137. {
  138. hit="";
  139. landing="[_this,true] call bis_fnc_aircraftTailhookAi";
  140. landingcanceled="[_this,false] call bis_fnc_aircraftTailhookAi";
  141. engine="_this call bis_fnc_aircraftFoldingWings";
  142. gear="_this call bis_fnc_aircraftFoldingWings";
  143. };
  144. };
  145. class macro_new_vehicle(cis,vulture) : 3as_Vulture_dynamicLoadout
  146. {
  147. displayName="CIS Vulture Droid";
  148. maxSpeed=750;
  149. airBrake=20;
  150. faction = MACRO_QUOTE(macro_faction(CIS));
  151. editorSubcategory = MACRO_QUOTE(macro_editor_cat_air(CIS));
  152. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type_air(CIS));
  153. radarTargetSize = 0.7;
  154. class Components: Components
  155. {
  156. class TransportPylonsComponent
  157. {};
  158. };
  159. class HitPoints: HitPoints
  160. {
  161. class HitHull: HitHull
  162. {
  163. name="HitHull";
  164. visual="Hit_Hull";
  165. armor=7;
  166. explosionShielding=3.5;
  167. passThrough=1;
  168. radius=0.5;
  169. minimalHit=0.050000001;
  170. depends="0";
  171. material=-1;
  172. };
  173. class HitEngine: HitHull
  174. {
  175. name="HitEngine";
  176. visual="Hit_Engine";
  177. armor=4.5;
  178. explosionShielding=4;
  179. passThrough=1;
  180. radius=0.60000002;
  181. minimalHit=0.050000001;
  182. };
  183. };
  184. class Eventhandlers: Eventhandlers
  185. {
  186. hit="";
  187. landing="[_this,true] call bis_fnc_aircraftTailhookAi";
  188. landingcanceled="[_this,false] call bis_fnc_aircraftTailhookAi";
  189. engine="_this call bis_fnc_aircraftFoldingWings";
  190. gear="_this call bis_fnc_aircraftFoldingWings";
  191. };
  192. };
  193. };