config.cpp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 HMP
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_hmp_class(name) vehicle_classname##_##name
  10. class CBA_Extended_EventHandlers_base;
  11. class CfgPatches
  12. {
  13. class RD501_patch_HMP
  14. {
  15. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  16. requiredAddons[]=
  17. {
  18. RD501_patch_vehicles
  19. };
  20. requiredVersion=0.1;
  21. units[]=
  22. {
  23. macro_new_vehicle(HMP,gunship),
  24. macro_new_vehicle(HMP,transport)
  25. };
  26. weapons[]=
  27. {
  28. };
  29. };
  30. };
  31. #include "../../common/sensor_templates.hpp"
  32. class CfgVehicles
  33. {
  34. class 442_hmp;//swop_HMP_droidgunship;
  35. class 442_hmp_transport;//swop_HMP_droidgunship_transport;
  36. class macro_new_vehicle(HMP,gunship):442_hmp//swop_HMP_droidgunship
  37. {
  38. scope=2;
  39. scopeCurator=2;
  40. forceInGarage=1;
  41. displayName = "H.M.P Gunship Mk.I";
  42. altFullForce = 6000;
  43. altNoForce = 9000;
  44. armor = 650;
  45. crew=MACRO_QUOTE(macro_new_unit_class(opfor,B1_pilot));
  46. #include "common.hpp"
  47. weapons[] = {
  48. macro_new_weapon(wynd,ugm),
  49. macro_basic_air_weapons,
  50. macro_new_weapon(generic,cis_aircraft_cannon)
  51. };
  52. magazines[] = {
  53. macro_new_mag(ugm,10),
  54. macro_basic_air_mags,
  55. macro_new_mag(generic_aircraft_cannon_red,1000),
  56. macro_new_mag(generic_aircraft_cannon_red,1000)
  57. };
  58. };
  59. class macro_new_vehicle(HMP,transport): 442_hmp_transport//swop_HMP_droidgunship_transport
  60. {
  61. displayName = "H.M.P Transport Mk.I";
  62. forceInGarage = 1;
  63. maxSpeed=220;
  64. armor = 650;
  65. armorStructural = 2;
  66. armorLights = 1;
  67. liftForceCoef = 1;
  68. bodyFrictionCoef = 0.6777;
  69. scope=2;
  70. scopeCurator=2;
  71. RD501_magclamp_small_1[] = {-0.3,0.0,-2.5};
  72. crew=MACRO_QUOTE(macro_new_unit_class(opfor,B1_pilot));
  73. #include "common.hpp"
  74. weapons[] = {
  75. macro_new_weapon(wynd,ugm),
  76. macro_basic_air_weapons,
  77. macro_new_weapon(generic,cis_aircraft_cannon)
  78. };
  79. magazines[] = {
  80. macro_new_mag(ugm,10),
  81. macro_basic_air_mags,
  82. macro_new_mag(generic_aircraft_cannon_red,1000),
  83. macro_new_mag(generic_aircraft_cannon_red,1000)
  84. };
  85. };
  86. };