feat(turret): 炮塔精准跟手加死区消抖(滤掉悬浮底盘的 micro-motion)
- module_87072 oxt.wak case 1/2:目标角变化小于死区(默认 0.5 度)时不搬动炮塔 - 死区可实时调:window.__hornetTurretDeadZone__ = 弧度值
This commit is contained in:
1 parent
d4c5a89703
commit
86aa8bd9bd
1 file changed
+14
-10
@@ -71687,11 +71687,13 @@
|
||||
})(this, n);
|
||||
break;
|
||||
case 1:
|
||||
// HORNET-TAG: 炮塔精准跟手(默认开启)—— 直接锁到目标角,不做速度追赶,杜绝"追过头再回摆"
|
||||
// 回退:window.__hornetTurretPrecise__ = 'off'(或 false)
|
||||
if (window.__hornetTurretPrecise__ !== false && window.__hornetTurretPrecise__ !== "off")
|
||||
(Qjt(this).k15b(this.rzp_1), txt(this, 0));
|
||||
else ext(this, n, this.rzp_1);
|
||||
// HORNET-TAG: 炮塔精准跟手 + 死区消抖(默认开启)—— 直接锁目标角,不做速度追赶;小于死区的目标漂移不搬动炮塔
|
||||
// 回退:window.__hornetTurretPrecise__ = 'off';死区:window.__hornetTurretDeadZone__ = 弧度(默认 0.5°)
|
||||
if (window.__hornetTurretPrecise__ !== false && window.__hornetTurretPrecise__ !== "off") {
|
||||
var TurretDz1 = typeof window.__hornetTurretDeadZone__ === "number" ? window.__hornetTurretDeadZone__ : 0.008726646;
|
||||
if (Math.abs(gj(this.rzp_1, Qjt(this).azi_1)) >= TurretDz1) Qjt(this).k15b(this.rzp_1);
|
||||
txt(this, 0);
|
||||
} else ext(this, n, this.rzp_1);
|
||||
break;
|
||||
case 2:
|
||||
var TurretTarget2 = (function (t, n) {
|
||||
@@ -71710,11 +71712,13 @@
|
||||
} else i.u24(sxt().n15b_1);
|
||||
return (sxt().n15b_1.l26(bj().k25_1, sxt().n15b_1), A.mzc(sxt().n15b_1));
|
||||
})(this, this.qzp_1);
|
||||
// HORNET-TAG: 炮塔精准跟手(case 2 相机跟随,默认开启)—— 直接锁到目标角
|
||||
// 回退:window.__hornetTurretPrecise__ = 'off'(或 false)
|
||||
if (window.__hornetTurretPrecise__ !== false && window.__hornetTurretPrecise__ !== "off")
|
||||
(Qjt(this).k15b(TurretTarget2), txt(this, 0));
|
||||
else ext(this, n, TurretTarget2);
|
||||
// HORNET-TAG: 炮塔精准跟手 + 死区消抖(case 2 相机跟随,默认开启)
|
||||
// 回退:window.__hornetTurretPrecise__ = 'off';死区:window.__hornetTurretDeadZone__ = 弧度(默认 0.5°)
|
||||
if (window.__hornetTurretPrecise__ !== false && window.__hornetTurretPrecise__ !== "off") {
|
||||
var TurretDz2 = typeof window.__hornetTurretDeadZone__ === "number" ? window.__hornetTurretDeadZone__ : 0.008726646;
|
||||
if (Math.abs(gj(TurretTarget2, Qjt(this).azi_1)) >= TurretDz2) Qjt(this).k15b(TurretTarget2);
|
||||
txt(this, 0);
|
||||
} else ext(this, n, TurretTarget2);
|
||||
break;
|
||||
default:
|
||||
G$();
|
||||
|
||||
Reference in new issue
Block a user