halflife icon indicating copy to clipboard operation
halflife copied to clipboard

[HL:OpFor] Time Remaining for ctf maps doesn't display seconds, persists after loading other maps

Open dscharrer opened this issue 11 years ago • 3 comments

See bottom left: "Time Remaining: 29:"

When loading another map or starting a single-player game afterwards:

system information

dscharrer avatar Mar 30 '13 03:03 dscharrer

Can you provide the map names you used in the screenshots above please.

alfred-valve avatar Mar 30 '13 17:03 alfred-valve

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.

dscharrer avatar Mar 30 '13 18:03 dscharrer

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.

SamVanheer avatar Feb 05 '22 19:02 SamVanheer

Temporary patch until this gets rolled. flag_timer_fix.sma

djearthquake avatar Mar 14 '23 11:03 djearthquake