config.cpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #include "../../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class macro_patch_name(dwarf_spider_droid)
  5. {
  6. addonRootClass=macro_patch_name(vehicles)
  7. requiredAddons[]=
  8. {
  9. macro_patch_name(vehicles)
  10. };
  11. requiredVersion=0.1;
  12. units[]=
  13. {
  14. macro_new_vehicle(dwarf_spider_droid,MkII),
  15. macro_new_vehicle(dwarf_spider_droid,Movable_MkII),
  16. };
  17. weapons[]=
  18. {
  19. };
  20. };
  21. };
  22. #include "../../common/sensor_templates.hpp"
  23. class DefaultEventhandlers;
  24. class CfgVehicles
  25. {
  26. class StaticMGWeapon;
  27. class SpiderDSD: StaticMGWeapon
  28. {
  29. scope=0;
  30. };
  31. class macro_new_vehicle(dwarf_spider_droid,MkII): SpiderDSD
  32. {
  33. displayName = "Dwarf Spider Droid MkII";
  34. scope = 2;
  35. forceInGarage = 1;
  36. class EventHandlers: DefaultEventhandlers {};
  37. faction = macro_cis_faction;
  38. editorSubcategory = macro_editor_cat(heavy_armored_infantry);
  39. vehicleClass = macro_editor_vehicle_type(heavy_armored_infantry);
  40. armor = 250;
  41. armorStructural = 1.0;
  42. explosionShielding = 0.1;
  43. minTotalDamageThreshold = 0.02;
  44. impactDamageMultiplier = 0.1;
  45. class HitPoints
  46. {
  47. class HitGun
  48. {
  49. armor = 0.9;
  50. material = -1;
  51. name = "gun";
  52. visual = "autonomous_unhide";
  53. passThrough = 0;
  54. radius = 0.2;
  55. };
  56. class HitTurret: HitGun
  57. {
  58. armor = 0.3;
  59. };
  60. };
  61. };
  62. class macro_new_vehicle(dwarf_spider_droid,Movable_MkII): macro_new_vehicle(dwarf_spider_droid,MkII)
  63. {
  64. displayName = "Dwarf Spider Droid MkII (Moveable)";
  65. forceInGarage = 0;
  66. };
  67. };