View Issue Details

IDProjectCategoryView StatusLast Update
0003964The Dark ModAnimationpublic23.01.2015 01:09
ReporterSpringheel Assigned ToSteveL  
PrioritynormalSeveritynormalReproducibilityhave not tried
Status resolvedResolutionfixed 
Product VersionTDM 2.03 
Target VersionTDM 2.04Fixed in VersionTDM 2.03 
Summary0003964: Failed_KO needs to play on leg channel
DescriptionThe "failed_ko" animation doesn't currently play on the leg channel. It should, as it looks really awkward playing only on the torso. Adding a "call overrideLegs" frame command did not solve the problem.
TagsNo tags attached.

Activities

SteveL

SteveL

22.01.2015 23:46

reporter   ~0007371

Something is aborting the animation within a couple of (game) frames, which is probably why it doesn't work on the legs. Even when it visibly plays, the Failed_KO anim state is being aborted.
SteveL

SteveL

23.01.2015 00:10

reporter   ~0007372

It's IdleAnimationTask::OnFinish that's aborting it. grayman has already plugged a couple of gaps there:

   if (!owner->AI_KNOCKEDOUT && (owner->health > 0) && (idStr(owner->WaitState()) == "")) // grayman 0003857 - let current anim finish

But FailedKnockoutState was setting a waitstate only on the torso channel, not the Actor's overall wait state, so the above check didn't stop it being cancelled.

I've set the overall wait state instead and added a sync of legs and the failed KO now plays on both channels. However, turning isn't disabled, so the AI spins round to face the player wile the failed KO is playing. Not sure that's desirable.
SteveL

SteveL

23.01.2015 00:26

reporter   ~0007374

The spin-while-cringing behaviour was the same in 2.02 so it can stay for this bugfix.

We might want to consider delaying turning while the legs channel is synced to the torso generally later. That would cover the existing custom idles that delay turning, plus the KO animation.
SteveL

SteveL

23.01.2015 00:27

reporter   ~0007375

at rev 6459

Issue History

Date Modified Username Field Change
09.12.2014 01:28 Springheel New Issue
09.12.2014 01:28 Springheel Target Version => TDM 2.04
21.01.2015 08:24 SteveL Assigned To => SteveL
21.01.2015 08:24 SteveL Status new => assigned
22.01.2015 23:46 SteveL Note Added: 0007371
23.01.2015 00:10 SteveL Note Added: 0007372
23.01.2015 00:26 SteveL Note Added: 0007374
23.01.2015 00:27 SteveL Note Added: 0007375
23.01.2015 01:09 SteveL Status assigned => resolved
23.01.2015 01:09 SteveL Fixed in Version => TDM 2.03
23.01.2015 01:09 SteveL Resolution open => fixed