Upvote Upvoted 1 Downvote Downvoted
Help with hudanimation_tf.txt and spy disguises
posted in Customization
1
#1
0 Frags +

Hey! I had an idea earlier today about the new player model feature on the hud, and how it could be incorporated into the way a spy disguises. Basically, I want the model to be invisible/off-screen when the player isn't disguised, but come into the right spot when they are. Do you know if this is possible? I've tried messing around with the HudSpyDisguiseChanged, HudSpyDisguiseHide, HudSpyDisguiseFadeIn and HudSpyDisguiseFadeOut animations, but to no avail. Do any of you know if this is possible, and if it is, how can I set the animation up to make it so?

Thanks!

Hey! I had an idea earlier today about the new player model feature on the hud, and how it could be incorporated into the way a spy disguises. Basically, I want the model to be invisible/off-screen when the player isn't disguised, but come into the right spot when they are. Do you know if this is possible? I've tried messing around with the HudSpyDisguiseChanged, HudSpyDisguiseHide, HudSpyDisguiseFadeIn and HudSpyDisguiseFadeOut animations, but to no avail. Do any of you know if this is possible, and if it is, how can I set the animation up to make it so?

Thanks!
2
#2
1 Frags +

It's not in hudanimations.txt
for reference try broesel HUD
First off make sure that in HudPlayerClass.res the entry PlayerStatusClassImage, the controlname is set to CTFClassImage and not CTFImagePanel, you also want to set the xpos and ypos for playerstatusclassimageBG to something high so it appears off screen.
Now go into your hudlayout.res and look for the player status class images and there should be one entry for the regular one and one for the disguise panel, again set the one for the regular image (xpos / ypos) to something high so it appears off screen, in case your disguise image is disabled by your HUD already, compare with a HUD that doesn't (broesel) and adjust the xpos and ypos values and play around a little.
If you can't figure it out feel free to add me
I wrote all of this on my phone and without looking into the specific files so I could be wrong but hope I ain't

It's not in hudanimations.txt
for reference try broesel HUD
First off make sure that in HudPlayerClass.res the entry PlayerStatusClassImage, the controlname is set to CTFClassImage and not CTFImagePanel, you also want to set the xpos and ypos for playerstatusclassimageBG to something high so it appears off screen.
Now go into your hudlayout.res and look for the player status class images and there should be one entry for the regular one and one for the disguise panel, again set the one for the regular image (xpos / ypos) to something high so it appears off screen, in case your disguise image is disabled by your HUD already, compare with a HUD that doesn't (broesel) and adjust the xpos and ypos values and play around a little.
If you can't figure it out feel free to add me
I wrote all of this on my phone and without looking into the specific files so I could be wrong but hope I ain't
3
#3
0 Frags +

I got rays to help me with it, since he's streaming. Thanks for the help anyways! I got it working now.

I got rays to help me with it, since he's streaming. Thanks for the help anyways! I got it working now.
Please sign in through STEAM to post a comment.