config.cpp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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 UserActions
  87. {
  88. class AfterburnerOn
  89. {
  90. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  91. shortcut = "";
  92. condition = "speed this >50 and (!(this getVariable 'AfterburnerMF'))";
  93. statement = "this setVariable ['AfterburnerMF',true];this spawn nes4day_afterburnerMF";
  94. priority = 1e+011;
  95. displayNameDefault = "";
  96. position = "pilotview";
  97. radius = 50;
  98. onlyforplayer = 1;
  99. };
  100. class AfterburnerOff
  101. {
  102. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  103. shortcut = "";
  104. condition = "(this getVariable 'AfterburnerMF')";
  105. statement = "this setVariable ['AfterburnerMF',false]";
  106. priority = 1e+011;
  107. displayNameDefault = "";
  108. position = "pilotview";
  109. radius = 50;
  110. onlyforplayer = 1;
  111. };
  112. };
  113. weapons[] = {
  114. macro_new_weapon(wynd,a2a),
  115. macro_new_weapon(wynd,agm),
  116. macro_new_weapon(wynd,ugm),
  117. macro_basic_air_weapons,
  118. macro_new_weapon(generic,ion_aircraft_cannon)
  119. };
  120. magazines[] = {
  121. macro_new_mag(a2a,4),
  122. macro_new_mag(agm,6),
  123. macro_new_mag(ugm,10),
  124. macro_basic_air_mags,
  125. macro_new_mag(generic_aircraft_cannon_blue,1000),
  126. macro_new_mag(generic_aircraft_cannon_blue,1000)
  127. };
  128. class Turrets:Turrets
  129. {
  130. class MainTurret:MainTurret
  131. {
  132. weapons[] = {
  133. macro_basic_air_weapons,
  134. macro_new_weapon(generic,republic_aircraft_cannon)
  135. };
  136. magazines[] = {
  137. macro_basic_air_mags,
  138. macro_new_mag(generic_aircraft_cannon_green,1000),
  139. macro_new_mag(generic_aircraft_cannon_green,1000)
  140. };
  141. };
  142. };
  143. };
  144. class techno_union : Strategic
  145. {
  146. scope = 2;
  147. scopeCurator = 2; // public
  148. model = "\RD501_Vehicles\static\technounion\techno_union.p3d"; // our p3d model.
  149. placement = vertical;
  150. mapSize = 3;
  151. author="Spartan163"; // Icon size in the editor.
  152. displayName = "Techno Union Frigate"; // List Name in the editor.
  153. vehicleClass = "Coop_Structure"; // Faction Class.
  154. faction = "RD501FactionOpfor"; // Faction
  155. icon = "\RD501_Vehicles\static\technounion\dataTechnoU\TechnoU.paa";
  156. cost = 0;
  157. armor = 8000;
  158. };
  159. };