alliedmodders / amxmodx

AMX Mod X - Half-Life 1 Scripting and Administration
http://www.amxmodx.org/
499 stars 203 forks source link

Non-zero defaut chat time in nextmap.sma breaks functionality for some games #975

Closed fysiks1 closed 3 years ago

fysiks1 commented 3 years ago

In amxmodx-1.8.2, the default value for chattime is 0.0 when the mp_chattime cvar doesn't exist. However, in 64327b8ddb8db2b2c27d52e09ce03ec0737ccf3a the default value was changed to 10.0. This breaks map change functionality in games that don't have mp_chattime because we can't know how long the built-in delay is between intermission (event 30) and the normal map change functionality. For example, in Opposing Forces, the server will change the map before delayedChange() is called due to it being delayed for 10 seconds.

djearthquake commented 3 years ago

Creating CVAR with 2 min max brought back the Final Scores on Capture the Flag.

fysiks1 commented 3 years ago

@djearthquake simply creating the cvar doesn't actually fix anything because the server or a plugin would need to implement the mp_chattime functionality (which I'm not sure is possible for all games).

djearthquake commented 3 years ago

All mods have it except base Half-Life. Final Stats from Opposing Force Capture The Flag is restored. There's no functionality to implement. There's 2 min to spare really once time shows as 0. Final op4ctf stats are back