Skip to content

Add Detonator for Land the Platform minigame#223

Open
KimmyTF2 wants to merge 2 commits into
ficool2:mainfrom
KimmyTF2:Platform-Detonator
Open

Add Detonator for Land the Platform minigame#223
KimmyTF2 wants to merge 2 commits into
ficool2:mainfrom
KimmyTF2:Platform-Detonator

Conversation

@KimmyTF2
Copy link
Copy Markdown
Contributor

@KimmyTF2 KimmyTF2 commented Apr 15, 2026

New addition to land on the platform.

Had to make the duration universal, 6 sec for all, because of the Iron Bomber and picked "surfin" as the only music, because it's the only minigame where it's used, while "sweetdays" is used elsewhere.

New weapon used to land on the platform.

Had to make the duration universal, 6 sec for all, because of the Iron Bomber, and picked "surfin" as the only music, because it's the only minigame where it's used, while "sweetdays" is used elsewhere.
@pokemonpasta
Copy link
Copy Markdown
Collaborator

pokemonpasta commented Apr 15, 2026

Same on this one please maintain the modes system and don't remove music/functionality. The detonator can be added without removing the separate times. And custom_overlay is not needed.

@KimmyTF2
Copy link
Copy Markdown
Contributor Author

KimmyTF2 commented Apr 16, 2026

Like this?

Two questions.
If a minigame uses two different songs, do they need to be precached like here?
And if minigames don't use custom_overlay, why some use PrecacheOverlay even if they are not boss stages?

And one more thing. I can't figure out why, but "local weapon = RandomInt(0, 2)" is the only option I can test on my server. If I use "if (Ware_MinigameMode == 0/1/2)" the game refuses to load any other mode than 0. I tried multiple workarounds and even tried both on a local and hosted server, but the minigame refuses to load other modes. Because of it, I couldn't test the changes. Do you know why it might be the case?

@pokemonpasta
Copy link
Copy Markdown
Collaborator

pokemonpasta commented May 8, 2026

If a minigame uses two different songs, do they need to be precached like here?

The way TF2Ware precaches assets is it loads the full minigame into scope without starting and precaches anything needed in minigame data such as music and overlays. The problem for ones where the music/etc. depends on the mode is it'll set the music parameter to whatever Ware_MinigameMode is at that time, and not any other versions, so in those cases we manually precache. FYI this would also be a problem if we used local modes still, the only other workaround would be some sort of array thing but it's too small a use case to account for

And if minigames don't use custom_overlay, why some use PrecacheOverlay

Again this is likely minigames that have extra overlays they manually set, such as beep block. The precaching only inherently accounts for the assumed overlay when custom_overlay isn't used or custom_overlay when it is used.

Regarding your other question, no idea why it isn't working but do !ware_forcemode if you haven't to check each mode individually

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.

2 participants