This plugin generates an activation code for the warhead
How it works?
1. The round begins, the roles you set in the config will be able to use the .code command and receive the password to activate the warhead (others will not be able to)
2. To activate the warhead detonation, you need to go to the warhead activation terminal, unlock the button and enter the command .start 123456
3. If the code is correct, then the warhead will be activated, otherwise nothing will work
Peculiarities:
1. Any role that has not received access to the code still has the opportunity to activate it (by guessing the code or receiving it from someone)
2.After each detonation cancellation, you need to enter the activation code again
3.In the config you can edit the length of the code or even make it random
Config:
alpha_warhead_code:
is_enabled: true
debug: false
# Roles that will be able to have a code immediately after the round and recognize it using the .code command (RoleTypeId)
code_roles:
- NtfCaptain
# Len of code (-1 = random length)
code_len: -1
# Random length min inclusive (WORK ONLY WITH `code_len: -1`)
random_code_len_min: 4
# Random length max inclusive (WORK ONLY WITH `code_len: -1`)
random_code_len_max: 8
# Hint that will be shown when trying to activate a warhead without entering a code
enter_code_hint: 'Access denied! Please enter the code'
# Less than one argument command response (only .start command)
more_argument_command_response: 'The command must have more than one argument'
# Successfully command response
successfully_command_response: 'Successfully!'
# Warhead in progress command response (only .start command)
warhead_in_progress_command_response: 'Access denied! Warhead currently in progress'
# Incorrect code command response (only .start command)
incorrect_code_command_response: 'Access denied! IncorrectCode'
# Far from the warhead terminal command response (only .start command)
far_terminal_command_response: 'To start, go to the warhead terminal'
# The player cannot recognize the warhead code due to his role (only .code command)
player_role_cant_get_code_command_response: 'Your role does not allow you to receive the warhead code'
# Successfully received warhead code command response (%CODE% - warhead code) (only .code command)
successfully_get_warhead_code_command_response: 'Your code: %CODE%'
# Incorrect number of digits in warhead code (%CODELEN% - number of digits in warhead code) (only .start command)
incorrect_number_digits_command_response: 'Access denied! The code should be about %CODELEN% digits'
# Warhead detonated command response (only .start command)
warhead_detonated_command_response: 'Access denied! Warhead currently detonated!'
# If the player has not activated the warhead button using the card key command response (only .start command)
not_activated_key_card_command_response: 'You must activate the button using the 05 key card!'
# If warhead is disabled command response (only .start command)
warhead_disabled_command_response: 'Warhead must be enabled!'
Last update:
September 02, 2024
Published:
June 12, 2024
Category:
Languages:
Tags: