config.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 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 macro_patch_name(light_infantry_transport)
  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(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_new_unit_class(opfor,B1_crew)
  42. faction = macro_cis_faction
  43. editorSubcategory = macro_editor_cat(car)
  44. vehicleClass = 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. };