Skip to content

[TF2] Fix attachments on dropped weapons having broken textures for certain war paints / skins#1847

Open
Piogre wants to merge 1 commit intoValveSoftware:masterfrom
Piogre:dropped
Open

[TF2] Fix attachments on dropped weapons having broken textures for certain war paints / skins#1847
Piogre wants to merge 1 commit intoValveSoftware:masterfrom
Piogre:dropped

Conversation

@Piogre
Copy link

@Piogre Piogre commented Mar 20, 2026

Dropped weapons that have attachments on them can have broken textures on the attachments if the weapons are Decorated/War Painted with skins that use "material_override" -- including War Paints using the Macaw Masked materials (colloquially referred to as "albedo tint" skins). The override gets applied to the attachments when the weapon is dropped on death, causing the textures to break.

This fixes that issue for dropped weapons.

This issue appears most prominently for festivizers on weapons with these skins, but also breaks the pilot lights on flamethrowers, and the screens on rescue rangers.

ft
rr

Tangentially, this fix removes the only obstacle to adding festivizer support to the Golden Wrench (which also uses material_override to apply its unique skin) -- this bug is the only reason the Golden Wrench wasn't in the "easy adds" pile for festivizers so with this fix it can be implemented in its items_game definition ("169") with the standard "can_be_festivized" tag and "attached_models_festive" block in the visuals section (models/weapons/c_models/c_wrench/c_wrench_festivizer.mdl can be reused for this with no changes)

gw

(re-make of pull 1845, requested merge of wrong source branch, no functional change)

added flag check for STUDIO_NO_OVERRIDE_FOR_ATTACH when drawing attachments on dropped weapons (replicated check used in econ_entity.cpp) -- should prevent attachments getting their materials overridden for dropped weapons with material-overriding war paints
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