-
Notifications
You must be signed in to change notification settings - Fork 4
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
NPCs draw weapon on dead monsters #13
base: master
Are you sure you want to change the base?
Conversation
gothic-1-community-patch/scriptbase/_work/Data/Scripts/Content/AI/ZS_Human/ZS_AssessMonster.d Lines 36 to 40 in 2775fbc
changed to PrintGlobals (PD_ZS_CHECK);
if C_NpcIsDown(other)
{
PrintDebugNpc (PD_ZS_CHECK, "...Monster kampfunfähig!");
return;
};
//######## Ist NSC eine WACHE oder BOSS ? ######## |
The provided fix might not fully work, because the NPC would remain in that AI state and continue to the state loop after the return. An Conceptually, I would like to stick to the mentioned assumptions in the comment block above the function, and not even let the state be started in the first place. That would require to find out which of the callers cause the bug: gothic-1-community-patch/scriptbase/_work/Data/Scripts/Content/AI/ZS_Human/ZS_AssessMonster.d Lines 4 to 15 in 2775fbc
|
@AmProsius, I think I am gonna need an example case where that happens, in order to work on it. There are so many callers (notes to myself):
|
In Gothic Mod Fix, this function is rewritten like this:
|
I think then it should suffice to add a check for |
The test of this fix is not working yet. Refs #13
The test is not functional yet. I cannot reproduce the problem, and need an example of how to trigger the bug. |
This bug still has to be validated. Whoever does this, when doing so, please provide instruction on how to reproduce the bug, such that the test can be adjusted. |
Moved to v1.2.0, because of unclear circumstances of the bug. |
What's left to do here is to clarify the circumstances that cause this bug. I could not reproduce it. As I never experienced it I don't know when it happens. Someone else will have to provide that information. I will have to remove myself from being assigned. |
NPCs sometimes draw their weapon even if the monster is already dead.