Skip to content

fix(zombies): guard death callbacks and initialize wave spawn angles - #20

Merged
ghptc merged 2 commits into
masterfrom
fix/btd-death-callback
Oct 27, 2026
Merged

ghptc merged 2 commits into
masterfrom
fix/btd-death-callback

Conversation

@ghptc

@ghptc ghptc commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Player death in original Before the Dawn Alpha 001 can compare an undefined inflictor targetname with a string, aborting the game session while the process remains running. Add a pinned, locally generated GSX defined-field guard. The subsequent lifecycle regression exposed a separate wave-one failure: spawn structs initialize origin but omit the native-vector angles consumed by the zombie constructor. Initialize those angles in a second pinned overlay.

Original fastfile/IWD/CFG bytes remain unchanged; no third-party scripts or assets are committed. Preparation reads verified plaintext raw-source members, without bytecode decompilation or fastfile rebuilding. Promod and VM semantics are unchanged.

Validation: 44 engine unit tests (one optional client-source test skipped); seven asset/preparation tests included. Native VM reproductions show the original expression, actual player-killed callback/shutdown and separate missing-angle wave defect. The corrected disposable synthetic-player lifecycle passes death, respawn, vendor zombie spawning and wave-two progression, two UDP admission handshakes, and mp_crash/mp_strike transitions without script errors. Fresh private preparation plus workspace overlay validation passes. Existing BTD all-map integration passes 53 checks with developer error reporting enabled; existing Promod integration passes 53 checks.

These are automated fixtures, not real client gameplay qualification. Independent review, mandatory CI and operator-approved merges must precede master-based homolog deployment and a supervised real-client session. Production remains on recovered Promod; no merge or remote deployment has been performed. Companion ghptc/ec2-workspace#15 requires both overlay hashes before packaging and adds a disabled-by-default restricted host CLI.

Mandatory GitHub Linux and Windows CI checks passed at head 96bf9a3. Independent human review and operator-approved merge remain pending.

@ghptc
ghptc merged commit db09ce3 into master Oct 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant