Paints carry search or track; a ping sweep warns every ship it crosses in its beam; allies hear the return silently
LockWarning becomes PaintWarning with a PaintMode (Search for a ping sweep, Track for a lock); Entity.IncomingLocks becomes IncomingPaints. Sensor replaces the _pingedEntities set with a stateless crossing rule over the previous and current wavefront radius, limited to a new BeamWidth stat (key 12, absent reads 360), and credits allied pings from the receiving sensor's own sensitivity and distance. The HUD lock indicator follows Track paints only. Folds in the radiator sampling-instant pin. Unverified at this commit (first build still to run). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a47f967d13
commit
c47ced9cfd
8 changed files with 432 additions and 62 deletions
|
|
@ -1457,12 +1457,13 @@ public class ActionGameManager : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
// The strongest lock on the player's ship, read only from IncomingLocks (never another ship's LockWeapon).
|
||||
// The strongest lock on the player's ship, read only from IncomingPaints (never another ship's LockWeapon).
|
||||
// Only Track paints are locks; Search paints (ping sweeps) are presented by contact-hud, not here.
|
||||
// Same curves as the outgoing indicator, driven by the warning's Strength.
|
||||
var warnings = CurrentEntity.IncomingLocks;
|
||||
var warnings = CurrentEntity.IncomingPaints;
|
||||
var strongest = -1;
|
||||
for (var w = 0; w < warnings.Count; w++)
|
||||
if (strongest < 0 || warnings[w].Strength > warnings[strongest].Strength) strongest = w;
|
||||
if (warnings[w].Mode == PaintMode.Track && (strongest < 0 || warnings[w].Strength > warnings[strongest].Strength)) strongest = w;
|
||||
var (incomingIndicator, incomingSpin) = _incomingLockIndicator;
|
||||
incomingIndicator.gameObject.SetActive(strongest >= 0);
|
||||
if (strongest >= 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue