From: SourceForge.net <no...@so...> - 2008-01-07 22:14:47
|
Bugs item #1847043, was opened at 2007-12-09 00:23 Message generated for change (Settings changed) made by martinfuchs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=1847043&group_id=1111 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: Yes Submitted By: Martin Fuchs (martinfuchs) >Assigned to: Martin Fuchs (martinfuchs) Summary: out-of-screen attacking Initial Comment: It is now possible to issue commands like "/look NPC" and "/attack Playername" on the chat line. The entities, which are looked at in the server, are constrained to the current zone of the player. But they are not constrained by the visible part of the client screen. This results in the phenomenon, that a player can for example start attacking another one, which is currently not in sight of him/her. The attack action handler should take the distance into account and refuse to attack someone, who is currently too far away. The following commands are to be checked also additionally to the /attack command: /look /move /own /use ---------------------------------------------------------------------- Comment By: Hendrik (nhnb) Date: 2007-12-09 13:37 Message: Logged In: YES user_id=990499 Originator: NO Distance as we cannot trust the client. There is already some code in the logic of creature which decides whether a player is near enough to wake up and attack him. ---------------------------------------------------------------------- Comment By: Martin Fuchs (martinfuchs) Date: 2007-12-09 12:12 Message: Logged In: YES user_id=1534223 Originator: YES Before fixing this issue, this questions have to be answered: - Should the commands look at the distance between player and the named object/subject to decide if it is in reach, or should it decide on the visibility on the client screen? - If distance: Which distance should be allowed for each of the commands? - If visibility: Does the server even know what exactly is visible currently on client side? If not, either the client has to translate the object names into object ids and decide if they are currently visible, or the server has to be extended in some way to be able to query the visibility on client side (may be some callback functionality). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=1847043&group_id=1111 |