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. #include "../../common/smallvehiclekit.hpp"
  42. faction = macro_republic_faction
  43. editorSubcategory = macro_editor_cat(Transport)
  44. vehicleClass = macro_editor_vehicle_type(Transport)
  45. crew = "SWOP_L501P1_Fives";
  46. typicalCargo[] = {"SWOP_L501P1_Fives"};
  47. armor = 390;
  48. armorStructural = 7;
  49. textureList[] = {};
  50. hiddenSelectionsTextures[] =
  51. {
  52. macro_vehicle_textures\Fast_Infantry_Transport\FAT.paa,
  53. macro_vehicle_textures\Fast_Infantry_Transport\wheelsfat.paa,
  54. ""
  55. };
  56. smokeLauncherAngle = 150;
  57. smokeLauncherGrenadeCount = 12;
  58. smokeLauncherVelocity = 14;
  59. magazines[] = {"SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag"};
  60. // class EventHandlers {
  61. // class CBA_Extended_EventHandlers: CBA_Extended_EventHandlers_base {};
  62. // };
  63. };
  64. class macro_new_vehicle(fast_infantry_transport,republic_medic):macro_new_vehicle(fast_infantry_transport,republic)
  65. {
  66. scope = 2;
  67. displayName = "Republic Pathfinder (Medical)";
  68. forceInGarage = 1;
  69. side = 1;
  70. crew = "SWOP_L501P1_Fives";
  71. typicalCargo[] = {"SWOP_L501P1_Fives"};
  72. armor = 390;
  73. armorStructural = 7;
  74. hiddenSelectionsTextures[] =
  75. {
  76. macro_vehicle_textures\Fast_Infantry_Transport\MEDICALFIT.paa,
  77. macro_vehicle_textures\Fast_Infantry_Transport\wheels_medical_fit.paa,
  78. ""
  79. };
  80. smokeLauncherAngle = 360;
  81. smokeLauncherGrenadeCount = 20;
  82. smokeLauncherVelocity = 16;
  83. magazines[] = {
  84. "SmokeLauncherMag",
  85. "SmokeLauncherMag"
  86. };
  87. };
  88. };