ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
636 stars 74 forks source link

[TF2] Class selection screen animations and sound effects are broken #4121

Open condor00fr opened 2 years ago

condor00fr commented 2 years ago

Class selection screen animations are bugged and don't play properly since the 2017 Jungle Inferno Uptate, and the facial animations don't get reset when the class model changes as intended. A lighting isue as also been documentedn and finally the class selection screen featured sounds that played during the class animations. Example: a click sound when the Medic locks his feet, or a chamber twirl sound when Demoman spins it. Around the time of Mann Vs Machine, these sounds suddenly stopped playing.

About two to three years ago someone had proposed a fix for this on the workshop and even explained what was broken and how to fix it. Link here: https://steamcommunity.com/sharedfiles/filedetails/?id=2153744818


[TF2] How to fix broken lightning and missing sounds in class selection screen

Issue transferred from https://github.com/ValveSoftware/Source-1-Games/issues/5354. @condor00fr posted on 2023-12-15T19:27:54:

Note: This discovery was made by "DistantPeak" and was only posted here for the purpose of better visibility, I take no credits in this, and if theses fixes where to be implemented in the near future, does not wish to be credited, for this isn't my work and only it's creator should deserve it.

Link to the fix https://gamebanana.com/mods/483548

The class selection screen currently has two major issues: -Broken Lightning -Missing sound effect

as it turns out, the code for theses is completely absent from the "classselect.res" files and, according to "DistantPeak" should look like this: (This was directly taken from his own explanation, for they acknoledge this fix with custom huds in mind)

This mod restores the 2007 class selection lighting and sound effects. It doesn't support 4:3

//paste this in your classselect.res below if you use a custom hud

"lights"
        {
            "spotlight"
            {
                "name"                    "spot"
                "color"                 "0.85 0.85 0.85"
                "attenuation"            "0.9"
                "origin"                "0 0 200"
                "direction"                "320 10 0"
                "inner_cone_angle"        "5"
                "outer_cone_angle"        "200"
                "maxDistance"            "0"
                "exponent"                "5"
            }
        }

//Here's Where You Paste It

"TFPlayerModel"
    {
        "ControlName"    "CTFPlayerModelPanel"
        "fieldName"        "TFPlayerModel"

        "xpos"            "122"
        "ypos"            "0"
        "zpos"            "6"       
        "wide"            "450"
        "tall"            "480"

        "autoResize"    "0"
        "pinCorner"        "0"
        "visible"        "1"
        "enabled"        "1"

        "render_texture"    "0"
        "fov"            "25"
        "allow_rot"        "0"

        "paintbackground" "1"       
        "paintbackgroundenabled" "1"
        "bgcolor_override" "255 255 255 0"

        "lights"
        {
            "spotlight"
            {
                "name"                    "spot"
                "color"                 "0.85 0.85 0.85"
                "attenuation"            "0.9"
                "origin"                "0 0 200"
                "direction"                "320 10 0"
                "inner_cone_angle"        "5"
                "outer_cone_angle"        "200"
                "maxDistance"            "0"
                "exponent"                "5"
            }
        }

        "model"
        {
            "force_pos"    "1"

            "angles_x" "0"
            "angles_y" "180"
            "angles_z" "0"
            "origin_x" "320"
            "origin_y" "10"
            "origin_z" "-49"
            "frame_origin_x"    "0"
            "frame_origin_y"    "0"
            "frame_origin_z"    "0"
            "spotlight" "1"

            "modelname"        ""
            "vcd"        "class_select.vcd"       

            "animation"
            {
                "name"        "PRIMARY"
                "activity"    "ACT_MP_STAND_PRIMARY"
                "default"    "1"
            }
            "animation"
            {
                "name"        "SECONDARY"
                "activity"    "ACT_MP_STAND_SECONDARY"
            }
            "animation"
            {
                "name"        "MELEE"
                "activity"    "ACT_MP_STAND_MELEE"
            }
            "animation"
            {
                "name"        "BUILDING"
                "activity"    "ACT_MP_STAND_BUILDING"
            }
            "animation"
            {
                "name"        "PDA"
                "activity"    "ACT_MP_STAND_PDA"
            }
            "animation"
            {
                "name"        "ITEM1"
                "activity"    "ACT_MP_STAND_ITEM1"
            }                       
            "animation"
            {
                "name"        "ITEM2"
                "activity"    "ACT_MP_STAND_ITEM2"
            }   
            "animation"
            {
                "name"        "MELEE_ALLCLASS"
                "activity"    "ACT_MP_STAND_MELEE_ALLCLASS"
            }                               
        }
    }
Chickenman456 commented 3 months ago

I'm still holding out hope this gets fixed.