Script insta-kills

Discuss Daggerfall Unity and Daggerfall Tools for Unity.
Post Reply
Prx
Posts: 5
Joined: Mon Mar 06, 2023 2:46 pm

Script insta-kills

Post by Prx »

Does it exist here?
Like being crushed by objects: between the elevator platform and the floor/ceiling, it seems like I've recently been killed like this, despite having a big shield spell on. Wanna play permadeath mod in future, is there more things/objects like this?

Btw, does falling due zero fatigue near enemy kills you without calculating attacks x time as well?
Is death from disease preventable by fortify attribute spell beforehand?

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

Re: Script insta-kills

Post by Interkarma »

If player stands under a lowering object such an elevator, they will be forced into a crouch then ultimately crushed if object penetrates player capsule. Here's the game script.

https://github.com/Interkarma/daggerfal ... erCrush.cs

Note there's an interesting exception where crush logic isn't applied while player is levitating. This is intended to prevent player being crushed just by levitating up into a lowering platform. But there's the possibility to exploit this by casting levitate, standing under a lowering elevator, and letting the physics push you down into the void. You might also get stuck inside the elevator doing this manoeuvre, so save first.

For fatigue - if there's a hostile enemy nearby when you collapse, you will die from wandering monsters. If you're swimming, you will drown. Otherwise you wake up a short time later. Fortifying and restoring fatigue (either spells or resting) so it doesn't run out at the wrong moment is how you avoid this fate.

https://github.com/Interkarma/daggerfal ... y.cs#L2376

Some other ways to die suddenly are diseases and poisons, and coming across a powerful enemy at a low level that one-shots player. Drowning by staying underwater is instant death. Disintegrate is instant death, but I don't believe any enemies can cast this effect (someone please correct me if I'm wrong).

Prx
Posts: 5
Joined: Mon Mar 06, 2023 2:46 pm

Re: Script insta-kills

Post by Prx »

Interkarma wrote: Mon Mar 06, 2023 9:52 pm If player stands under a lowering object such an elevator, they will be forced into a crouch then ultimately crushed if object penetrates player capsule. Here's the game script.

https://github.com/Interkarma/daggerfal ... erCrush.cs

Note there's an interesting exception where crush logic isn't applied while player is levitating. This is intended to prevent player being crushed just by levitating up into a lowering platform. But there's the possibility to exploit this by casting levitate, standing under a lowering elevator, and letting the physics push you down into the void. You might also get stuck inside the elevator doing this manoeuvre, so save first.

For fatigue - if there's a hostile enemy nearby when you collapse, you will die from wandering monsters. If you're swimming, you will drown. Otherwise you wake up a short time later. Fortifying and restoring fatigue (either spells or resting) so it doesn't run out at the wrong moment is how you avoid this fate.

https://github.com/Interkarma/daggerfal ... y.cs#L2376

Some other ways to die suddenly are diseases and poisons, and coming across a powerful enemy at a low level that one-shots player. Drowning by staying underwater is instant death. Disintegrate is instant death, but I don't believe any enemies can cast this effect (someone please correct me if I'm wrong).
Is there any spell reflection of enemies?
Can the enemies do x3 backstab damage?
Is Stendarr's perk (Avoid Death) implemented?

Post Reply