config.cpp 1.4 KB

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