In my work on the sector_control gamemode I have run into a dead end.
I found out that the tf_halloween_minigame entity has an input for a .res file. This is different than the .res file input for tf_logic_player_destruction in a couple ways. Most notably, it allows you to change the .res file for the entity on the fly and the new hud elements will appear immediately.
As you can see this has massive potential for jimijam-rigging custom huds, however there are two problems.
First, I am unable to give it a custom made file. The tf_logic_player_destruction has a full path that needs to be defined for the resource file to be found, but tf_halloween_minigame doesn't, it only looks within resources/ui/ and using ../ or putting your own files in tf/resources/ui do not seem to work.
Secondly, while a minigame is active it removes the standard player hud. The heath, ammo, and crosshair all disappear and a bumpercar boost hud pops up (even if the map has no bumpercar related things in it). The normal player hud will return when the minigame is ended, either via the return_from_minigame input, or by killing the minigame entitles. However doing this also removes the minigame hud.
So, the question is, is there any way to have the player hud and the minigame hud on the screen at the same time.
Is it possible to replace the .res file for the bumpercar hud with the .res file for the standard player hud on map load?
If not, is there another way to hotswap .res files.
I found out that the tf_halloween_minigame entity has an input for a .res file. This is different than the .res file input for tf_logic_player_destruction in a couple ways. Most notably, it allows you to change the .res file for the entity on the fly and the new hud elements will appear immediately.
As you can see this has massive potential for jimijam-rigging custom huds, however there are two problems.
First, I am unable to give it a custom made file. The tf_logic_player_destruction has a full path that needs to be defined for the resource file to be found, but tf_halloween_minigame doesn't, it only looks within resources/ui/ and using ../ or putting your own files in tf/resources/ui do not seem to work.
Secondly, while a minigame is active it removes the standard player hud. The heath, ammo, and crosshair all disappear and a bumpercar boost hud pops up (even if the map has no bumpercar related things in it). The normal player hud will return when the minigame is ended, either via the return_from_minigame input, or by killing the minigame entitles. However doing this also removes the minigame hud.
So, the question is, is there any way to have the player hud and the minigame hud on the screen at the same time.
Is it possible to replace the .res file for the bumpercar hud with the .res file for the standard player hud on map load?
If not, is there another way to hotswap .res files.