1
0

config.cpp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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 Weird_Shuttles
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. class CfgPatches
  10. {
  11. class macro_patch_name(Weird_Shuttles)
  12. {
  13. addonRootClass=macro_patch_name(vehicles)
  14. requiredAddons[]=
  15. {
  16. macro_patch_name(vehicles)
  17. };
  18. requiredVersion=0.1;
  19. units[]=
  20. {
  21. "sh_flyable",
  22. macro_new_vehicle(shuttle,Millenium_Falcon),
  23. "techno_union"
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class CBA_Extended_EventHandlers_base;
  32. class CfgVehicles
  33. {
  34. class Plane;
  35. class Xarc;
  36. class Strategic;
  37. class swop_lambda:Xarc
  38. {
  39. class ACE_SelfActions;
  40. };
  41. class Plane_Base_F:Plane
  42. {
  43. class Turrets;
  44. class ACE_SelfActions;
  45. };
  46. class sh_flyable: swop_lambda
  47. {
  48. scope = 2;
  49. icon = "\lamda\symb.paa";
  50. model = "\shut\sh_flyable.p3d";
  51. picture = "\lamda\symb.paa";
  52. class ACE_SelfActions:ACE_SelfActions
  53. {
  54. #include "../../common/universal_hud_color_changer.hpp"
  55. };
  56. #include "../../common/universal_mfd.hpp"
  57. class EventHandlers {
  58. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  59. };
  60. };
  61. class swop_MF: Plane_Base_F
  62. {
  63. transportSoldier = 30;
  64. class ACE_SelfActions:ACE_SelfActions
  65. {
  66. #include "../../common/universal_hud_color_changer.hpp"
  67. };
  68. #include "../../common/universal_mfd.hpp"
  69. class Turrets:Turrets
  70. {
  71. class MainTurret;
  72. };
  73. };
  74. class macro_new_vehicle(shuttle,Millenium_Falcon) : Swop_mf
  75. {
  76. faction = macro_rebel_faction
  77. editorSubcategory = macro_editor_cat_air(Rebel_vtol)
  78. vehicleClass = macro_editor_vehicle_type_air(Rebel)
  79. scope = 2;
  80. altFullForce = 6000;
  81. airBrakeFrictionCoef = 80.4;
  82. altNoForce = 9000;
  83. armor = 600;
  84. forceInGarage=1;
  85. displayname = "Millenium Falcon Mk.I";
  86. class EventHandlers{};
  87. class UserActions
  88. {
  89. class AfterburnerOn
  90. {
  91. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  92. shortcut = "";
  93. condition = "speed this >50 and (!(this getVariable 'AfterburnerMF'))";
  94. statement = "this setVariable ['AfterburnerMF',true];this spawn nes4day_afterburnerMF";
  95. priority = 1e+011;
  96. displayNameDefault = "";
  97. position = "pilotview";
  98. radius = 50;
  99. onlyforplayer = 1;
  100. };
  101. class AfterburnerOff
  102. {
  103. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  104. shortcut = "";
  105. condition = "(this getVariable 'AfterburnerMF')";
  106. statement = "this setVariable ['AfterburnerMF',false]";
  107. priority = 1e+011;
  108. displayNameDefault = "";
  109. position = "pilotview";
  110. radius = 50;
  111. onlyforplayer = 1;
  112. };
  113. };
  114. weapons[] = {
  115. macro_new_weapon(wynd,a2a),
  116. macro_new_weapon(wynd,agm),
  117. macro_new_weapon(wynd,ugm),
  118. macro_basic_air_weapons,
  119. macro_new_weapon(generic,ion_aircraft_cannon)
  120. };
  121. magazines[] = {
  122. macro_new_mag(a2a,4),
  123. macro_new_mag(agm,6),
  124. macro_new_mag(ugm,10),
  125. macro_basic_air_mags,
  126. macro_new_mag(generic_aircraft_cannon_blue,1000),
  127. macro_new_mag(generic_aircraft_cannon_blue,1000)
  128. };
  129. class Turrets:Turrets
  130. {
  131. class MainTurret:MainTurret
  132. {
  133. weapons[] = {
  134. macro_basic_air_weapons,
  135. macro_new_weapon(generic,republic_aircraft_cannon)
  136. };
  137. magazines[] = {
  138. macro_basic_air_mags,
  139. macro_new_mag(generic_aircraft_cannon_green,1000),
  140. macro_new_mag(generic_aircraft_cannon_green,1000)
  141. };
  142. };
  143. };
  144. };
  145. class techno_union : Strategic
  146. {
  147. scope = 2;
  148. scopeCurator = 2; // public
  149. model = "\RD501_Vehicles\static\technounion\techno_union.p3d"; // our p3d model.
  150. placement = vertical;
  151. mapSize = 3;
  152. author="Spartan163"; // Icon size in the editor.
  153. displayName = "Techno Union Frigate"; // List Name in the editor.
  154. vehicleClass = "Coop_Structure"; // Faction Class.
  155. faction = "RD501FactionOpfor"; // Faction
  156. icon = "\RD501_Vehicles\static\technounion\dataTechnoU\TechnoU.paa";
  157. cost = 0;
  158. armor = 8000;
  159. };
  160. };