1
0

config.cpp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 Lambda
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_lambda_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(Lambda)
  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(shuttle,lambda)
  23. };
  24. weapons[]=
  25. {
  26. };
  27. };
  28. };
  29. #include "../../common/sensor_templates.hpp"
  30. class DefaultEventhandlers;
  31. class CfgVehicles
  32. {
  33. class Plane_Base_F;
  34. class Xarc:Plane_Base_F
  35. {
  36. class Turrets;
  37. };
  38. class swop_lambda: Xarc
  39. {
  40. class ACE_SelfActions;
  41. class Turrets:Turrets
  42. {
  43. class MainTurret;
  44. };
  45. };
  46. class macro_new_vehicle(shuttle,lambda) : swop_lambda
  47. {
  48. scope = 2;
  49. altFullForce = 6000;
  50. altNoForce = 9000;
  51. airBrakeFrictionCoef = 80.4;
  52. armor = 600;
  53. faction = macro_empire_faction
  54. editorSubcategory = macro_editor_cat_air(Empire_vtol)
  55. vehicleClass = macro_editor_vehicle_type_air(Empire)
  56. displayName="Lambda Class Shuttle Mk.II";
  57. forceInGarage=1;
  58. class UserActions
  59. {
  60. class ThrusterEngage
  61. {
  62. condition = "(!(this getvariable [""impulsorStatus"",false]) AND (player == driver this) AND (alive this) AND (speed this >10) )";
  63. displayName = "<t color='#4C9900'>[Impulsor On]</t>";
  64. displayNameDefault = "<t color='#4C9900'>[Impulsor On]</t>";
  65. onlyForPlayer = 0;
  66. position = "pilotview";
  67. priority = 1e+008;
  68. radius = 6;
  69. statement = "this execVM ""\lamda\initTE.sqf""";
  70. textToolTip = "<t color='#4C9900'>[Impulsor On]</t>";
  71. userActionID = 64;
  72. };
  73. class ThrusterDisngage : ThrusterEngage
  74. {
  75. condition = "((this getvariable [""impulsorStatus"",false]) AND (player == driver this) AND (alive this))";
  76. displayName = "<t color='#FF9933'>[RepulsorBrake On]</t>";
  77. displayNameDefault = "<t color='#FF9933'>[RepulsorBrake On]</t>";
  78. onlyForPlayer = 0;
  79. position = "pilotview";
  80. priority = 1e+008;
  81. radius = 6;
  82. statement = "this execVM ""\lamda\initTD.sqf""";
  83. textToolTip = "<t color='#FF9933'>[RepulsorBrake On]</t>";
  84. userActionID = 65;
  85. };
  86. };
  87. class EventHandlers:DefaultEventhandlers
  88. {
  89. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  90. init = "[_this select 0] execVM '\lamda\init.sqf';[_this select 0] execVM '\lamda\initturbine.sqf';";
  91. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  92. //class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  93. };
  94. weapons[] = {
  95. macro_basic_air_weapons,
  96. macro_new_weapon(generic,imperial_aircraft_cannon)
  97. };
  98. magazines[] = {
  99. macro_basic_air_mags,
  100. macro_new_mag(generic_aircraft_cannon_green,1000),
  101. macro_new_mag(generic_aircraft_cannon_green,1000)
  102. };
  103. class Turrets:Turrets
  104. {
  105. class MainTurret:MainTurret
  106. {
  107. weapons[] = {
  108. macro_basic_air_weapons,
  109. macro_new_weapon(generic,imperial_aircraft_cannon)
  110. };
  111. magazines[] = {
  112. macro_basic_air_mags,
  113. macro_new_mag(generic_aircraft_cannon_green,1000),
  114. macro_new_mag(generic_aircraft_cannon_green,1000)
  115. };
  116. };
  117. };
  118. transportSoldier = 30;
  119. class ACE_SelfActions:ACE_SelfActions
  120. {
  121. #include "../../common/universal_hud_color_changer.hpp"
  122. };
  123. #include "../../common/universal_mfd.hpp"
  124. };
  125. };