Upvote Upvoted 50 Downvote Downvoted
Fix for lingering HUD animations on death
posted in Customization
1
#1
0 Frags +

Hello everyone, I have found a fix for that longstanding bug where animations linger after death for custom HUDs. For example, low and overhealed HP or low ammo effects. All you need to do to fix this is run stop events for these animations when the HudSnapShotReminderIn event is called. This will reset those animations on freezecam.

For example, the fix for 7hud was (remember to add the default snapshot reminder code unless you've changed that as well):

event HudSnapShotReminderIn
{
    Animate ScreenshotPanel Position "c-83 -50" Linear 0.0 0.001
    Animate ScreenshotPanel Position "c-83 13" Spline 0.001 0.2
    RunEvent HudHealthDyingPulseStop 10.0
    RunEvent HudHealthBonusPulseStop 10.0
    RunEvent HudLowAmmoPulseStop 10.0
    RunEvent HudMedicChargedStop 10.0
}

The RunEvents depend on what your HUD modifies, but I feel like these are the most popular/common animations HUDs use so it should be enough for most HUDs.

Hello everyone, I have found a fix for that longstanding bug where animations linger after death for custom HUDs. For example, low and overhealed HP or low ammo effects. All you need to do to fix this is run stop events for these animations when the [b]HudSnapShotReminderIn[/b] event is called. This will reset those animations on freezecam.

For example, the fix for 7hud was (remember to add the default snapshot reminder code unless you've changed that as well):

[code]
event HudSnapShotReminderIn
{
Animate ScreenshotPanel Position "c-83 -50" Linear 0.0 0.001
Animate ScreenshotPanel Position "c-83 13" Spline 0.001 0.2
RunEvent HudHealthDyingPulseStop 10.0
RunEvent HudHealthBonusPulseStop 10.0
RunEvent HudLowAmmoPulseStop 10.0
RunEvent HudMedicChargedStop 10.0
}
[/code]

The RunEvents depend on what your HUD modifies, but I feel like these are the most popular/common animations HUDs use so it should be enough for most HUDs.
2
#2
17 Frags +

thank ms mastercoms

thank ms mastercoms
3
#3
8 Frags +

Thanks a million.

Thanks a million.
4
#4
31 Frags +
knsumethank ms mastercoms

may good frames and bug fixes come to you

[quote=knsume]thank ms mastercoms[/quote]
may good frames and bug fixes come to you
5
#5
14 Frags +

Thats sick I'll try that, thank you so much

Thats sick I'll try that, thank you so much
6
#6
DM Servers
0 Frags +

how would you do this on toonhud? im not an Expert Hud Editor, ive got no clue

how would you do this on toonhud? im not an Expert Hud Editor, ive got no clue
7
#7
2 Frags +
stephhow would you do this on toonhud? im not an Expert Hud Editor, ive got no clue

Idk if the event names are the same for every hud so just open your hudanimations file, scroll through, find the event names and replace them in the code that mastercoms posted, then put the whole thing in the hudanimations file

Or just wait till someone that's not as clueless as me comes along and tells you what to do

edit - i checked flathud and the animation names are the same so they're probably the same in every hud so i guess all you gotta do is paste the code in your hudanimations file

[quote=steph]how would you do this on toonhud? im not an Expert Hud Editor, ive got no clue[/quote]

[s]Idk if the event names are the same for every hud so just open your hudanimations file, scroll through, find the event names and replace them in the code that mastercoms posted, then put the whole thing in the hudanimations file
[/s]
Or just wait till someone that's not as clueless as me comes along and tells you what to do

edit - i checked flathud and the animation names are the same so they're probably the same in every hud so i guess all you gotta do is paste the code in your hudanimations file
8
#8
3 Frags +
SentinelOr just wait till someone that's not as clueless as me comes along and tells you what to do

edit - i checked flathud and the animation names are the same so they're probably the same in every hud so i guess all you gotta do is paste the code in your hudanimations file

This is true, since all those animations are called by the game automatically, so a hud that doesn't use them wouldn't work. Their stop events may run more events, but even then this would work. Only exception is stuff that uses the bonus cross as the healthmeter (magnum hud, or the many horizontal healthbar tournament IDs) where this fundamentally doesn't apply anyway.

Could also include it in its own file and have hudanimations_manifest point to it, if the hud in question uses that system already. Just makes it easier whenever an update eventually hits and animations need to get updated.

[quote=Sentinel]Or just wait till someone that's not as clueless as me comes along and tells you what to do

edit - i checked flathud and the animation names are the same so they're probably the same in every hud so i guess all you gotta do is paste the code in your hudanimations file[/quote]
This is true, since all those animations are called by the game automatically, so a hud that doesn't use them wouldn't work. Their stop events may run more events, but even then this would work. Only exception is stuff that uses the bonus cross as the healthmeter (magnum hud, or the many horizontal healthbar tournament IDs) where this fundamentally doesn't apply anyway.

Could also include it in its own file and have hudanimations_manifest point to it, if the hud in question uses that system already. Just makes it easier whenever an update eventually hits and animations need to get updated.
9
#9
5 Frags +

i can't express with words how thankful i am for this

i can't express with words how thankful i am for this
10
#10
10 Frags +

It seems like this just makes the bug less likely and does not make it go away completely. I'm testing some stuff to fix those remaining edge cases that still cause the bug to come up.

It seems like this just makes the bug less likely and does not make it go away completely. I'm testing some stuff to fix those remaining edge cases that still cause the bug to come up.
11
#11
0 Frags +

this doesn't work in m0rehud

this doesn't work in m0rehud
12
#12
1 Frags +
bLathis doesn't work in m0rehud

As in it doesn't decrease the occurrence of the bug or that it breaks m0rehud?

[quote=bLa]this doesn't work in m0rehud[/quote]
As in it doesn't decrease the occurrence of the bug or that it breaks m0rehud?
13
#13
0 Frags +
mastercomsbLathis doesn't work in m0rehudAs in it doesn't decrease the occurrence of the bug or that it breaks m0rehud?

the killcam didn't activate the animation fix.

[quote=mastercoms][quote=bLa]this doesn't work in m0rehud[/quote]
As in it doesn't decrease the occurrence of the bug or that it breaks m0rehud?[/quote]
the killcam didn't activate the animation fix.
14
#14
5 Frags +
bLathe killcam didn't activate the animation fix.

It isn't supposed to activate any animations, only to force cycles in the animation controller. Sort of magic.

Anyway, I have updated the code in the OP to add the default event contents as well as to adjust the time delay to try to make the bug less common.

[quote=bLa]
the killcam didn't activate the animation fix.[/quote]
It isn't supposed to activate any animations, only to force cycles in the animation controller. Sort of magic.

[quote][/quote]
Anyway, I have updated the code in the OP to add the default event contents as well as to adjust the time delay to try to make the bug less common.
15
#15
3 Frags +

based mastercoms

based mastercoms
16
#16
1 Frags +

hello, sorry to reanimate a dead thread, but this does not seem to work for Moe's HUD. if anyone can tell me exactly where to copy and paste the commands in the scripts folder, that would be appreciated. i never edited a hud in my life, so this is pretty new to me.
(if it makes a difference, i'm using windows 10 with notepad++.)

hello, sorry to reanimate a dead thread, but this does not seem to work for Moe's HUD. if anyone can tell me exactly where to copy and paste the commands in the scripts folder, that would be appreciated. i never edited a hud in my life, so this is pretty new to me.
(if it makes a difference, i'm using windows 10 with notepad++.)
17
#17
4 Frags +

Put this in hudanimations.txt or hudanimations_custom.txt, presferably _custom, if your hud has that file.

Put this in hudanimations.txt or hudanimations_custom.txt, presferably _custom, if your hud has that file.
18
#18
1 Frags +
_KermitPut this in hudanimations.txt or hudanimations_custom.txt, presferably _custom, if your hud has that file.

Thanks!

[quote=_Kermit]Put this in hudanimations.txt or hudanimations_custom.txt, presferably _custom, if your hud has that file.[/quote]
Thanks!
Please sign in through STEAM to post a comment.