Skip to content

[TF2] Fix missing pilot light on dropped stock flamethrower#1928

Open
num-get wants to merge 1 commit into
ValveSoftware:masterfrom
num-get:missing_pilot_light_on_dropped_flamethrower_fix
Open

[TF2] Fix missing pilot light on dropped stock flamethrower#1928
num-get wants to merge 1 commit into
ValveSoftware:masterfrom
num-get:missing_pilot_light_on_dropped_flamethrower_fix

Conversation

@num-get
Copy link
Copy Markdown
Contributor

@num-get num-get commented May 23, 2026

Description

All stock weapons are assigned with INVALID_ITEM_ID by default. Consequently, the current code for dropped weapon will skip over all the stock weapons when looking up attachment. As a result, the pilot light only shows up on non-stock flamethrower.
This PR fixes this.

Before:
20260523204541_1

After:
20260523204700_1

@num-get num-get changed the title Fix missing pilot light on dropped stock flamethrower [TF2] Fix missing pilot light on dropped stock flamethrower May 23, 2026
@ZzZombo
Copy link
Copy Markdown

ZzZombo commented May 23, 2026

All stock weapons are assigned with INVALID_ITEM_ID by default.

What's the reason for this? I'm curious.

@JoriKos
Copy link
Copy Markdown
Contributor

JoriKos commented May 23, 2026

Alternatively, it would be neat if all of them were disabled when on the ground instead to signify them having 'turned off'.

@num-get num-get force-pushed the missing_pilot_light_on_dropped_flamethrower_fix branch from 98b0f37 to 7152b17 Compare May 25, 2026 13:37
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.

3 participants