config.cpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 RD501_patch_hyena
  13. {
  14. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  15. requiredAddons[]=
  16. {
  17. RD501_patch_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_faction(CIS);
  45. editorSubcategory = macro_editor_cat_air(CIS)
  46. vehicleClass = macro_editor_vehicle_type_air(CIS)
  47. class EventHandlers{};
  48. class UserActions{};
  49. weapons[] = {
  50. macro_new_weapon(wynd,agm),
  51. macro_new_weapon(bomb,cluster),
  52. macro_new_weapon(bomb,SDB),
  53. macro_new_weapon(bomb,LGB),
  54. macro_basic_air_weapons,
  55. macro_new_weapon(generic,cis_aircraft_cannon)
  56. };
  57. magazines[] = {
  58. macro_basic_air_mags,
  59. macro_new_mag(generic_aircraft_cannon_red,1000),
  60. macro_new_mag(generic_aircraft_cannon_red,1000),
  61. macro_new_mag(agm,6),
  62. macro_new_mag(cluster_bomb,4),
  63. macro_new_mag(cluster_bomb,4),
  64. macro_new_mag(cluster_bomb,4),
  65. macro_new_mag(sdb_bomb,4),
  66. macro_new_mag(sdb_bomb,4),
  67. macro_new_mag(sdb_bomb,4),
  68. macro_new_mag(lgb_bomb,4),
  69. macro_new_mag(lgb_bomb,4),
  70. macro_new_mag(lgb_bomb,4)
  71. };
  72. };
  73. };*/