Project

General

Profile

Bug #2626

Resurrecting the player does not resume the game

Added by Who Knows over 2 years ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
06/07/2015
% Done:

0%

Reproducibility:
Always
Operating system:
Linux
Severity:
Normal

Description

When you hit the console key while the player is falling down (death animation) you can resurrect it.

The problem is that moving away from the position you died/rose is not possible, except: you can fall and you can use console commands. The other issue is that you can not change back to first person perspective.
What works: almost anything - opening the menu, using stuff (food, equipping weapon...), make conversation, use weapon, fight (and hit), the crime level is kept, casting spells (fireball has an effect, levitate and waterwalking can be cast but have no effect) works too.

The possibility to resurrect the player has potential for modding!

History

#1 Updated by scrawl . almost 2 years ago

  • Target version set to openmw-future

#2 Updated by scrawl . almost 2 years ago

The game state is set to State_Ended when the player dies. Certain actions are prevented in this state (e.g. creating a saved game, since that would result in a useless save game that instantly kills you).

We may be able to reset the game state to State_Running if it's detected the player has been resurrected.

#3 Updated by Who Knows almost 2 years ago

Detecting the execution of "player->Resurrect" should not be so hard to do, right?

#4 Updated by sjek - almost 2 years ago

or one possibility later is allow script's access to that state making afterlife mods much easier to do

on the resurrect from console it would be possibly ultimate function althought there's godmode and skill cap removed and such

otherwise in scripts it would be question of making resurrecting the player inside if block making also non interfering resurrections for zompies or something possible althought that is better handled with states.

current mods try to cache with
if player->gethealth < 1

#5 Updated by Who Knows almost 2 years ago

sjek - wrote:

on the resurrect from console it would be possibly ultimate function althought there's godmode and skill cap removed and such

You're right, it should - in the first place - work in scripts.

current mods try to cache with
if player->gethealth < 1

That's something. It's unfortunately not sufficient to make a companion or … resurrect the PC after it has fallen to the ground (death animation played).

#6 Updated by scrawl . 2 months ago

  • Subject changed from OpenMW: resurrecting the PC fixes it to the position to Resurrecting the player does not resume the game

#7 Updated by Chris Robinson 2 months ago

I'm not sure the ability to resurrect the player is a good idea. Besides the forced switch to third person, there's also the death music, and that the delay to auto-opening the escape menu is variable.

I think a better option would be to prevent it from working on the player, but add some way for scripts to detect when the player would die (before they're technically marked as such) and prevent it. Either that, or allow it only on the same frame the player died, and have the engine wait an extra frame to do the camera change, death music, etc, so a script could detect it without interrupting the game flow.

Also available in: Atom PDF