Enemy in cage

Post here if you need help getting started with Daggerfall Unity or just want to clarify a potential bug. Questions about playing or modding classic Daggerfall should be posted to Community.
DRGNphrend
Posts: 6
Joined: Sun Jun 23, 2019 5:22 pm

Enemy in cage

Post by DRGNphrend » Tue Jun 25, 2019 3:50 am

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: 5131
Joined: Sun Mar 22, 2015 1:51 am

Re: Enemy in cage

Post by Interkarma » Tue Jun 25, 2019 4:12 am

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 » Tue Jun 25, 2019 11:47 pm

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 8 times
Screenshot.jpg
Screenshot.jpg (112.63 KiB) Viewed 503 times

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

Re: Enemy in cage

Post by Jay_H » Tue Jun 25, 2019 11:58 pm

Image

Difficult to hit due to the back-and-forth enemy movement, but I managed it. It's just a skill to be learned.
Come join Lysandus' Tomb, a Daggerfall Unity fan Discord.
See the Daggerfall Unity Wiki on the UESP.

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

Re: Enemy in cage

Post by jayhova » Thu Jun 27, 2019 2:41 pm

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?'.
Windows 10 Pro 64 bit. DFU Ver. Alpha 0.10.7

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

Re: Enemy in cage

Post by pango » Thu Feb 06, 2020 9:51 pm

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 184 times
small cage collider.jpg
small cage collider.jpg (116.54 KiB) Viewed 184 times
Attachments
SAVE539.zip
(326.46 KiB) Downloaded 1 time
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

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

Re: Enemy in cage

Post by pango » Thu Feb 06, 2020 10:20 pm

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 179 times
I got the feeling that something is still a bit fishy with raycasting...
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

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

Re: Enemy in cage

Post by Interkarma » Sat Feb 08, 2020 3:54 am

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: 2049
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: Enemy in cage

Post by pango » Sat Feb 08, 2020 4:08 am

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

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

Re: Enemy in cage

Post by pango » Mon Feb 10, 2020 7:39 pm

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
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Post Reply