config.cpp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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 UserActions
  52. {
  53. class AfterburnerOn
  54. {
  55. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  56. shortcut = "";
  57. condition = "(speed this > 50) and !(this getVariable ['AfterBurnerScimitar', false])";
  58. statement = "this spawn SWOP_fnc_afterburnerScimitar";
  59. priority = 1e+011;
  60. displayNameDefault = "";
  61. position = "pilotview";
  62. radius = 15;
  63. onlyforplayer = 1;
  64. };
  65. class AfterburnerOff
  66. {
  67. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  68. shortcut = "";
  69. condition = "(this getVariable ['AfterBurnerScimitar', false])";
  70. statement = "this setVariable ['AfterBurnerScimitar', false, true]";
  71. priority = 1e+011;
  72. displayNameDefault = "";
  73. position = "pilotview";
  74. radius = 15;
  75. onlyforplayer = 1;
  76. };
  77. class fscimitarinvisibility
  78. {
  79. userActionID = 63;
  80. displayName = "<t color='#202020'>[Activate Cloak]</t>";
  81. displayNameDefault = "<t color='#202020'>[Activate Cloak]</t>";
  82. textToolTip = "<t color='#202020'>[Activate Cloak]</t>";
  83. position = "pilotview";
  84. priority = 1e+011;
  85. radius = 15;
  86. onlyForPlayer = 0;
  87. shortcut = "";
  88. hideonuse = 0;
  89. condition = "(player == driver this) AND (alive this) and !(this getVariable ['CloakScimitar', false])";
  90. statement = "this spawn SWOP_fnc_cloakScimitar";
  91. };
  92. };
  93. class ACE_SelfActions:ACE_SelfActions
  94. {
  95. #include "../../common/universal_hud_color_changer.hpp"
  96. };
  97. weapons[] = {
  98. macro_basic_air_weapons,
  99. macro_new_weapon(generic,cis_aircraft_cannon)
  100. };
  101. magazines[] = {
  102. macro_basic_air_mags,
  103. macro_new_mag(generic_aircraft_cannon_red,1000),
  104. macro_new_mag(generic_aircraft_cannon_red,1000)
  105. };
  106. };
  107. };