[RESOLVED 0.10.21] Enemy in cage

DRGNphrend
Posts: 6
Joined: Sun Jun 23, 2019 5:22 pm

[RESOLVED 0.10.21] Enemy in cage

Post by DRGNphrend »

enemy in cage inside a dungeon cannot be killed. they seem immune to melee weapon and magic. however the are able to attack the PC.

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Enemy in cage

Post by Interkarma »

Hello, and welcome to the forums. :)

Please review the bug report guidelines for some information on making great reports. I will require your platform and build number for bug to accepted in bug reports.

viewtopic.php?f=24&t=313

For cases like this one, please attach a save game so we can reproduce. There could be many other causes you are unable to attack enemy than a bug.

DRGNphrend
Posts: 6
Joined: Sun Jun 23, 2019 5:22 pm

Re: Enemy in cage

Post by DRGNphrend »

windows x64 0.7.146
using CD daggerfall downloaded from bethesda with patch 2.13 installed

attached the save file as well.
Attachments
SAVE16.zip
(209.64 KiB) Downloaded 137 times
Screenshot.jpg
Screenshot.jpg (112.63 KiB) Viewed 2701 times

User avatar
Jay_H
Posts: 4070
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Enemy in cage

Post by Jay_H »

Image

Difficult to hit due to the back-and-forth enemy movement, but I managed it. It's just a skill to be learned.

User avatar
jayhova
Posts: 924
Joined: Wed Jul 19, 2017 7:54 pm
Contact:

Re: Enemy in cage

Post by jayhova »

I have noticed enemies in cages are difficult to hit with arrows. Can anyone reproduce this? It seem like arrows tend to be sensitive to geometry.

Verbose Combat could tell you if you were anywhere near the target. Just saying it would make a useful diagnostic tool if nothing else.
Remember always 'What would Julian Do?'.

User avatar
pango
Posts: 3358
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Enemy in cage

Post by pango »

Sorry to have to revive that thread, but there's a second cage model with much closer bars, and I've seen a streamer whose quest target was a monk in such cage, in Azargoth Web, Daggerfall, and he couldn't hit him with either melee weapon of touch spells (that eventually got solved by finding a bow).

I reproduced the problem by going to the same dungeon and summoning an enemy into the cage. The cage collider seems fine, but I couldn't fix the issue by lowering the spherecast radius further...
Screenshot.jpg
Screenshot.jpg (144.62 KiB) Viewed 2382 times
small cage collider.jpg
small cage collider.jpg (116.54 KiB) Viewed 2382 times
Attachments
SAVE539.zip
(326.46 KiB) Downloaded 123 times
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 3358
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Enemy in cage

Post by pango »

With very small spherecast radii, I could kill the enemy but only under very specific angles (like in screenshot below: crouched, at a specific distance, slightly off-center...)
working angle.jpg
working angle.jpg (186.57 KiB) Viewed 2377 times
I got the feeling that something is still a bit fishy with raycasting...
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
Interkarma
Posts: 7247
Joined: Sun Mar 22, 2015 1:51 am

Re: Enemy in cage

Post by Interkarma »

I wouldn't want to reduce SphereCollider radius much further at this point. I propose the following two-phase solution instead.
  1. Perform spherecast test as now.
  2. If that misses, perform a raycast test.
Provided user has enemy under crosshair with no obstructions, the raycast will target the enemy even between those bars.

User avatar
pango
Posts: 3358
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Enemy in cage

Post by pango »

I expected that much, will see if it works better...
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 3358
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Enemy in cage

Post by pango »

I gave it a try: https://github.com/Interkarma/daggerfal ... t-fallback

And it seems to only partially help. It seems easier to hit without having to fix the exact weird angle that will work, but you still need to be at just the right distance from the cage...

PS I just realized that my patch above is incorrect, I need to think some more about it
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Locked