Skip to content

[TF2] Set the class loadout player model skin based on current team if available, add setteam2/3 commands for class loadout panel for custom huds to add Team buttons #1305

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FlaminSarge
Copy link
Contributor

@FlaminSarge FlaminSarge commented May 23, 2025

Description

TF2 currently defaults to RED skins in the class loadout at all times other than when selecting the "Edit Loadout" button on the bottom-right of the class selection menu. This PR allows the loadout to take on the player's current class if they are in a game.
This also allows custom HUDs to use the commands "setteam2" and "setteam3" instead of the current "sv_cheats 1; r_skin 0/1" workaround, to set the playermodel's team.

…f available, add setteam2/3 commands for class loadout panel for custom huds

The latter change lets custom huds avoid using sv_cheats/r_skin for their Team buttons
Also prevent crash in open_charinfo_direct
@FlaminSarge FlaminSarge changed the title [TF2] Set the class loadout player model team based on current team if available, add setteam2/3 commands for class loadout panel for custom huds to add Team buttons [TF2] Set the class loadout player model skin based on current team if available, add setteam2/3 commands for class loadout panel for custom huds to add Team buttons May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant