config.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #include "../../../RD501_main/config_macros.hpp"
  2. #include "../../_common/common.hpp"
  3. class CfgPatches
  4. {
  5. class macro_patch_name(spider_weapons)
  6. {
  7. author=DANKAUTHORS;
  8. addonRootClass= macro_patch_name(vehicle_weapons)
  9. requiredAddons[]=
  10. {
  11. macro_patch_name(vehicle_weapons)
  12. };
  13. requiredVersion=0.1;
  14. units[]={};
  15. weapons[]={
  16. macro_new_weapon(spider,homing)
  17. };
  18. };
  19. };
  20. class CfgWeapons
  21. {
  22. class LMG_RCWS;
  23. class Cannon_Spiderdroidog9:LMG_RCWS
  24. {
  25. class manual;
  26. };
  27. class macro_new_weapon(spider,homing):Cannon_Spiderdroidog9
  28. {
  29. modes[] = {"manual", "close"};
  30. displayName = "Laser Cannon";
  31. magazines[] = {
  32. macro_new_mag(homing_spider,10)
  33. };
  34. scope = 1;
  35. author= "RD501";
  36. ballisticsComputer = 1;
  37. autoFire = 1;
  38. canLock = 2;
  39. airLock = 1;
  40. reloadmagazinetime = 8;
  41. class manual:manual
  42. {
  43. reloadTime = .6;
  44. soundBurst = 0;
  45. dispersion = 0.0002;
  46. }
  47. class close: manual
  48. {
  49. showToPlayer = 0;
  50. soundBurst = 0;
  51. soundContinuous = 0;
  52. aiRateOfFire =1;
  53. aiRateOfFireDistance = 4000;
  54. aiRateOfFireDispersion = 1;
  55. minRange = 0;
  56. minRangeProbab = 0.05;
  57. midRange = 2000;
  58. midRangeProbab =1.0;// 0.58;
  59. maxRange = 4000;
  60. maxRangeProbab = 1.0;//0.3;
  61. };
  62. };
  63. };