config.cpp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. //Get this addons macro
  2. //get the macro for the air subaddon
  3. //get generlized macros
  4. #include "../../../RD501_main/config_macros.hpp"
  5. //General name of the vehicle
  6. #define vehicle_addon Delta
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_delta_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(Delta)
  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(delta,7a_Mk2),
  23. macro_new_vehicle(delta,7a_Mk2_red),
  24. };
  25. weapons[]=
  26. {
  27. };
  28. };
  29. };
  30. #include "../../common/sensor_templates.hpp"
  31. class CfgVehicles
  32. {
  33. class Plane_Base_F;
  34. class swop_delta7a:Plane_Base_F
  35. {
  36. class ACE_SelfActions;
  37. };
  38. class macro_new_vehicle(delta,7a_Mk2):swop_delta7a
  39. {
  40. displayName = "CS-M Delta-7A Mk.II";
  41. scope = 2;
  42. scopeCurator=2;
  43. forceInGarage = 1;
  44. #include "common_delta.hpp"
  45. hiddenSelections[] = {"camo1", "camo2", "camo3"};
  46. hiddenSelectionsTextures[] = {"\A3\boat_f\Boat_Armed_01\data\Boat_Armed_01_ext_co.paa", "\A3\boat_f\Boat_Armed_01\data\Boat_Armed_01_ext_co.paa", "\A3\boat_f\Boat_Armed_01\data\Boat_Armed_01_ext_co.paa"};
  47. };
  48. class swop_delta7b_anakin:swop_delta7a
  49. {
  50. class ACE_SelfActions;
  51. };
  52. class macro_new_vehicle(delta,7b_Mk2):swop_delta7b_anakin
  53. {
  54. displayName = "CS-M Delta-7B (Yellow) Mk.II";
  55. scope = 2;
  56. scopeCurator=2;
  57. forceInGarage = 1;
  58. #include "common_delta.hpp"
  59. visualTarget = 1;
  60. visualTargetSize = 1;
  61. reportOwnPosition = true;
  62. radarTargetSize = 1;
  63. radarTarget = 1;
  64. nvTarget = 1;
  65. laserTarget = 1;
  66. laserScanner = 0;
  67. irTarget = 1;
  68. irTargetSize = 1;
  69. countermeasureActivationRadius = 2000;
  70. };
  71. class macro_new_vehicle(delta,7a_Mk2_red) : macro_new_vehicle(delta,7b_Mk2)
  72. {
  73. forceInGarage = 0;
  74. Displayname = "CS-M Delta-7B (Red) Mk.II";
  75. hiddenSelections[] = {"camo1","camo2","camo3"};
  76. hiddenSelectionsMaterials[] = {"delta7\Delta7wedge_obi.rvmat","delta7\Delta7back_obi.rvmat","delta7\Delta7astro.rvmat"};
  77. hiddenSelectionsTextures[] = {"delta7\tx_delta7_wedge_obi.paa","delta7\tx_delta7_back_obi.paa","delta7\tx_delta7_astromech_obi.paa"};
  78. };
  79. };