Blockland Files > Game Modes

Deathmatch with vote-based map cycle

(1/4) > >>

DontCare4Free:
When the gamemode starts a random build is loaded from the pool. Then, after either a time limit or a score limit is met a vote is triggered, in which people can vote for a new map from a random subset of the pool. After the vote is over the map is cleared and the new build is loaded (and everyone respawns), after which the fight continues.

DOWNLOAD
GitHub
Issue Tracker (aka todo-list)

Adding custom builds to the rotation pool
To add a new build to the rotation pool, you should make a file in config/server/deathmatch/builds called with the file extension .dm. It can contain the following contents:
NameDescriptionAllowed valuesExampleRequiredRepeatableaddonRequire an add-on, similar to the ADDON statement in gamemode manifestsAdd-on namesWeapon_GunNoYesbuildDefines what build to loadPaths to save filessaves/ACM City.blsYesNotoolDefines a tool to be set on spawn with the selected buildTool index (zero-indexed) followed by the name of a datablock of a tool/weapon (not the uiName)0 GunItemNoOnce for each tool indexplayertypeThe player type for people to spawn asThe name of a datablock of a playertypePlayerNoJetNoNoenvironmentThe environment file to be used with this buildAn environment as exported by saveEnvironment(%path);.config/server/deathmatch/environments/Beta_City.txtNoNo
Example file (note how the Add-On is always loaded before it's used):

--- Code: ---build saves/ACM City.bls
addon Player_No_Jet
playertype PlayerNoJet
addon Weapon_Gun
tool 0 GunItem

--- End code ---

Is there a server running this so I can see it in action?
Yes.

nerraD:
Intelligent way of adding custom builds to the map cycle.

DontCare4Free:

--- Quote from: nerraD on August 15, 2012, 05:09:30 AM ---Intelligent way of adding custom builds to the map cycle.

--- End quote ---
Thank you.
Anyway, would being able to set a build-specific environment be an appreciated feature?

DontCare4Free:
Uploaded a new version where the default maps should actually be copied properly.

jes00:
Off topic: Nice avatar.

On topic: Very good idea of how to add in custom builds and things to the cycle.

Navigation

[0] Message Index

[#] Next page

Go to full version