config.cpp 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 nantex
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_nantex_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(nantex)
  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(nantex,Mk2)
  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 swop_geofighter:Plane_Base_F
  35. {
  36. class ACE_SelfActions;
  37. };
  38. class macro_new_vehicle(nantex,Mk2) : swop_geofighter
  39. {
  40. scope = 2;
  41. scopeCurator=2;
  42. displayName="Nantex Fighter Mk.II";
  43. forceInGarage=1;
  44. altFullForce = 6000;
  45. altNoForce = 9000;
  46. airBrakeFrictionCoef = 80.4;
  47. armor = 100;
  48. faction = macro_cis_faction
  49. editorSubcategory = macro_editor_cat_air(CIS)
  50. vehicleClass = macro_editor_vehicle_type_air(CIS)
  51. crew=macro_new_unit_class(opfor,B1_pilot)
  52. class ACE_SelfActions:ACE_SelfActions
  53. {
  54. #include "../../common/universal_hud_color_changer.hpp"
  55. };
  56. class UserActions
  57. {
  58. class AfterburnerOn
  59. {
  60. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  61. shortcut = "";
  62. condition = "speed this >50 and (!(this getVariable 'AfterBurnerG'))";
  63. statement = "this setVariable ['AfterBurnerG',true];this spawn nes4day_afterburnerG";
  64. priority = 1e+011;
  65. displayNameDefault = "";
  66. position = "pilotview";
  67. radius = 10;
  68. onlyforplayer = 1;
  69. };
  70. class AfterburnerOff
  71. {
  72. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  73. shortcut = "";
  74. condition = "(this getVariable 'AfterBurnerG')";
  75. statement = "this setVariable ['AfterBurnerG',false]";
  76. priority = 1e+011;
  77. displayNameDefault = "";
  78. position = "pilotview";
  79. radius = 10;
  80. onlyforplayer = 1;
  81. };
  82. };
  83. class EventHandlers:DefaultEventhandlers
  84. {
  85. fired = "_this call (uinamespace getvariable 'BIS_fnc_effectFired');";
  86. init = "[_this select 0] execVM '\GeonFighter\init.sqf';[_this select 0] execVM '\GeonFighter\initturbine.sqf';[_this select 0] execVM 'RD501_Vehicles\_init_functions\cis_aircraft_mass.sqf';";
  87. killed = "_this call (uinamespace getvariable 'BIS_fnc_effectKilled');";
  88. //class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  89. };
  90. weapons[] = {
  91. macro_new_weapon(wynd,a2a),
  92. macro_new_weapon(wynd,agm),
  93. macro_new_weapon(wynd,ugm),
  94. macro_basic_air_weapons,
  95. macro_new_weapon(generic,purple_aircraft_cannon)
  96. };
  97. magazines[] = {
  98. macro_new_mag(a2a,4),
  99. macro_new_mag(agm,6),
  100. macro_new_mag(ugm,10),
  101. macro_basic_air_mags,
  102. macro_new_mag(generic_aircraft_cannon_purple,1000),
  103. macro_new_mag(generic_aircraft_cannon_purple,1000)
  104. };
  105. };
  106. };