uqm-arena/balance-mod

[ISSUE][CLOSED] [allow-retreat] Pkunk does not respawn correctly if destroyed while attempting to retreat

Closed this issue · 1 comments

Issue by oldlaptop
Wednesday Sep 12, 2012 at 22:55 GMT
Originally opened as https://github.com/SirDifferential/Shiver-Balance-Mod/issues/4


If a Pkunk is destroyed while attempting to retreat in Supermelee or the full game, and the Pkunk attempts to respawn, the respawn code does not seem to be properly/fully called. The game gets as far as drawing the Pkunk sprite, but it does not get the special phoenix trail, does not become player-controllable, does not get crew/battery, and Pkunk's preprocess/postprocess functions do not appear to be called. Being destroyed while attempting to retreat seems to prevent resurrection entirely in both vanilla and unpatched Balance Mod.

Comment by oldlaptop
Thursday Sep 13, 2012 at 23:05 GMT


Pkunk will continue attempting to warp out after a failed respawn, even though it does not appear so (not immobile, pulsing red, etc). This is probably a side effect of flee_preprocess being left as Pkunk's preprocess function, without the code in DoFlee being called again.