config.cpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //Get this addons macro
  2. //get the macro for the air macro_patch_name(vehicles)
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon itt_rocket_artillery
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_arty_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(itt_rocket_artillery)
  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(itt_rocket_artillery,CIS)
  23. };
  24. weapons[]=
  25. {
  26. };
  27. };
  28. };
  29. #include "../../common/sensor_templates.hpp"
  30. class DefaultEventhandlers;
  31. class CfgVehicles
  32. {
  33. #include "inheritance.hpp"
  34. class macro_new_vehicle(itt_rocket_artillery,CIS):O_SWOP_HoverTr_2
  35. {
  36. displayName="CIS Rocket ITT Artillery";
  37. forceInGarage = 1;
  38. scope=2;
  39. side=0;
  40. faction = macro_cis_faction
  41. editorSubcategory = macro_editor_cat(arty)
  42. vehicleClass = macro_editor_vehicle_type(arty)
  43. crew=macro_new_unit_class(opfor,B1_crew)
  44. class EventHandlers :DefaultEventhandlers {};
  45. class Turrets: Turrets
  46. {
  47. class MainTurret: MainTurret
  48. {
  49. weapons[] = {"ITT_82mm", "SmokeLauncher"};
  50. magazines[] = {"40Rnd_82mm_ITT","40Rnd_82mm_ITT", "40Rnd_82mm_ITT", "40Rnd_82mm_ITT", "SmokeLauncherMag"};
  51. minElev = -2;
  52. maxElev = 70;
  53. initElev = 11.5;
  54. elevationMode = 3;
  55. };
  56. };
  57. };
  58. };