func_tracktrain "unblockable" flag: nextbots can still block it
Details
There are two issues with this flag:
- With the flag on, players and NPCs can't block the train (intended behaviour), but nextbots still can. Something to do with them using a separate locomotion/physics system?
- Minor complaint: the way the flag is worded makes it confusing. "Cannot be blocked by players and NPCs" would convey it's function perfectly.
Steps to reproduce
- Create a map with a func_tracktrain that moves along a path of path_tracks that has turns or curves. Ensure that the func_tracktrain does not have fixed orientation.
- Spawn a nextbot (any will work, including the Example NPC in the Others category) in front of the train. This will stop the train completely if it doesn't crush the nextbot to death.
Do you mean the "Not blockable by players" spawnflag, that specifically is meant for players, and not NPCs or Nextbots, which are never mentioned anywhere? Or something else?
https://developer.valvesoftware.com/wiki/Func_tracktrain
Also please provide a test map to reproduce the issue. Linking an existing Workshop map works too, as long as you provide a spot for testing.
I tested it, despite the Valve wiki not mentioning NPCs at all, the flag does work with them. The flag is also called "Is unblockable by player", that's a direct quote from GarrysMod/bin/base.fgd.
Here, I just built this map. The red train has the flag turned off and the the blue train has it on. Notice how anything can stop the red train by just touching it when it's on a curve, whereas the blue train can only be stopped by nextbots.