Describe the bug
SAMs have various issues related to targeting. This is a mass-issue to group similar issues
- SAMs sometimes fail to shoot nukes inside of the radius close to the edge due to travel speed
- SAMs fail to detect MIRV warheads in time due to search radius and warhead speed
- Nukes can go through SAM radius if the intersection with the radius passes between ticks
- Nuke pathing has a summation error due to pixel rounding, which accumulates and causes a stutter on long range nukes.
- SAMs sometimes shoot at nukes unable to hit due to queuing order.
- SAMs find nukes by position prioritizing up to down, left to right. If multiple nukes are determined to need immediate firing to intercept, it will prioritize the one furthest north, usually one landing far away.
- smarter target system, target ones closer to the sam itself first (so it can continue protecting) then target the ones with least time till explosion.
- MIRV warheads rain down extremely quickly. High level SAMs fail to target the vast majority despite being in range due to a combination of the above, allow multiple shots per tick.
- Keep SAMMissiles alive after a SAM is destroyed. Currently the logic can be abused to prevent the SAM from destroying any nukes due to its own destruction.
To Reproduce
Steps to reproduce the behavior:
- Get ingame with another person
- build high level SAM stacks and a silo.
- throw nukes at each other per issue you want to test. A level 5 sam can be hydro clipped despite red X. mirv warheads destroy the silo. etc.
Expected behavior
For the SAM to be able to target everything in its range properly without exception, and prioritize its own survival. For the missiles it shoots to always hit nukes and not go to waste.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Applicable to all
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Assignment
Describe the bug
SAMs have various issues related to targeting. This is a mass-issue to group similar issues
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For the SAM to be able to target everything in its range properly without exception, and prioritize its own survival. For the missiles it shoots to always hit nukes and not go to waste.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Applicable to all
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Assignment