config.cpp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 droideka
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_droideka_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(droideka)
  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(droideka,base),
  23. macro_new_vehicle(droideka,camo),
  24. macro_new_vehicle(droideka,support),
  25. macro_new_vehicle(droideka,normal),
  26. macro_new_vehicle(droideka,TEST)
  27. };
  28. weapons[]=
  29. {
  30. };
  31. };
  32. };
  33. #include "../../common/sensor_templates.hpp"
  34. class DefaultEventhandlers;
  35. class CfgVehicles
  36. {
  37. //O_JM_TX130_1 empire command
  38. //O_JM_TX130m1_1 normal
  39. //O_JM_TX130m2_1 super
  40. #include "inheritance.hpp"
  41. //Moveable
  42. class macro_new_vehicle(droideka,base) :SWOP_Droideka
  43. {
  44. scope=2;
  45. armor = 275;
  46. displayName = "Static Droideka";
  47. class EventHandlers: DefaultEventhandlers {};
  48. faction = macro_cis_faction
  49. editorSubcategory = macro_editor_cat(heavy_armored_infantry)
  50. vehicleClass = macro_editor_vehicle_type(heavy_armored_infantry)
  51. class HitPoints
  52. {
  53. class HitGun
  54. {
  55. armor = 0.9;
  56. material = -1;
  57. name = "gun";
  58. visual = "autonomous_unhide";
  59. passThrough = 0;
  60. radius = 0.2;
  61. };
  62. class HitTurret: HitGun
  63. {
  64. armor = 0.3;
  65. };
  66. };
  67. };
  68. class macro_new_vehicle(droideka,camo) : macro_new_vehicle(droideka,base)
  69. {
  70. scope=2;
  71. displayName = "Moveable Droideka (Camo)";
  72. hiddenSelectionsTextures[] = {"SW_CloneWarsWeapons\Droideka\DroidikacamoOK_co.paa"};
  73. };
  74. class macro_new_vehicle(droideka,support) : macro_new_vehicle(droideka,camo)
  75. {
  76. scope=2;
  77. hiddenSelectionsTextures[] = {"SW_CloneWarsWeapons\Droideka\DroidikasupportOK_co.paa"};
  78. displayName = "Moveable Droideka (Support)";
  79. };
  80. class macro_new_vehicle(droideka,normal) : macro_new_vehicle(droideka,camo)
  81. {
  82. scope=2;
  83. displayName = "Moveable Droideka";
  84. hiddenSelections[] = {"Camo1"};
  85. hiddenSelectionsTextures[] = {"SW_CloneWarsWeapons\Droideka\DroidikaOK_co.paa"};
  86. };
  87. class macro_new_vehicle(droideka,TEST) :SWOP_Droideka
  88. {
  89. scope=2;
  90. armor = 1000;
  91. displayName = "TEST - Ekka 1";
  92. armorStructural = 3;
  93. class EventHandlers: DefaultEventhandlers {};
  94. faction = macro_cis_faction
  95. editorSubcategory = macro_editor_cat(heavy_armored_infantry)
  96. vehicleClass = macro_editor_vehicle_type(heavy_armored_infantry)
  97. class HitPoints
  98. {
  99. class HitGun
  100. {
  101. armor = 360;
  102. material = -1;
  103. name = "gun";
  104. visual = "autonomous_unhide";
  105. passThrough = 0;
  106. radius = 0.2;
  107. };
  108. class HitTurret: HitGun
  109. {
  110. armor = 360;
  111. };
  112. };
  113. };
  114. };