config.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #include "../../../RD501_main/config_macros.hpp"
  2. class CfgPatches
  3. {
  4. class RD501_patch_droideka
  5. {
  6. addonRootClass=MACRO_QUOTE(RD501_patch_vehicles);
  7. requiredAddons[]=
  8. {
  9. RD501_patch_vehicles
  10. };
  11. requiredVersion=0.1;
  12. units[]=
  13. {
  14. macro_new_vehicle(droideka,base),
  15. macro_new_vehicle(droideka,normal)
  16. };
  17. weapons[]=
  18. {
  19. };
  20. };
  21. };
  22. #include "../../common/sensor_templates.hpp"
  23. class DefaultEventhandlers;
  24. class CfgVehicles
  25. {
  26. class k_CIS_Droideka;
  27. class macro_new_vehicle(droideka,base): k_CIS_Droideka
  28. {
  29. scope=2;
  30. displayName = "Static Droideka";
  31. class EventHandlers: DefaultEventhandlers {};
  32. faction = macro_faction(CIS);
  33. editorSubcategory = macro_editor_cat(heavy_armored_infantry);
  34. vehicleClass = macro_editor_vehicle_type(heavy_armored_infantry);
  35. ace_dragging_canCarry = 0;
  36. ace_dragging_canDrag = 0;
  37. armor = 225;
  38. armorStructural = 1.0;
  39. explosionShielding = 0.1;
  40. minTotalDamageThreshold = 0.01;
  41. impactDamageMultiplier = 0.1;
  42. class HitPoints
  43. {
  44. class HitGun
  45. {
  46. armor = 0.9;
  47. material = -1;
  48. name = "gun";
  49. visual = "autonomous_unhide";
  50. passThrough = 0;
  51. radius = 0.2;
  52. };
  53. class HitTurret: HitGun
  54. {
  55. armor = 0.3;
  56. };
  57. };
  58. };
  59. class macro_new_vehicle(droideka,normal): macro_new_vehicle(droideka,base)
  60. {
  61. displayName = "Droideka (Moveable)";
  62. forceInGarage = 0;
  63. };
  64. };
  65. class Extended_Init_EventHandlers
  66. {
  67. class macro_new_vehicle(droideka,base)
  68. {
  69. class rd501_deka_shield
  70. {
  71. init = "_this call rd501_fnc_deka_shield_init";
  72. };
  73. };
  74. class macro_new_vehicle(droideka,normal)
  75. {
  76. class rd501_deka_shield
  77. {
  78. init = "_this call rd501_fnc_deka_shield_init";
  79. };
  80. };
  81. };