[svn 2880] npc's hit in melee from range 2

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Freddybear
Wyrmic
Posts: 201
Joined: Wed Dec 06, 2006 6:58 pm
Location: Mordor, Ohio

[svn 2880] npc's hit in melee from range 2

#1 Post by Freddybear »

Playing on svn 2880, my character is being hit by melee attacks from npc's which are two squares away.
Here is an example screenshot:
Image

I have attached a partial stdout.txt from a wolf ambush which also has the same problem. I didn't get a screenshot from the wolf ambush. :(
Attachments
wolf-ambush-stdout.txt
wolf ambush with melee range 2 bug
(25.78 KiB) Downloaded 176 times

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: [svn 2880] npc's hit in melee from range 2

#2 Post by yufra »

Many thanks to Freddybear and edge2054 for helping me debug this on IRC. I have attached a patch.

EDIT: Removed this patch, added one further along in the thread.
Last edited by yufra on Tue Mar 01, 2011 5:56 am, edited 1 time in total.
<DarkGod> lets say it's intended

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: [svn 2880] npc's hit in melee from range 2

#3 Post by edge2054 »

Not sure if it's this fix or a separate issue but Ice Claw, Swallow, and Nature's Touch all act like they can target beyond melee range when right clicking (though none go off.)

Attack does not act this way and only shows up if I right click on adjacent tiles.

Freddybear
Wyrmic
Posts: 201
Joined: Wed Dec 06, 2006 6:58 pm
Location: Mordor, Ohio

Re: [svn 2880] npc's hit in melee from range 2

#4 Post by Freddybear »

The right-click menu seems to be sensitive to certain types of ranged "attacks" but not others.
For my wyrmic character, the targeting for Ice Breath is apparantly one square in range, but the cone extends far beyond that.
For example:
Image

The right-click menu for a one-square range "attack" is:
Image

Even though the cone of Ice Breath extends far enough, the right-click menu for a range greater than one is:
Image

Freddybear
Wyrmic
Posts: 201
Joined: Wed Dec 06, 2006 6:58 pm
Location: Mordor, Ohio

Re: [svn 2880] npc's hit in melee from range 2

#5 Post by Freddybear »

On the other hand, the right-click menu for an Archmage, who does not have any melee or range-1 "cone" attacks, seems to be correct, although it excludes talents which cannot "directly" target the square on which the cursor was placed, which precludes using the right-click menu for "indirect" targeting of beams or bolts around corners or obstacles.

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: [svn 2880] npc's hit in melee from range 2

#6 Post by yufra »

Thanks again guys, here is a new patch against SVN2880 (ignore the first patch) that I think is fixed.

EDIT: Not fixed... working on it.
<DarkGod> lets say it's intended

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: [svn 2880] npc's hit in melee from range 2

#7 Post by yufra »

Alright, it required a bit of refactoring but I think this is a much more robust method. This new patch is against SVN 2885 to take advantage of tiger_eye's asymmetry fix. Please let me know if you notice anything odd with the MapMenu, projections and projectiles. Cheers.

EDIT: Updated the patch to fix a minor bug with MapMenu.
Attachments
projection_refactor.txt
(15.16 KiB) Downloaded 166 times
<DarkGod> lets say it's intended

Post Reply