VGames, on 05 August 2024 - 03:23 PM, said:
I noticed that when the player is shrunk useractor enemies do not track the player's position like the other original enemy actors do. Is there a way to get useractor enemies to track the player's position like the originals? I'm trying to get small spider actors to track the player position when they are shrunk but they seem to ignore the player altogether.
One thing to be aware of is that ifp palive returns false when the player shrunk. So if your enemies check for whether the player is alive before following, that might explain it.
It's instructive to look at the code for NEWBEAST, which is a useractor. Notice that it explicitly will enter its seeking state when the player is shrunk. Once in that state, it does check for whether ifp pdead is true, but only when deciding whether to shoot or scratch. It will not leave the seeking state just because the player is "dead".