The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC see through wall
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #4
RE: NPC see through wall
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
01-24-2017 05:33 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPC see through wall - Crescens - 01-16-2017, 11:37 PM
RE: NPC see through wall - MirroR - 01-17-2017, 03:55 AM
RE: NPC see through wall - Crescens - 01-24-2017, 07:08 AM
RE: NPC see through wall - Coruja - 01-24-2017 05:33 PM

Forum Jump:


User(s) browsing this thread: 5 Guest(s)