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 do not collect the weapon after defeating an opponent #194
Conversation
Thanks for your contributions! It looks like you chose the wrong issue template (for language/translations bugs). I will try to add the missing details. It looks like the following function is involved. The item cannot be reliably determined and no weapon will be picked up as a result. It is very similar to #3. gothic-1-community-patch/scriptbase/_work/Data/Scripts/Content/AI/B_Human/B_AssessBody.d Lines 110 to 130 in 04830dc
The if-condition here is faulty. Both function calls to gothic-1-community-patch/src/Ninja/G1CP/Content/Fixes/Session/fix003_RegainDroppedWeapon.d Lines 32 to 70 in 1d4b915
|
Here is main condition for that code from my resources, Maybe it helps to decrease level of incompaitibility !! if ( Wld_DetectItem (self, ITEM_KAT_NF)
{
**if (Hlp_IsValidItem(item))// this "if" is really new thing !!!**
{
if (Npc_GetDistToItem(self,item) < 1000)
{
AI_GotoItem (self, item);
AI_TakeItem (self, item);
B_Say (self, self, "$ITAKEYOURWEAPON"); |
Suggestion on how to implement it:
|
The test is semi-automatic. It is manual, but the success will be displayed on the screen. Failure will be visible from the zSpy. |
Describe the bug
NPCs do not reliably pick up the weapon of their defeated opponent.
Expected behavior
NPCs now correctly pick up the weapon and ammunition of their defeated opponent.
Steps to reproduce the issue