Custom Monster wont follow Patrol Point; switching to vanilla monster works

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Post Reply
User avatar
tingsing
Posts: 2
Joined: Wed Apr 15, 2026 8:17 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support

Custom Monster wont follow Patrol Point; switching to vanilla monster works

Post by tingsing »

I made a custom monster which acts as a friendly NPC that you can chat with. I want it to patrol a small area, and I have already successfully achieved this via a placeholder monster already as a Wolfenstein SS. However, as soon as I swap the monster to my custom NPC, the map starts with the NPC just standing in place. At first I thought the issue was I was using A_Wander instead of A_chase, as I thought maybe A_chase contained the functionality of following Patrol Points. But I messed around with a bunch of flags, and I just cannot figure out what the issue is. If anybody has any idea, I'd greatly appreciate it!

My custom NPC in DECORATE:

Code: Select all

Actor Chat 15041
{
	//$Category NPC //
game Doom
health 5000
Radius 24
Height 25
Mass 200
Speed 6
PainChance 1
Monster
+FRIENDLY
+NODAMAGE
+DONTFOLLOWPLAYERS
- SHOOTABLE
  States
  {
  Spawn:
    TWIT AB 30 A_Look
    Loop
  See:
    TWIT AB 8 A_Chase
    Loop
  }
}
I can also upload a sample wad if needed.
User avatar
tingsing
Posts: 2
Joined: Wed Apr 15, 2026 8:17 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support

Re: Custom Monster wont follow Patrol Point; switching to vanilla monster works

Post by tingsing »

Okay, I figured it out. The problem seems to be the -SHOOTABLE flag, for some strange reason. I've tried looking into it but I haven't been able to find anything. I thought at first that perhaps there could be a contradiction, since I also used the MONSTER flag combo which uses the +SHOOTABLE flag. I tried removing MONSTER and keeping -SHOOTABLE, but the problem persisted. Afterwards, I just tried keeping the MONSTER flag combo and taking away the -SHOOTABLE flag, and for some reason this finally allows my custom NPC to follow a patrol point. I ended up using +NOBLOOD instead of -SHOOTABLE. I wonder why this is the way it is? Anyway, I stumbled upon other people having this same exact problem while I looked for answers but nobody had responded to any of those threads; hopefully this can help people in the future!
Post Reply

Return to “Mapping”