halflife
halflife copied to clipboard
[HL:OpFor] Time Remaining for ctf maps doesn't display seconds, persists after loading other maps
See bottom left: "Time Remaining: 29:"
When loading another map or starting a single-player game afterwards:
Can you provide the map names you used in the screenshots above please.
First one is op4ctf_biodomes, i get this for all ctf maps I tried.
Second one is the the intro sequence for the single-player campaign - of0a0 I think, or at least map of0a0
gets the same result. This only happens when loading / starting a singleplayer game (or when joining a non-ctf multiplayer game) after having previously joined a ctf game without restarting opfor.
I also just noticed that after having joined a (ctf or non-ctf) multiplayer game, opening the menu/console via escape/~ no longer pauses the single-player game.
Looks to me like some multiplayer-related variables aren't properly reset?
No that the menu allows you to join a multiplayer game and then disconnect and start a single-player game, but not the other way around.
The second issue happens because CHudFlagIcons::m_bIsTimer
is not reset after a new map has started.
To fix this add this line to CHudFlagIcons::VidInit
:
m_bIsTimer = false;
I've tested the seconds not rendering issue in both Steam and WON Opposing Force and they show in both cases. I don't know why they don't, the code seems fine though. (the image won't load so i can see what exactly is wrong)
If it's a side-effect of the persisting-after-map-change bug then the above fix should deal with it.
Temporary patch until this gets rolled. flag_timer_fix.sma