config.cpp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 tri_fighter_droid
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_tri_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(tri_fighter_droid)
  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(trifighter,MKII)
  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_tridroid;
  35. class macro_new_vehicle(trifighter,MKII) : swop_tridroid
  36. {
  37. scope = 2;
  38. scopeCurator=2;
  39. displayName="Tri-Fighter Droid Mk.II";
  40. forceInGarage=1;
  41. altFullForce = 6000;
  42. altNoForce = 9000;
  43. scopecurator = 2;
  44. airBrakeFrictionCoef = 80.4;
  45. armor = 100;
  46. faction = macro_cis_faction
  47. editorSubcategory = macro_editor_cat_air(CIS)
  48. vehicleClass = macro_editor_vehicle_type_air(CIS)
  49. weapons[] = {
  50. macro_new_weapon(wynd,a2a),
  51. macro_basic_air_weapons,
  52. macro_new_weapon(generic,cis_aircraft_cannon)
  53. };
  54. magazines[] = {
  55. macro_basic_air_mags,
  56. macro_new_mag(generic_aircraft_cannon_red,1000),
  57. macro_new_mag(generic_aircraft_cannon_red,1000),
  58. macro_new_mag(a2a,4)
  59. };
  60. class UserActions
  61. {
  62. class AfterburnerOn
  63. {
  64. displayName = "<t color='#4C9900'>[Afterburner On]</t>";
  65. shortcut = "";
  66. condition = "speed this >50 and (!(this getVariable 'AfterBurnertri'))";
  67. statement = "this setVariable ['AfterBurnertri',true];this spawn nes4day_afterburnertri";
  68. priority = 1e+011;
  69. displayNameDefault = "";
  70. position = "pilotview";
  71. radius = 10;
  72. onlyforplayer = 1;
  73. };
  74. class AfterburnerOff
  75. {
  76. displayName = "<t color='#FF9933'>[Afterburner Off]</t>";
  77. shortcut = "";
  78. condition = "(this getVariable 'AfterBurnertri')";
  79. statement = "this setVariable ['AfterBurnertri',false]";
  80. priority = 1e+011;
  81. displayNameDefault = "";
  82. position = "pilotview";
  83. radius = 10;
  84. onlyforplayer = 1;
  85. };
  86. };
  87. class EventHandlers {
  88. init="[_this select 0] execVM '\vulture\inittri.sqf';[_this select 0] execVM '\vulture\initturbine.sqf';[_this select 0] execVM 'RD501_Vehicles\_init_functions\cis_aircraft_mass.sqf';";
  89. class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  90. };
  91. };
  92. };