[4.7.2] ShooterGame has incorrect time on death animation

In AShooterCharacter::OnDeath, this line is setting the wrong time for a timer. It looks like it’s trying to protect against setting a 0 length timer, but it’s actually only allowing a 0.1 s timer.

GetWorldTimerManager().SetTimer(TimerHandle, this, &AShooterCharacter::SetRagdollPhysics, FMath::Min(0.1f, DeathAnimDuration), false);

This should be:

GetWorldTimerManager().SetTimer(TimerHandle, this, &AShooterCharacter::SetRagdollPhysics, FMath::Max(0.1f, DeathAnimDuration), false);

Hey CombatJack-

Thanks for letting us know about the incorrect functionality. I’ve submitted a bug report to our internal tracking database (UE-11555) for our engineers to investigate.

Cheers