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 wake up immediately #1
Comments
gothic-1-community-patch/scriptbase/_work/Data/Scripts/Content/Story/ZS/ZS_Sleep.d Lines 43 to 56 in 746a440
changed to func int ZS_SleepBed_Loop()
{
PrintDebugNpc (PD_TA_LOOP,"ZS_SleepBed_Loop");
// SN: Workaround dafür, daß Wld_IsMobAvailable() zwar TRUE geliefert hat, AI_UseMob() aber gescheitert ist!
if (!Npc_GetBodyState(self) == BS_MOBINTERACT || !Npc_GetBodyState(self) == BS_MOBINTERACT_INTERRUPT)
&& (Npc_GetStateTime(self) > 3)
{
AI_StartState (self, ZS_SitAround, 1, "");
};
AI_Wait (self, 1);
return LOOP_CONTINUE;
}; |
@catalinstoian Are you sure this works as expected? A check against |
No longer the external is hooked but its call intercepted
Describe the bug
NPCs wake up immediately after going to bed.
Expected behavior
NPCs no longer wake up immediately after going to bed, but remain sleeping.
The text was updated successfully, but these errors were encountered: