AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   Random Cycle (https://forums.alliedmods.net/showthread.php?t=61258)

ferret 09-25-2007 11:41

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

pZv! 09-25-2007 12:29

Re: Random Cycle
 
Hm.That make tough to get more than five maps excluded.

Code:

if (GetArraySize(g_OldMapList) > 5)
shouldn't be:

Code:

if (GetArraySize(g_OldMapList) > GetConVarInt(g_Cvar_ExcludeMaps))
?
That same is for mapchooser.

ferret 09-25-2007 12:43

Re: Random Cycle
 
Whoooooooooooooooooooops. Thanks for the catch. That was written before I added an exclude cvar.

pZv! 09-25-2007 12:59

Re: Random Cycle
 
No problem. :)
Such bugs are inevitable :wink: and only what we can do is to catch them all, together:twisted:

ferret 09-25-2007 13:25

Re: Random Cycle
 
Bugs are Pokemon?!?! I CHOOSE YOU STRCMP!

imported_Anth0ny 09-25-2007 15:53

Re: Random Cycle
 
I choose you, Boulbasavr =)))

Nice plugin, will test it.

ferret 09-25-2007 15:58

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.

ferret 09-25-2007 22:51

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.

Nomarky 09-30-2007 08:11

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!

ferret 09-30-2007 11:09

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.