msburgess3200 / zombiereloaded

Automatically exported from code.google.com/p/zombiereloaded
0 stars 0 forks source link

Make plugin independent of mp_roundtime. #248

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The server won't allow rounds to last more than 9 minutes. Since ZR use this 
cvar it affected by this limit.

Make a separate cvar for setting round time (that works with map configs too) 
so it's doing the whole round management itself.

Original issue reported on code.google.com by richard.helgeby@gmail.com on 10 Feb 2011 at 12:28

GoogleCodeExporter commented 9 years ago
I haven't tested this, but it might be easiest to just use SetConVarBounds() 
and expand the current roundtime cvar to allow longer rounds.

Original comment by aangi...@gmail.com on 24 Mar 2011 at 7:34

GoogleCodeExporter commented 9 years ago
If it works, that is a lot easier to do.

Original comment by richard.helgeby@gmail.com on 24 Mar 2011 at 1:31

GoogleCodeExporter commented 9 years ago
I randomly noticed a plugin that uses SetConVarBounds() to show the map time at 
the bottom of the screen.
http://forums.alliedmods.net/showthread.php?p=1455313

ZR could simply set the upper boundary to the max to allow full flexibility. 
Apparently the clock supports showing up to 346 minutes.

SetConVarBounds(mp_roundtime, ConVarBound_Upper, true, 346.0);

Some escape maps already exist that execute "mp_roundtime 14" thinking it 
works, and the 9 minute limit isn't enough to complete them. Easy fix to slip 
in.

Original comment by aangi...@gmail.com on 7 May 2011 at 12:26

GoogleCodeExporter commented 9 years ago
Thanks for the tip. This plugin should do it for now: 
http://forums.alliedmods.net/showthread.php?p=1467169

Original comment by richard.helgeby@gmail.com on 10 May 2011 at 11:36