Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Triggering NPCs no longer stops wait for trigger schedule #537

Open
SamVanheer opened this issue Oct 23, 2023 · 0 comments
Open

Triggering NPCs no longer stops wait for trigger schedule #537

SamVanheer opened this issue Oct 23, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SamVanheer
Copy link
Collaborator

SamVanheer commented Oct 23, 2023

In vanilla Half-Life NPCs default to having a use function that forces their state to the alert state which stops the SCHED_WAIT_TRIGGER schedule. Because this function allowed NPCs to come back from the dead when triggered in the middle of their death schedule it was disabled, but this also broke triggering NPCs that have a targetname.

Not all NPCs can be triggered this way; if they use a different use function (like friendly NPCs having a follower use function) then it won't work anyway.

A proper solution for this is needed to make sure NPCs can be woken from their wait schedule. Otherwise they'll wait 5 seconds to activate their AI properly.

@SamVanheer SamVanheer added the bug Something isn't working label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant