config.cpp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 scimitar
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_scimitar_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(scimitar)
  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(scimitar,Mk2)
  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_Base_F;
  34. class swop_scimitar:Plane_Base_F
  35. {
  36. class ACE_SelfActions;
  37. };
  38. class macro_new_vehicle(scimitar,Mk2) : swop_scimitar
  39. {
  40. scope = 2;
  41. scopeCurator=2;
  42. forceInGarage=1;
  43. displayName ="Scimitar Mk.II";
  44. altFullForce = 6000;
  45. airBrakeFrictionCoef = 80.4;
  46. altNoForce = 9000;
  47. armor = 600;
  48. faction = macro_empire_faction
  49. editorSubcategory = macro_editor_cat_air(Empire_vtol)
  50. vehicleClass = macro_editor_vehicle_type_air(Empire)
  51. class EventHandlers{};
  52. class UserActions
  53. {
  54. class AfterburnerOn
  55. {
  56. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  57. shortcut = "";
  58. condition = "(speed this > 50) and !(this getVariable ['AfterBurnerScimitar', false])";
  59. statement = "this spawn SWOP_fnc_afterburnerScimitar";
  60. priority = 1e+011;
  61. displayNameDefault = "";
  62. position = "pilotview";
  63. radius = 15;
  64. onlyforplayer = 1;
  65. };
  66. class AfterburnerOff
  67. {
  68. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  69. shortcut = "";
  70. condition = "(this getVariable ['AfterBurnerScimitar', false])";
  71. statement = "this setVariable ['AfterBurnerScimitar', false, true]";
  72. priority = 1e+011;
  73. displayNameDefault = "";
  74. position = "pilotview";
  75. radius = 15;
  76. onlyforplayer = 1;
  77. };
  78. class fscimitarinvisibility
  79. {
  80. userActionID = 63;
  81. displayName = "<t color='#202020'>[Activate Cloak]</t>";
  82. displayNameDefault = "<t color='#202020'>[Activate Cloak]</t>";
  83. textToolTip = "<t color='#202020'>[Activate Cloak]</t>";
  84. position = "pilotview";
  85. priority = 1e+011;
  86. radius = 15;
  87. onlyForPlayer = 0;
  88. shortcut = "";
  89. hideonuse = 0;
  90. condition = "(player == driver this) AND (alive this) and !(this getVariable ['CloakScimitar', false])";
  91. statement = "this spawn SWOP_fnc_cloakScimitar";
  92. };
  93. };
  94. class ACE_SelfActions:ACE_SelfActions
  95. {
  96. #include "../../common/universal_hud_color_changer.hpp"
  97. };
  98. weapons[] = {
  99. macro_basic_air_weapons,
  100. macro_new_weapon(generic,cis_aircraft_cannon)
  101. };
  102. magazines[] = {
  103. macro_basic_air_mags,
  104. macro_new_mag(generic_aircraft_cannon_red,1000),
  105. macro_new_mag(generic_aircraft_cannon_red,1000)
  106. };
  107. };
  108. };