config.cpp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 light_infantry_transport
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_lit_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class RD501_patch_light_infantry_transport
  13. {
  14. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  15. requiredAddons[]=
  16. {
  17. MACRO_QUOTE(RD501_patch_vehicles)
  18. };
  19. requiredVersion=0.1;
  20. units[]=
  21. {
  22. MACRO_QUOTE(macro_new_vehicle(light_infantry_transport,CIS_MkII))
  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 3as_SAC_Trade;
  35. class macro_new_vehicle(light_infantry_transport,CIS_MkII):3as_SAC_Trade
  36. {
  37. scope = 2;
  38. scopeCurator = 2;
  39. forceInGarage = 1;
  40. displayName = "CIS Tempest";
  41. crew = MACRO_QUOTE(macro_new_unit_class(opfor,B1_crew));
  42. faction = MACRO_QUOTE(macro_faction(CIS));
  43. editorSubcategory = MACRO_QUOTE(macro_editor_cat(car));
  44. vehicleClass = MACRO_QUOTE(macro_editor_vehicle_type(Car));
  45. class EventHandlers
  46. {
  47. init = "[_this select 0] execVM 'RD501_Vehicles\_init_functions\wheel_dmg.sqf';";
  48. };
  49. };
  50. };