config.cpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 hyena
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_hyena_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(hyena)
  13. {
  14. addonRootClass=macro_patch_name(vehicles)
  15. requiredAddons[]=
  16. {
  17. macro_patch_name(vehicles)
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. macro_new_vehicle(hyena,Mk2)
  23. };
  24. weapons[]=
  25. {
  26. };
  27. };
  28. };
  29. #include "../../common/sensor_templates.hpp"
  30. class CfgVehicles
  31. {
  32. class swop_hbomber;
  33. class macro_new_vehicle(hyena,Mk2) : swop_hbomber
  34. {
  35. scope = 2;
  36. scopeCurator=2;
  37. displayName="Hyena Bomber Droid Mk.II";
  38. forceInGarage=1;
  39. altFullForce = 6000;
  40. altNoForce = 9000;
  41. armor = 400;
  42. crew=macro_new_unit_class(opfor,B1_pilot)
  43. airBrakeFrictionCoef = 80.4;
  44. faction = macro_cis_faction
  45. editorSubcategory = macro_editor_cat_air(CIS)
  46. vehicleClass = macro_editor_vehicle_type_air(CIS)
  47. class UserActions
  48. {
  49. };
  50. weapons[] = {
  51. macro_new_weapon(wynd,agm),
  52. macro_new_weapon(bomb,cluster),
  53. macro_new_weapon(bomb,SDB),
  54. macro_new_weapon(bomb,LGB),
  55. macro_basic_air_weapons,
  56. macro_new_weapon(generic,cis_aircraft_cannon)
  57. };
  58. magazines[] = {
  59. macro_basic_air_mags,
  60. macro_new_mag(generic_aircraft_cannon_red,1000),
  61. macro_new_mag(generic_aircraft_cannon_red,1000),
  62. macro_new_mag(agm,6),
  63. macro_new_mag(cluster_bomb,4),
  64. macro_new_mag(cluster_bomb,4),
  65. macro_new_mag(cluster_bomb,4),
  66. macro_new_mag(sdb_bomb,4),
  67. macro_new_mag(sdb_bomb,4),
  68. macro_new_mag(sdb_bomb,4),
  69. macro_new_mag(lgb_bomb,4),
  70. macro_new_mag(lgb_bomb,4),
  71. macro_new_mag(lgb_bomb,4)
  72. };
  73. };
  74. };