Skip to content

Infection Tutorial

Narimm edited this page Jul 6, 2018 · 4 revisions

Infection Tutorial

This tutorial walks you through creating an Infection game (which uses a game mechanic based off zombie games). Before starting this tutorial, please read the tutorial Introduction to Creating Minigames. This will tell you the basics of setting up a Minigame.

Step 1: Preparing the Minigame

Once you've understood the basics, its fairly simple to get started. Firstly create a Minigame with the gametype “Multiplayer” and the score type “Infection”. To do this use the following commands:

/minigame create MyInfectionMinigame multiplayer

Alternatively, you can use the Minigame Menu to set the Minigame Type and Score Type. (/minigame edit MyInfectionMinigame)

/minigame set MyInfectionMinigame scoretype infection

Step 2: Set up the required locations

For an infection Minigame, you require a lobby, team start locations, a quit position and an end position. To learn about setting these up, follow the Introduction to Creating Minigames tutorial. It is suggested you use team specific spawn points so the infected won't start next to survivors.

Step 3: Assigning the loadouts

Balancing an infection game is quite hard to do. My first infection game (made during the creation of the score type) took several attempts to get balanced correctly so the infected had an even chance against the survivors.

What I ended up going with was a powerful 1 hit kill bow for the survivors with a weak knockback sword and about 24 arrows. For the infected, I gave them a powerful 2 hit diamond sword with an unlimited potion of swiftness 2 and unlimited jump boost 2.

Visit the Loadouts page for more information on configuring loadouts.

Step 4: Game specific settings

For an infection game to work correctly, you need to set up a couple of things. Firstly you'll need to set the default winner to blue team, to do this do:

/minigame set MyInfectionMinigame defaultwinner blue

And you will also need a timer for the survivors to win. To do this, you can change the Timer option in the Minigame Menu (see Menu System for details on using the timer options), or execute the following command:

/minigame set MyInfectionMinigame timer <time length>

Putting “m” at the end of the time length will make the number input use Minutes instead of seconds.

Of course this is one option for infection. You could also set the game so the players have only 1 life so if they die they quit (leaving it as a last team standing type game).

Step 5: Enable the Minigame

Make sure you enable the Minigame before you try join. To do this, open the Minigame Menu and change the enabled option so that it shows as true. Also don't forget to set up the minimum and maximum players that can play the game. Infection currently selects 18% of the players in the Minigame to be the initial infected, so more players means more Infected.

There are also lots of options that can be changed within Infection, you can browse through the Minigame Menu and see what there is available or look through /minigame info <Minigame>.

Using the Preset

Alternatively there is a preset to auto configure Infection. This adds the settings above all in one command and auto configures the loadouts. The command is as follows:

/minigame set <Minigame> preset Infection

The only thing left to set up is the spawn points and other locations.