Remove distance check logic for active runtime target

This commit is contained in:
2026-04-25 18:06:42 +02:00
parent 1765b23228
commit 94536c6611

View File

@@ -5961,6 +5961,16 @@ export class RuntimeHost {
return;
}
if (
distanceBetweenPoints(
this.currentPlayerControllerTelemetry.eyePosition,
activeTarget.center
) > TARGETING_ACTIVE_TARGET_RELEASE_DISTANCE
) {
this.retargetOrClearActiveRuntimeTarget();
return;
}
if (this.isRuntimeTargetCameraVisible(activeTarget)) {
this.activeRuntimeTargetOcclusionSeconds = 0;
} else {
@@ -5974,16 +5984,6 @@ export class RuntimeHost {
return;
}
}
if (
distanceBetweenPoints(
this.currentPlayerControllerTelemetry.eyePosition,
activeTarget.center
) > TARGETING_ACTIVE_TARGET_RELEASE_DISTANCE
) {
this.retargetOrClearActiveRuntimeTarget();
return;
}
}
private updateRuntimeTargetingInputState() {