NPC see through wall - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: NPC see through wall (/Thread-NPC-see-through-wall) |
NPC see through wall - Crescens - 01-16-2017 11:37 PM Hello guys, I had some issues with wall of stone, paralyze, X, and fire field which you can't attack a player when he's X on wall of stone, I fixed it, now I can do it, attack BUT I noticed monsters can attack/see you through some wall ( like house walls ) and players can use archer or even magic to hit through wall as well, how can I fix it ? ( Sphere 56.b ) Crescens RE: NPC see through wall - MirroR - 01-17-2017 03:55 AM PHP Code: [ITEMDEF 07a] I hope it is correct. RE: NPC see through wall - Crescens - 01-24-2017 07:08 AM Hello MirroR, I did it, it now "works" somehow better, but now I can't hit the player inside the X ( wall of stone ) I mean, where is supposed to reach the other player ( diagonal ) RE: NPC see through wall - Coruja - 01-24-2017 05:33 PM this is a fix, not an issue on really old sphere versions < 56b, the LOS check doesn't work correctly on diagonal positions, allowing the attacker get line of sight of the target traped inside the wall X. So there's no way to get line of sight to something on the other side of the wall, but sphere was incorrectly allowing the LOS this bug got fixed on sphere 56b, making the LOS work correctly on diagonal checks, which will block the LOS to the char stuck inside the wall X the same occur on fire field, because the char doesn't have LOS to the position inside the wall X, so it also can't cast spells targeting this blocked position so maybe the only way to "unfix" this is enabling EF_NoDiagonalCheckLOS on sphere.ini to disable this diagonal checks, making sphere return the wrong result again. But honestly I highly don't recommend enable this setting, because disabling diagonal LOS checks will also bring many unwanted behaviors/exploits, like players using bow or casting spells through house walls, players killing NPCs on strategic locations between walls where the player can hit the NPC but the NPC can't hit the player, etc |