config.cpp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 marid
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define macro_new_marid_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(marid)
  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(marid,MkII_CIS),
  23. macro_new_vehicle(marid,MkII_Dark_CIS)
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class DefaultEventhandlers;
  32. class CfgVehicles
  33. {
  34. #include "inheritance.hpp"
  35. class macro_new_vehicle(marid,MkII_CIS):O_APC_Wheeled_02_rcws_v2_F
  36. {
  37. displayName = "CIS Trojan IFV";
  38. textureList[] = {};
  39. hiddenSelections[] = {"camo1", "camo2", "camo3", "CamoNet", "CamoSlat"};
  40. forceInGarage = 1;
  41. crew=macro_new_unit_class(opfor,B1_crew)
  42. faction = macro_cis_faction
  43. editorSubcategory = macro_editor_cat(APC)
  44. vehicleClass = macro_editor_vehicle_type(APC)
  45. hiddenSelectionsTextures[] = {
  46. macro_vehicle_textures\marid\maridbody.paa,
  47. "",
  48. macro_vehicle_textures\marid\maridturret.paa,
  49. ""
  50. };
  51. class Turrets:Turrets
  52. {
  53. class MainTurret:MainTurret
  54. {
  55. weapons[] = {"Cannon_ATST"};
  56. magazines[] = {"1000Rnd_Laser_Cannon_Minigun","1000Rnd_Laser_Cannon_Minigun","1000Rnd_Laser_Cannon_Minigun","1000Rnd_Laser_Cannon_Minigun","1000Rnd_Laser_Cannon_Minigun"};
  57. };
  58. class CommanderOptics:CommanderOptics
  59. {
  60. weapons[] = {"SmokeLauncher"};
  61. magazines[] = {"SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag","SmokeLauncherMag"};
  62. };
  63. };
  64. class EventHandlers
  65. {
  66. init = "[_this select 0] execVM 'RD501_Vehicles\_init_functions\wheel_dmg.sqf';";
  67. };
  68. };
  69. class macro_new_vehicle(marid,MkII_Dark_CIS):macro_new_vehicle(marid,MkII_CIS)
  70. {
  71. displayName = "CIS Trojan IFV (Dark)";
  72. hiddenSelectionsTextures[] = {
  73. macro_vehicle_textures\marid\dwmaridbody.paa,
  74. "",
  75. macro_vehicle_textures\marid\dwmaridturret.paa,
  76. ""
  77. };
  78. };
  79. };