-
Notifications
You must be signed in to change notification settings - Fork 9
Equipment Interval
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:
custom_start_interval: 10
reset_after_respawn: true
custom_respawn_interval: 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
The interval is calculated for each player individually:
At the game start, the interval is defined with the custom_start_interval
value in seconds (here 10 sec).
Set -1
to use the Basic Interval.
With the reset_after_respawn
option, you can activate the interval reset with the death respawn. The interval is then set to the Custom Respawn Interval or the Basic Interval, dependent on your other settings. Otherwise, the interval continues to count down from the same value as before death.
At the death respawn, the interval is defined with the custom_respawn_interval
value in seconds (here 10 sec).
Set -1
to use the Basic Interval.
Otherwise, during the game, the interval is calculated according to the following formula:
<intervals_by_team_amount> × <interval_factor_by_game_time>
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 (when nothing is defined): "1": 20
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 (when nothing is defined): "<current time>": 1.0