config.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. "o_swop_mtt_1"
  23. };
  24. weapons[]=
  25. {
  26. };
  27. };
  28. };
  29. #include "../../common/sensor_templates.hpp"
  30. class DefaultEventhandlers;
  31. class CfgVehicles
  32. {
  33. class O_O_SWOP_MTT_base;
  34. class o_swop_mtt_1 : O_O_SWOP_MTT_base
  35. {
  36. class EventHandlers :DefaultEventhandlers{};
  37. class UserActions
  38. {
  39. class deploy_droids
  40. {
  41. displayName = "<t color='#00FF00'>DEPLOY THE DROIDS</t>";
  42. displayNameDefault = "<t color='#00FF00'>DEPLOY THE DROIDS</t>";
  43. textToolTip = "<t color='#00FF00'>DEPLOY THE DROIDS</t>";
  44. position = "pilotview";
  45. radius = 20;
  46. priority = 21;
  47. onlyForPlayer = 1;
  48. condition = "!(this getVariable ['RD501_Deployed',false])";
  49. statement = "this call RD501_Main_fnc_mtt_deploy_droids";
  50. shortcut=""
  51. };
  52. };
  53. faction = macro_cis_faction
  54. editorSubcategory = macro_editor_cat(tank)
  55. vehicleClass = macro_editor_vehicle_type(tank)
  56. };
  57. };