Jump to content

How are arenas chosen?

Closed 1.0.12

I have bought your friends map pack for the plugin, I copied the maps into File Manager > /oxide/data/survivalArena/ and the plugin recognises the arenas and I can spawn each one manually, the arena files are named  Arena.json, DeathMatch.json, Military.json and Canyon.json.

When ever I play the game with players voting to start an arena I only ever get the Canyon map.

Does the plugin chose one at random? or is there a way to choose the map as an ordinary player?

Share this comment


Link to comment

It should be picking a random arena.

 

        string GetRandomArena()
        {
            List<string> arenas = Pool.GetList<string>();
            arenas.AddRange(Arenas.Keys);
            var name = arenas.GetRandom();
            Pool.FreeList(ref arenas);
            return name;
        }

It uses .net's native GetRandom method to pick a random arena by name.

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.3k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.