Project

General

Profile

Bug #4286

Scripted animations can be interrupted

Added by rot tor 3 months ago. Updated 23 days ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Animation
Target version:
-
Start date:
01/04/2018
% Done:

0%

Reproducibility:
Always
Operating system:
Other
Severity:
Normal

Description

In OpenMW:
1- Death (health set to 0) cancels the current animation and starts a death animation from start ( #1873 related?)
2- Animation functions can't be used on NPC corpses

2: in vanilla PlayGroup and LoopGroup can still be used on NPC corpses, which might be used by mannequins if they have non-idle poses (this one #2513 seems to work only with idle skipanim though).
1: this makes it impossible to give a NPC a scripted death animation without making them stand back up and replay a full death animation when they're actually killed (either by SetHealth 0, or if they're not killed by a script, then by the player possibly hitting the non-dead body).

There is a possible issue with vanilla behaviour: a NPC's death doesn't trigger OnDeath and +1 GetDeadCount if a NPC's death animation can't play or doesn't end. Scripted death animations are possible, but the OnDeath event and "GetDeadCount" can't be used too (because if the NPC's health is set to 0 and then an animation is scripted, the NPC's death won't play; and if an animation is scripted and then the NPC's health is set to 0, it won't play a death animation - unless "PlayGroup idle" is later used)


Related issues

Duplicated by OpenMW - Bug #4367: Animations started on NPCs by PlayGroup are interrupted Rejected 03/19/2018

History

#1 Updated by Alexei Dobrohotov 3 months ago

  • Category set to Animation

#2 Updated by rot tor 3 months ago

To clarify, it's normal for 0 health to reset regular NPC animations. It's scripted animations (PlayGroup, LoopGroup) that aren't interrupted by 0 health in vanilla.

#3 Updated by halbe null 23 days ago

This should be the same issue as https://bugs.openmw.org/issues/4367, with the solution being that playgroup shouldn't get interrupted by other animations.

#4 Updated by Alexei Dobrohotov 23 days ago

  • Duplicated by Bug #4367: Animations started on NPCs by PlayGroup are interrupted added

#5 Updated by Alexei Dobrohotov 23 days ago

  • Subject changed from (mod) Death resets NPC animation, and can't use animations on corpses to Scripted animations can be interrupted
  • Status changed from New to Confirmed
  • Operating system changed from Windows to Other

Also available in: Atom PDF