Skip to content

Equipment Interval

RedstoneFuture edited this page Aug 3, 2022 · 5 revisions

Overview

Within the game, players receive new items (= game equipment) at regular intervals. The time that elapses until the player receives a new item is called "Equipment Interval" here and is shown to the player via the level display. The interval depends on various factors and can be set individually for each arena in his /MissileWars/arenas/ configuration in the equipment_interval section:

equipment_interval:
  start: 10
  intervals_by_team_amount:
    "1": 15
    "2": 20
    "4": 25
  interval_factor_by_game_time:
    "1800": 1.0
    "300": 0.7
    "600": 0.8
    "900": 0.9

Calculation

The interval is calculated for each player individually.

Start Interval

At the game start or after a death respawn the interval is defined with the start value in seconds (here 10 sec).

Normal Interval

Otherwise, during the game, the interval is calculated according to the following formula: <intervals_by_team_amount> × <interval_factor_by_game_time>.

Interval by team amount

Here, you define the interval (in seconds) based on the team amount. The interval for the current team size is searched in the Config. If nothing is found, the interval for the next smaller team size is used.

If nothing was found from the current team size to 1, the default value is used.

Default value: "1": 20

Interval factor by game time

And here, you define the interval factor (floating point number) based on the current game time. The interval factor for the current game time is searched in the Config. If nothing is found, the interval factor for the next higher game time is used.

If nothing was found from the current playing time to the maximum playing time of the arena, the default value is used. The max game time is defined in the game_duration setting in the same configuration file. Note that the game_duration setting is defined in minutes.

Default value: "<current time>": 1