1
0

config.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 MTT
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_mtt_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(vehicle_addon)
  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(cis,mtt)
  23. };
  24. weapons[]=
  25. {
  26. };
  27. };
  28. };
  29. #include "../../common/sensor_templates.hpp"
  30. class DefaultEventhandlers;
  31. class CfgVehicles
  32. {
  33. class 3as_MTT;
  34. class macro_new_vehicle(cis,mtt) : 3as_MTT
  35. {
  36. displayName = "CIS MTT";
  37. crew=macro_new_unit_class(opfor,B1_crew)
  38. scope = 2;
  39. side=0;
  40. scopeCurator=2;
  41. armor=4000;
  42. faction = macro_faction(CIS);
  43. editorSubcategory = macro_editor_cat(tank)
  44. vehicleClass = macro_editor_vehicle_type(tank)
  45. author = "RD501";
  46. forceInGarage=1;
  47. };
  48. };