config.cpp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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 dwarf_spider_droid
  7. #define patch_name MODNAME##vehicle_addon##_Patches
  8. #define vehicle_classname MODNAME##_##vehicle_addon
  9. #define new_dwarf_class(name) vehicle_classname##_##name
  10. class CfgPatches
  11. {
  12. class macro_patch_name(dwarf_spider_droid)
  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(dwarf_spider_droid,MkII),
  23. macro_new_vehicle(dwarf_spider_droid,Movable_MkII),
  24. macro_new_vehicle(dwarf_spider_droid,TEST)
  25. };
  26. weapons[]=
  27. {
  28. };
  29. };
  30. };
  31. #include "../../common/sensor_templates.hpp"
  32. class DefaultEventhandlers;
  33. class CfgVehicles
  34. {
  35. #include "inheritance.hpp"
  36. class macro_new_vehicle(dwarf_spider_droid,MkII):SpiderDSD
  37. {
  38. displayName = "Dwarf Spider Droid MkII";
  39. armor = 350;
  40. scope=2;
  41. forceInGarage = 1;
  42. class EventHandlers: DefaultEventhandlers {};
  43. faction = macro_cis_faction
  44. editorSubcategory = macro_editor_cat(heavy_armored_infantry)
  45. vehicleClass = macro_editor_vehicle_type(heavy_armored_infantry)
  46. class HitPoints
  47. {
  48. class HitGun
  49. {
  50. armor = 0.9;
  51. material = -1;
  52. name = "gun";
  53. visual = "autonomous_unhide";
  54. passThrough = 0;
  55. radius = 0.2;
  56. };
  57. class HitTurret: HitGun
  58. {
  59. armor = 0.3;
  60. };
  61. };
  62. };
  63. class macro_new_vehicle(dwarf_spider_droid,Movable_MkII):macro_new_vehicle(dwarf_spider_droid,MkII)
  64. {
  65. displayName = "Dwarf Spider Droid MkII (Moveable)";
  66. forceInGarage = 0;
  67. };
  68. class macro_new_vehicle(dwarf_spider_droid,TEST):SpiderDSD
  69. {
  70. displayName = "TEST - DSD 1";
  71. scope=2;
  72. forceInGarage = 1;
  73. class EventHandlers: DefaultEventhandlers {};
  74. faction = macro_cis_faction
  75. editorSubcategory = macro_editor_cat(heavy_armored_infantry)
  76. vehicleClass = macro_editor_vehicle_type(heavy_armored_infantry)
  77. armor = 1000;
  78. armorLights = 0.4;
  79. armorStructural = 3;
  80. class HitPoints
  81. {
  82. class HitGun
  83. {
  84. armor = 36;
  85. material = -1;
  86. name = "gun";
  87. visual = "autonomous_unhide";
  88. passThrough = 0;
  89. radius = 0.2;
  90. };
  91. class HitTurret: HitGun
  92. {
  93. armor = 36;
  94. };
  95. };
  96. };
  97. };