config.cpp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. };
  24. weapons[]=
  25. {
  26. };
  27. };
  28. };
  29. #include "../../common/sensor_templates.hpp"
  30. class CBA_Extended_EventHandlers_base;
  31. class CfgVehicles
  32. {
  33. class Plane;
  34. class Xarc;
  35. class swop_lambda:Xarc
  36. {
  37. class ACE_SelfActions;
  38. };
  39. class Plane_Base_F:Plane
  40. {
  41. class Turrets;
  42. class ACE_SelfActions;
  43. };
  44. class sh_flyable: swop_lambda
  45. {
  46. scope = 2;
  47. icon = "\lamda\symb.paa";
  48. model = "\shut\sh_flyable.p3d";
  49. picture = "\lamda\symb.paa";
  50. class ACE_SelfActions:ACE_SelfActions
  51. {
  52. #include "../../common/universal_hud_color_changer.hpp"
  53. };
  54. #include "../../common/universal_mfd.hpp"
  55. class EventHandlers {
  56. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  57. };
  58. };
  59. class swop_MF: Plane_Base_F
  60. {
  61. transportSoldier = 30;
  62. class ACE_SelfActions:ACE_SelfActions
  63. {
  64. #include "../../common/universal_hud_color_changer.hpp"
  65. };
  66. #include "../../common/universal_mfd.hpp"
  67. class Turrets:Turrets
  68. {
  69. class MainTurret;
  70. };
  71. };
  72. class macro_new_vehicle(shuttle,Millenium_Falcon) : Swop_mf
  73. {
  74. faction = macro_rebel_faction
  75. editorSubcategory = macro_editor_cat_air(Rebel_vtol)
  76. vehicleClass = macro_editor_vehicle_type_air(Rebel)
  77. scope = 2;
  78. altFullForce = 6000;
  79. airBrakeFrictionCoef = 80.4;
  80. altNoForce = 9000;
  81. armor = 600;
  82. forceInGarage=1;
  83. displayname = "Millenium Falcon Mk.I";
  84. class UserActions
  85. {
  86. class AfterburnerOn
  87. {
  88. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  89. shortcut = "";
  90. condition = "speed this >50 and (!(this getVariable 'AfterburnerMF'))";
  91. statement = "this setVariable ['AfterburnerMF',true];this spawn nes4day_afterburnerMF";
  92. priority = 1e+011;
  93. displayNameDefault = "";
  94. position = "pilotview";
  95. radius = 50;
  96. onlyforplayer = 1;
  97. };
  98. class AfterburnerOff
  99. {
  100. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  101. shortcut = "";
  102. condition = "(this getVariable 'AfterburnerMF')";
  103. statement = "this setVariable ['AfterburnerMF',false]";
  104. priority = 1e+011;
  105. displayNameDefault = "";
  106. position = "pilotview";
  107. radius = 50;
  108. onlyforplayer = 1;
  109. };
  110. };
  111. class EventHandlers
  112. {
  113. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  114. init = "[_this select 0] execVM '\MIlleniumFalcon\init.sqf';[_this select 0] execVM '\MIlleniumFalcon\initturbine.sqf';";
  115. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  116. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  117. };
  118. weapons[] = {
  119. macro_new_weapon(wynd,a2a),
  120. macro_new_weapon(wynd,agm),
  121. macro_new_weapon(wynd,ugm),
  122. macro_basic_air_weapons,
  123. macro_new_weapon(generic,ion_aircraft_cannon)
  124. };
  125. magazines[] = {
  126. macro_new_mag(a2a,4),
  127. macro_new_mag(agm,6),
  128. macro_new_mag(ugm,10),
  129. macro_basic_air_mags,
  130. macro_new_mag(generic_aircraft_cannon_blue,1000),
  131. macro_new_mag(generic_aircraft_cannon_blue,1000)
  132. };
  133. class Turrets:Turrets
  134. {
  135. class MainTurret:MainTurret
  136. {
  137. weapons[] = {
  138. macro_basic_air_weapons,
  139. macro_new_weapon(generic,republic_aircraft_cannon)
  140. };
  141. magazines[] = {
  142. macro_basic_air_mags,
  143. macro_new_mag(generic_aircraft_cannon_green,1000),
  144. macro_new_mag(generic_aircraft_cannon_green,1000)
  145. };
  146. };
  147. };
  148. };
  149. };