config.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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 fast_infantry_transport
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_fit_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(fast_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(fast_infantry_transport,republic),
  23. macro_new_vehicle(fast_infantry_transport,republic_medic)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class CBA_Extended_EventHandlers_base;
  32. class CfgVehicles
  33. {
  34. #include "inheritance.hpp"
  35. class macro_new_vehicle(fast_infantry_transport,republic):O_MRAP_02_F
  36. {
  37. scope = 2;
  38. displayName = "Republic Pathfinder";
  39. forceInGarage = 1;
  40. side = 1;
  41. faction = macro_republic_faction
  42. editorSubcategory = macro_editor_cat(Transport)
  43. vehicleClass = macro_editor_vehicle_type(Transport)
  44. crew = "SWOP_L501P1_Fives";
  45. typicalCargo[] = {"SWOP_L501P1_Fives"};
  46. armor = 390;
  47. armorStructural = 7;
  48. textureList[] = {};
  49. hiddenSelectionsTextures[] =
  50. {
  51. macro_vehicle_textures\Fast_Infantry_Transport\FAT.paa,
  52. macro_vehicle_textures\Fast_Infantry_Transport\wheelsfat.paa,
  53. ""
  54. };
  55. smokeLauncherAngle = 150;
  56. smokeLauncherGrenadeCount = 12;
  57. smokeLauncherVelocity = 14;
  58. magazines[] = {"SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag"};
  59. // class EventHandlers {
  60. // class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  61. // };
  62. };
  63. class macro_new_vehicle(fast_infantry_transport,republic_medic):macro_new_vehicle(fast_infantry_transport,republic)
  64. {
  65. scope = 2;
  66. displayName = "Republic Pathfinder (Medical)";
  67. forceInGarage = 1;
  68. side = 1;
  69. crew = "SWOP_L501P1_Fives";
  70. typicalCargo[] = {"SWOP_L501P1_Fives"};
  71. armor = 390;
  72. armorStructural = 7;
  73. hiddenSelectionsTextures[] =
  74. {
  75. macro_vehicle_textures\Fast_Infantry_Transport\MEDICALFIT.paa,
  76. macro_vehicle_textures\Fast_Infantry_Transport\wheels_medical_fit.paa,
  77. ""
  78. };
  79. smokeLauncherAngle = 360;
  80. smokeLauncherGrenadeCount = 20;
  81. smokeLauncherVelocity = 16;
  82. magazines[] = {
  83. "SmokeLauncherMag",
  84. "SmokeLauncherMag"
  85. };
  86. };
  87. };