Card readers only despawn M249 turrets but labs can spawn with antimaterial turrets #36415
Labels
<Bug>
This needs to be fixed
Fields / Furniture / Terrain / Traps
Objects that are part of the map or its features.
Monsters
Monsters both friendly and unfriendly.
Milestone
Describe the bug
When a player uses an ID card on a card reader, turrets on the same overmap are despawned. However, the code only checks for the hardcoded mon_turret_rifle type, which only covers M249 turrets. Labs can sometimes spawn with .50 cal turrets as guards instead (not sure why?), and those are NOT despawned by card readers when the doors are opened.
Steps To Reproduce
Steps to reproduce the behavior:
Expected behavior
Card reader's iexamine checks for some kind of JSON flag all turrets have instead of a specific monster id when it despawns the security.
Versions and configuration
Additional context
Are antimaterial turrets even supposed to spawn indoors?
The text was updated successfully, but these errors were encountered: