config.cpp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 macro_patch_name(HMP)
  14. {
  15. addonRootClass=macro_patch_name(vehicles)
  16. requiredAddons[]=
  17. {
  18. macro_patch_name(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. forceInGarage = 1;
  43. altFullForce = 6000;
  44. altNoForce = 9000;
  45. armor = 650;
  46. crew=macro_new_unit_class(opfor,B1_pilot)
  47. #include "common.hpp"
  48. weapons[] = {
  49. macro_new_weapon(wynd,ugm),
  50. macro_basic_air_weapons,
  51. macro_new_weapon(generic,cis_aircraft_cannon)
  52. };
  53. magazines[] = {
  54. macro_new_mag(ugm,10),
  55. macro_basic_air_mags,
  56. macro_new_mag(generic_aircraft_cannon_red,1000),
  57. macro_new_mag(generic_aircraft_cannon_red,1000)
  58. };
  59. };
  60. class macro_new_vehicle(HMP,transport): 442_hmp_transport//swop_HMP_droidgunship_transport
  61. {
  62. displayName = "H.M.P Transport Mk.I";
  63. forceInGarage = 1;
  64. maxSpeed=220;
  65. armor = 650;
  66. armorStructural = 2;
  67. armorLights = 1;
  68. liftForceCoef = 1;
  69. bodyFrictionCoef = 0.6777;
  70. scope=2;
  71. scopeCurator=2;
  72. RD501_magclamp_small_1[] = {-0.3,0.0,-2.5};
  73. crew=macro_new_unit_class(opfor,B1_pilot)
  74. #include "common.hpp"
  75. weapons[] = {
  76. macro_new_weapon(wynd,ugm),
  77. macro_basic_air_weapons,
  78. macro_new_weapon(generic,cis_aircraft_cannon)
  79. };
  80. magazines[] = {
  81. macro_new_mag(ugm,10),
  82. macro_basic_air_mags,
  83. macro_new_mag(generic_aircraft_cannon_red,1000),
  84. macro_new_mag(generic_aircraft_cannon_red,1000)
  85. };
  86. };
  87. };