config.cpp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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=2300;
  46. faction = macro_republic_faction
  47. editorSubcategory = macro_editor_cat_air(Republic_heli)
  48. vehicleClass = macro_editor_vehicle_type_air(Republic)
  49. transportSoldier=35;
  50. #include "../../common/common_pilotCamera.hpp"
  51. RD501_magclamp_large[] = {0.0,1.5,-0.5};
  52. RD501_magclamp_small_forbidden=1;
  53. RD501_magclamp_large_offset[]={0.0,0.0,-10.0};
  54. weapons[]=
  55. {
  56. "ParticleBeamCannon_Nu",
  57. "CMFlareLauncher",
  58. "missiles_DAR",
  59. macro_new_weapon(generic,kannon),
  60. "Laserdesignator_pilotCamera"
  61. };
  62. magazines[]=
  63. {
  64. "240Rnd_CMFlare_Chaff_Magazine",
  65. "240Rnd_CMFlare_Chaff_Magazine",
  66. "240Rnd_CMFlare_Chaff_Magazine",
  67. "240Rnd_CMFlare_Chaff_Magazine",
  68. "Laser_Battery_F",
  69. "Laser_Battery_F",
  70. "Laser_Battery_F",
  71. "24Rnd_missiles",
  72. "24Rnd_missiles",
  73. "24Rnd_missiles",
  74. "24Rnd_missiles",
  75. macro_new_mag(Kannon,100),
  76. macro_new_mag(Kannon,100),
  77. "Laserbatteries"
  78. };
  79. class UserActions:UserActions
  80. {
  81. class ThrusterEngage
  82. {
  83. displayName = "";
  84. displayNameDefault = "";
  85. textToolTip = "";
  86. position = "pilotview";
  87. radius = 20;
  88. priority = 0;
  89. onlyForPlayer = 1;
  90. condition = "((player == driver this) AND (alive this))";
  91. statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseIncrease.sqf""";
  92. shortcut="User19"
  93. };
  94. class ThrusterDisengage: ThrusterEngage
  95. {
  96. priority = 0;
  97. displayName = "";
  98. displayNameDefault = "";
  99. textToolTip = "";
  100. condition = "((player == driver this) AND (alive this))";
  101. statement = "this execVM ""\RD501_Main\functions\impulse\fnc_impulseDecrease.sqf""";
  102. shortcut="User20"
  103. };
  104. class rampOpen: rampOpen
  105. {
  106. condition="(this animationSourcePhase 'ramp' == 0) AND (alive this) AND (player in [gunner this, driver this])";
  107. };
  108. class rampClose: rampClose
  109. {
  110. condition="(this animationSourcePhase 'ramp' == 1) AND (alive this) AND (player in [gunner this, driver this])";
  111. };
  112. class frontrampOpen: frontrampOpen
  113. {
  114. condition="(this animationSourcePhase 'rampfront' == 0) AND (alive this) AND (player in [gunner this, driver this])";
  115. };
  116. class frontrampClose: frontrampClose
  117. {
  118. condition="(this animationSourcePhase 'rampfront' == 1) AND (alive this) AND (player in [gunner this, driver this])";
  119. };
  120. };
  121. class ACE_SelfActions
  122. {
  123. class ACE_Passengers
  124. {
  125. condition = "alive _target";
  126. displayName = "Passengers";
  127. insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
  128. statement = "";
  129. };
  130. };
  131. };
  132. };