beyond-all-reason/Beyond-All-Reason

resurrected commander able to get stuck on edge of map

Open

#4.353 geöffnet am 17. Feb. 2025

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Lua (592 Forks)batch import
BugGadgetGood First Issue

Repository-Metriken

Stars
 (3.922 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 11h) (256 gemergte PRs in 30 T)

Beschreibung

Description

Commander dies:
https://youtu.be/zdUgq5ga_jw?t=27m48s (at 27m 48s)

Commander resurrected and is stuck, apparently: https://youtu.be/zdUgq5ga_jw?t=31m31s (at 31m 31s)

Expected Behaviour

Commander snaps to "in bounds" position if it's fully or partially out of bounds so that he doesn't get stuck

Or store the last fully valid position of every unit on death and if their resurrected position is bad, teleport them (hopefully not far) to their last valid position

Actual Behaviour

Commander gets stuck and the wreckage is a bit weird

Reproduction steps

The videos give a good idea of how to do this. Haven't tested anything myself, but I think it's possible that moving towards out of bounds when the commander dies is relevant.

Other

No response

Contributor Guide