config.cpp 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. //get generlized macros
  2. #include "../../../RD501_main/config_macros.hpp"
  3. //General name of the vehicle
  4. #define vehicle_addon nuclass
  5. class CfgPatches
  6. {
  7. class macro_patch_name(nuclass)
  8. {
  9. addonRootClass=macro_patch_name(vehicles)
  10. requiredAddons[]=
  11. {
  12. macro_patch_name(vehicles)
  13. };
  14. requiredVersion=0.1;
  15. units[]=
  16. {
  17. macro_new_vehicle(nuclass,mk1)
  18. };
  19. weapons[]=
  20. {
  21. };
  22. };
  23. };
  24. class CfgVehicles
  25. {
  26. class 3as_nuclass_base;
  27. class 3as_nuclass_f: 3as_nuclass_base
  28. {
  29. class UserActions;
  30. };
  31. class 3AS_Nuclass : 3as_nuclass_f
  32. {
  33. class UserActions: UserActions
  34. {
  35. class rampOpen;
  36. class rampClose;
  37. class frontrampOpen;
  38. class frontrampClose;
  39. };
  40. };
  41. class macro_new_vehicle(nuclass,mk1) : 3AS_Nuclass
  42. {
  43. scope=2;
  44. displayName="Republic NuClass Mk.I"
  45. armor=1300;
  46. faction = macro_republic_faction
  47. editorSubcategory = macro_editor_cat_air(Republic_heli)
  48. vehicleClass = macro_editor_vehicle_type_air(Republic)
  49. #include "../../common/common_pilotCamera.hpp"
  50. weapons[]=
  51. {
  52. "ParticleBeamCannon_Nu",
  53. "CMFlareLauncher",
  54. "missiles_DAR",
  55. macro_new_weapon(generic,kannon),
  56. "Laserdesignator_pilotCamera"
  57. };
  58. magazines[]=
  59. {
  60. "240Rnd_CMFlare_Chaff_Magazine",
  61. "240Rnd_CMFlare_Chaff_Magazine",
  62. "240Rnd_CMFlare_Chaff_Magazine",
  63. "240Rnd_CMFlare_Chaff_Magazine",
  64. "Laser_Battery_F",
  65. "Laser_Battery_F",
  66. "Laser_Battery_F",
  67. "24Rnd_missiles",
  68. "24Rnd_missiles",
  69. "24Rnd_missiles",
  70. "24Rnd_missiles",
  71. macro_new_mag(Kannon,100),
  72. macro_new_mag(Kannon,100),
  73. "Laserbatteries"
  74. };
  75. class UserActions:UserActions
  76. {
  77. class ThrusterEngage
  78. {
  79. displayName = "";
  80. displayNameDefault = "";
  81. textToolTip = "";
  82. position = "pilotview";
  83. radius = 20;
  84. priority = 0;
  85. onlyForPlayer = 1;
  86. condition = "((player == driver this) AND (alive this))";
  87. statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseIncrease.sqf""";
  88. shortcut="User19"
  89. };
  90. class ThrusterDisengage: ThrusterEngage
  91. {
  92. priority = 0;
  93. displayName = "";
  94. displayNameDefault = "";
  95. textToolTip = "";
  96. condition = "((player == driver this) AND (alive this))";
  97. statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseDecrease.sqf""";
  98. shortcut="User20"
  99. };
  100. class rampOpen: rampOpen
  101. {
  102. condition="(this animationSourcePhase 'ramp' == 0) AND (alive this) AND (player in [gunner this, driver this])";
  103. };
  104. class rampClose: rampClose
  105. {
  106. condition="(this animationSourcePhase 'ramp' == 1) AND (alive this) AND (player in [gunner this, driver this])";
  107. };
  108. class frontrampOpen: frontrampOpen
  109. {
  110. condition="(this animationSourcePhase 'rampfront' == 0) AND (alive this) AND (player in [gunner this, driver this])";
  111. };
  112. class frontrampClose: frontrampClose
  113. {
  114. condition="(this animationSourcePhase 'rampfront' == 1) AND (alive this) AND (player in [gunner this, driver this])";
  115. };
  116. };
  117. class ACE_SelfActions
  118. {
  119. class ACE_Passengers
  120. {
  121. condition = "alive _target";
  122. displayName = "Passengers";
  123. insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
  124. statement = "";
  125. };
  126. };
  127. };
  128. };