twhl-community / halflife-updated

Half-Life SDK updated to compile under VS2019 and 2022. Check README.md for more information.
Other
382 stars 146 forks source link

scripted_sequence can be broken by +using friendly NPCs to make them follow player #200

Closed SamVanheer closed 1 year ago

SamVanheer commented 1 year ago

If the player +uses a friendly NPC to make them follow the player right after a scripted_sequence has started then the NPC will instead try to treat the player as its target entity.

This results in the NPC either trying to move towards the player or, if the player has +used the NPC again to stop them following the player, causes the NPC to access a null pointer, crashing the game.

Originally reported by Oxofemple.