config.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //Get this addons macro
  2. //get the macro for the air RD501_patch_vehicles
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon heavy_ordinance_tank
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_hot_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class RD501_patch_heavy_ordinance_tank
  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(heavy_ordinance_tank,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 442_baw_arty;
  35. class macro_new_vehicle(heavy_ordinance_tank,CIS) : 442_baw_arty
  36. {
  37. displayName = "CIS Trebuchet";
  38. crew=MACRO_QUOTE(macro_new_unit_class(opfor,B1_crew));
  39. scope = 2;
  40. side=0;
  41. scopeCurator=2;
  42. faction = MACRO_QUOTE(macro_faction(CIS));
  43. editorSubcategory = MACRO_QUOTE(macro_editor_cat(arty));
  44. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(arty));
  45. author = "RD501";
  46. forceInGarage=1;
  47. };
  48. };