1
0

config.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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 doggo
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_doggo_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(speed_boats)
  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(speedboat,cis),
  23. macro_new_vehicle(speedboat,republic)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class DefaultEventhandlers ;
  32. class CfgVehicles
  33. {
  34. class Boat_Armed_01_base_F;
  35. class Boat_Armed_01_minigun_base_F:Boat_Armed_01_base_F
  36. {
  37. class Turrets;
  38. }
  39. class B_Boat_Armed_01_minigun_F:Boat_Armed_01_minigun_base_F
  40. {
  41. class Turrets:Turrets
  42. {
  43. class FrontTurret;
  44. class RearTurret;
  45. }
  46. };
  47. class macro_new_vehicle(speedboat,cis):B_Boat_Armed_01_minigun_F
  48. {
  49. displayName = "Speedboat CIS";
  50. _generalMacro = macro_new_vehicle(speedboat,cis)
  51. scope=2;
  52. faction = macro_faction(CIS);
  53. // editorSubcategory = macro_editor_cat(tank)
  54. // vehicleClass = macro_editor_vehicle_type(tank)
  55. side=0;
  56. crew=macro_new_unit_class(opfor,B1_crew)
  57. class Turrets: Turrets
  58. {
  59. class FrontTurret: FrontTurret
  60. {
  61. weapons[] = {"Cannon_EWEBSWBFgun"};
  62. magazines[] = {"1000Rnd_Laser_Cannon_EWEBSWBF","1000Rnd_Laser_Cannon_EWEBSWBF","1000Rnd_Laser_Cannon_EWEBSWBF"};
  63. };
  64. class RearTurret: RearTurret
  65. {
  66. weapons[] = {"Cannon_EWEBSWBFgun"};
  67. magazines[] = {"1000Rnd_Laser_Cannon_EWEBSWBF","1000Rnd_Laser_Cannon_EWEBSWBF","1000Rnd_Laser_Cannon_EWEBSWBF"};
  68. };
  69. };
  70. };
  71. class macro_new_vehicle(speedboat,republic):macro_new_vehicle(speedboat,cis)
  72. {
  73. displayName = "Speedboat Republic";
  74. _generalMacro = macro_new_vehicle(speedboat,republic)
  75. faction = macro_republic_faction
  76. side=1;
  77. class Turrets: Turrets
  78. {
  79. class FrontTurret: FrontTurret
  80. {
  81. weapons[] = {"cannon_portableun"};
  82. magazines[] = {"1000Rnd_Laser_Cannon_EWEBSWBF_REP","1000Rnd_Laser_Cannon_EWEBSWBF_REP","1000Rnd_Laser_Cannon_EWEBSWBF_REP"};
  83. };
  84. class RearTurret: RearTurret
  85. {
  86. weapons[] = {"cannon_portableun"};
  87. magazines[] = {"1000Rnd_Laser_Cannon_EWEBSWBF_REP","1000Rnd_Laser_Cannon_EWEBSWBF_REP","1000Rnd_Laser_Cannon_EWEBSWBF_REP"};
  88. };
  89. };
  90. }
  91. };