Random Cycle
RandomCycle
Does nothing more than set sm_nextmap to a random choice when the map starts. Two Cvars: sm_randomcycle_file - File to get map list from, default addons/sourcemod/configs/maps.ini. If not found, will use mapcyclefile sm_randomcycle_exclude - Default 5. The past x maps will be excluded from the random cycle. Ignored if cycle is less than this. Made to satisfy: http://forums.alliedmods.net/showthread.php?t=60907 |
Re: Random Cycle
Hm.That make tough to get more than five maps excluded.
Code:
if (GetArraySize(g_OldMapList) > 5)Code:
if (GetArraySize(g_OldMapList) > GetConVarInt(g_Cvar_ExcludeMaps))That same is for mapchooser. |
Re: Random Cycle
Whoooooooooooooooooooops. Thanks for the catch. That was written before I added an exclude cvar.
|
Re: Random Cycle
No problem. :)
Such bugs are inevitable :wink: and only what we can do is to catch them all, together:twisted: |
Re: Random Cycle
Bugs are Pokemon?!?! I CHOOSE YOU STRCMP!
|
Re: Random Cycle
I choose you, Boulbasavr =)))
Nice plugin, will test it. |
Re: Random Cycle
This needs one small change, but I'll make it later. It needs to delay setting nextmap for a moment or two, to make sure Nextmap's own OnMapStart stuff doesn't get in the way.
|
Re: Random Cycle
I've added this to SM base, so unapproving and removing download link. Look in the disabled plugins folder of latest builds.
|
Re: Random Cycle
Hi, sorry if this is the wrong place to ask this, but I'm having some issues with this plugin. I have set it up to look for maps.ini in sourcemod/configs, but it is still changing to maps that arn't in maps.ini. Is there any other way to force it to use this file?
Also, I set it to exclude the last 30 maps in maps.ini, but I am pretty sure, though not certain, that it is changing to maps that should be excluded. Any ideas? I am using the plugin included in the latest sourcemod build Cheers! |
Re: Random Cycle
How many maps are in maps.ini? If its less than 30, it will stop excluding maps. Check your log file. The plugin will put out a message saying which file it loaded.
|
| All times are GMT -4. The time now is 05:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.