config.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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_f;
  27. class 3AS_Nuclass : 3as_nuclass_f
  28. {
  29. class UserActions;
  30. };
  31. class macro_new_vehicle(nuclass,mk1):3AS_Nuclass
  32. {
  33. scope=2;
  34. displayName="Republic NuClass Mk.I"
  35. armor=1300;
  36. faction = macro_republic_faction
  37. editorSubcategory = macro_editor_cat_air(Republic_heli)
  38. vehicleClass = macro_editor_vehicle_type_air(Republic)
  39. weapons[]=
  40. {
  41. "ParticleBeamCannon_Nu",
  42. "CMFlareLauncher",
  43. "missiles_DAR",
  44. macro_new_weapon(generic,kannon),
  45. "Laserdesignator_pilotCamera"
  46. };
  47. magazines[]=
  48. {
  49. "240Rnd_CMFlare_Chaff_Magazine",
  50. "240Rnd_CMFlare_Chaff_Magazine",
  51. "240Rnd_CMFlare_Chaff_Magazine",
  52. "240Rnd_CMFlare_Chaff_Magazine",
  53. "Laser_Battery_F",
  54. "Laser_Battery_F",
  55. "Laser_Battery_F",
  56. "24Rnd_missiles",
  57. "24Rnd_missiles",
  58. "24Rnd_missiles",
  59. "24Rnd_missiles",
  60. macro_new_mag(Kannon,100),
  61. macro_new_mag(Kannon,100),
  62. "Laserbatteries"
  63. };
  64. class UserActions:UserActions
  65. {
  66. #include "user_action.hpp"
  67. };
  68. class ACE_SelfActions
  69. {
  70. class ACE_Passengers
  71. {
  72. condition = "alive _target";
  73. displayName = "Passengers";
  74. insertChildren = "_this call ace_interaction_fnc_addPassengersActions";
  75. statement = "";
  76. };
  77. };
  78. };
  79. };