Followers: escorts left behind are teleported to the hero
A follower that fell more than 40 cells behind was removed when its sector was switched off, and the game ran its death label (the husband of "Die Sklaven der Orks"). Every 500 ms followers of the local hero that far away are teleported to him with cCreature::Teleport. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
42b99526a4
commit
e539cab604
5 files changed
+107
-15
No files matched your search
@@ -236,3 +236,22 @@ audit of how quests can fail.
|
||||
Lesson (2026-10-26): flag 1 means available, not running; a first version
|
||||
took it for running and reset 16 available quests and spawned their NPCs on
|
||||
Borf (repaired once, then saved).
|
||||
|
||||
## Escorts never left behind (2026-10-26)
|
||||
|
||||
"I have lost a follower NPC from the quest 'Die Sklaven der Orks', it's no
|
||||
longer following me" (Borf). Measured in the log: the husband (Res:17584,
|
||||
type 86; spawned in `startcode.bin` with death label `drop2412`) fell behind,
|
||||
the game's own catch-up teleport moved him once (type 86 line), then the hero
|
||||
walked on, the sectors behind were switched off, and the game removed him
|
||||
and ran `drop2412` (quest variable 5, a token item res:17585 dropped where he
|
||||
was; picking it up runs `take2412`, the "husband lost" branch). His object id
|
||||
was reused right after: removed, not dead. The teleport potion came 50 s
|
||||
later and was not involved; portals and the potion take followers along.
|
||||
|
||||
`mods/followers.cpp`: every 500 ms each follower of the local hero more than
|
||||
40 cells away (sectors are switched off at 65 and more) on the same level is
|
||||
teleported to the hero with `cCreature::Teleport` 0x54d840 (thiscall (cell x,
|
||||
cell y, 0, 1), ret 0x10). Borf's husband was respawned once by a temporary
|
||||
repair (his spawn instruction, variable 1, token removed, `follow2412`); the
|
||||
quest then finished with him alive.
|
||||
Reference in new issue
Block a user