Sardes Posted August 12, 2021 Share Posted August 12, 2021 (edited) Hi. 41.51 update has bringed a lot of isLocalPlayer() checks for various methods. Most notable for me is calculateWalkSpeed() in IsoGameCharacter.class and DamageFromWeapon() in BodyDamage.class. After that all NPC mods are broken, because NPC cant pass isLocalPlayer() check. I have tried to add NPC as LocalPLayer using setLocalPlayer method and using NPC number as index, but it still cant pass isLocalPlayer() check because index must be lover than numPlayers variable, which is equal to 1 for single player and I cant find any way to increase it. So, thought I understand that you don't have to support mods, but NPC mods are great addition for PZ, so can you advise me, how to increase numPlayers variable, or may be update new isLocalPlayer() checks somehow? Edited August 12, 2021 by Sardes AuthenticPeach, SlightlyMadman and Aiteron 3 Link to comment Share on other sites More sharing options...
SlightlyMadman Posted August 12, 2021 Share Posted August 12, 2021 BTW this is related to my previous report: The fix in 41.53 that did solve that issue with NPCs being unable to damage zombies worked, but it seems like the same problem is still in place with NPCs (IsoPlayers) damaging each other, as well as being able to run. If whatever was done to fix the above issue in .53 could be implemented in the above methods Sardes mentioned, it would fix a lot of the remaining problems. Link to comment Share on other sites More sharing options...
Aiteron Posted August 13, 2021 Share Posted August 13, 2021 Same problem with my NPC Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now