config.cpp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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 vulture
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_vulture_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(vulture)
  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(cis,vulture),
  23. macro_new_vehicle(cis,vulture_elite)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class CfgVehicles
  32. {
  33. class swop_vulture;
  34. class macro_new_vehicle(vulture,MKII) : swop_vulture
  35. {
  36. scope = 2;
  37. scopeCurator=2;
  38. displayName="Vulture Droid Mk.II";
  39. altFullForce = 6000;
  40. altNoForce = 9000;
  41. armor = 500;
  42. forceInGarage=1;
  43. crew=macro_new_unit_class(opfor,B1_pilot)
  44. airBrakeFrictionCoef = 80.4;
  45. faction = macro_cis_faction
  46. editorSubcategory = macro_editor_cat_air(CIS)
  47. vehicleClass = macro_editor_vehicle_type_air(CIS)
  48. class EventHandlers{};
  49. class UserActions
  50. {
  51. class AfterburnerOn
  52. {
  53. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  54. shortcut = "";
  55. condition = "speed this >50 and (!(this getVariable 'AfterBurnervulture'))";
  56. statement = "this setVariable ['AfterBurnervulture',true];this spawn nes4day_afterburnervulture";
  57. priority = 1e+011;
  58. displayNameDefault = "";
  59. position = "pilotview";
  60. radius = 10;
  61. onlyforplayer = 1;
  62. };
  63. class AfterburnerOff
  64. {
  65. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  66. shortcut = "";
  67. condition = "(this getVariable 'AfterBurnervulture')";
  68. statement = "this setVariable ['AfterBurnervulture',false]";
  69. priority = 1e+011;
  70. displayNameDefault = "";
  71. position = "pilotview";
  72. radius = 10;
  73. onlyforplayer = 1;
  74. };
  75. };
  76. weapons[] = {
  77. macro_basic_air_weapons,
  78. macro_new_weapon(generic,cis_aircraft_cannon)
  79. };
  80. magazines[] = {
  81. macro_basic_air_mags,
  82. macro_new_mag(generic_aircraft_cannon_red,1000),
  83. macro_new_mag(generic_aircraft_cannon_red,1000),
  84. };
  85. };
  86. class Plane;
  87. class Plane_Base_F: Plane
  88. {
  89. class Components;
  90. };
  91. class Plane_Fighter_03_base_F: Plane_Base_F
  92. {
  93. class Components: Components{};
  94. };
  95. class Plane_Fighter_03_dynamicLoadout_base_F:Plane_Fighter_03_base_F
  96. {
  97. class Components: Components{};
  98. };
  99. class 3as_vulture_dynamicLoadout_base:Plane_Fighter_03_dynamicLoadout_base_F
  100. {
  101. class Components:Components{};
  102. };
  103. class 3as_Vulture_dynamicLoadout:3as_vulture_dynamicLoadout_base
  104. {
  105. class Components:Components{};
  106. };
  107. class macro_new_vehicle(cis,vulture_elite) : 3as_Vulture_dynamicLoadout
  108. {
  109. displayName="CIS Vulture Elite Droid"
  110. maxSpeed=700;
  111. airBrake=20;
  112. faction = macro_cis_faction
  113. editorSubcategory = macro_editor_cat_air(CIS)
  114. vehicleClass = macro_editor_vehicle_type_air(CIS)
  115. };
  116. class macro_new_vehicle(cis,vulture) : 3as_Vulture_dynamicLoadout
  117. {
  118. displayName="CIS Vulture Droid"
  119. maxSpeed=700;
  120. airBrake=20;
  121. faction = macro_cis_faction
  122. editorSubcategory = macro_editor_cat_air(CIS)
  123. vehicleClass = macro_editor_vehicle_type_air(CIS)
  124. class Components: Components
  125. {
  126. class TransportPylonsComponent
  127. {};
  128. };
  129. };
  130. };