Ran few matches with AMXD 8.02, I noticed a huge issue: the 2nd half demos is incompleted! In fact, they're all as short as 30 seconds or less. So I dig into the code and found out the problem: the delayed HLTV command to stop recording in
demo_stop function:
Code:
set_task(get_cvar_float("amx_match_hltvdelay"), "demo_stop_hltv")
Now let's walk thru a classic situation when the first half ended and
amx_match_hltvdelay was set to 30s. The server tells HLTV to stop recording after 30s and enters the warmup time. Right after that, the admin start the 2nd half by saying "/start" and, like in the 1st half, the server tells HLTV to record a new demo for this 2nd half. So just a few seconds after the server scheduled to stop recording the 1st half demo, it command HLTV to record the 2nd half demo!!! Now that's the odd part when after 30s, the scheduled task run and command HLTV to stop recording, which was intended to be the 1st half demo, but in fact, the 2nd demo was already being recorded.
So, the 2nd half demo is always stopped after no more than 30s.