About Sniper Challenge
This plugin gives the possibility to trigger a timed events or an event between two server restart. The event will choose randomly a weapon category.
During the event, after the minimum category distance was achieved, the player will be on the leader board. The less attachment the weapon has, the players can earn extra percent points, what is count in the end, when the rewards are given. For example, if the first place worth 50 and the reward type is a Small Halloween Bag, and the player had no attachment on the weapon what he used, then he got a 100% extra point, what will double the price and he will get 100 Small Halloween Bag. Each additional attachment deduct ~33%. So for example, if the player has a Flashlight, a Scope and a Silencer, he will get 0% extra point in the end. (With the attachment-less weapon, automatically 100% bonus given)
If the Players not gain points, they will be not listed on the Scoreboard. Rewards can be claimed after the event(s) are over.
First event will start after 5 min as soon as the plugin loaded in.
The plugin have several protection against wrong configuration.
- If no weapon category is enabled, no event will started and message will be written to the server console.
- If no reward or invalid reward number set in the configuration, list of rewards will be cleared, 0 and 1 will be added as default (see the meaning below).
- If ServerRewards plugin not installed, this type of reward will be not selected.
Configuration
Default configuration:
{
"minimum_hour_before_reset": 12,
"event_duration_in_hour": 6,
"event_reward_type": "0, 1, 2",
"event_top1_reward": 50,
"event_top2_reward": 40,
"event_top3_reward": 30,
"rp_reward_multiplier": 10,
"economics_reward_multiplier" : 10.0,
"additional_winners_reward": 15,
"max_winners": 10,
"event_based_challenge": false,
"reminder_enabled": true,
"reminder_time_in_minute": 30,
"disable_pvp" = false,
"event_based_delay" = 0,
"first_event_delay_in_min" = 5,
"enable_extra_point_feature" = true,
"SC_UIPanel_Color": "0.39 0.39 0.39 0.8",
"SC_Player_Color": "0.76 0.90 0.29 1",
"SC_Description_Color": "0.76 0.90 0.29 1",
"SC_Description_Color_Img": "0.39 0.39 0.39 0.9",
"SC_Distance_Color": "0.76 0.90 0.29 1",
"SC_Weapon_Color": "0.76 0.90 0.29 1",
"SC_Extra_point_Color": "0.76 0.90 0.29 1",
"SC_Title_Color": "0.76 0.90 0.29 1",
"SC_CloseButton_Color": "0.5 0.5 0.5 1",
"SC_Close_Color": "0.76 0.90 0.29 1",
"rifle_weapon_cat": [
"lr300.entity",
"l96.entity",
"m39.entity",
"semi_auto_rifle.entity",
"ak47u.entity",
"bolt_rifle.entity"
],
"rifle_weapon_cat_enabled": true,
"rifle_weapon_cat_min_dist": 100.0,
"smg_weapon_cat": [
"smg.entity",
"thompson.entity",
"mp5.entity",
"m249.entity"
],
"smg_weapon_cat_enabled": true,
"smg_weapon_cat_min_dist": 100.0,
"shotgun_weapon_cat": [
"double_shotgun.entity",
"shotgun_waterpipe.entity",
"shotgun_pump.entity",
"spas12.entity"
],
"shotgun_weapon_cat_enabled": true,
"shotgun_weapon_cat_min_dist": 100.0,
"pistol_weapon_cat": [
"pistol_eoka.entity",
"m92.entity",
"python.entity",
"pistol_revolver.entity",
"nailgun.entity",
"pistol_semiauto.entity"
],
"pistol_weapon_cat_enabled": true,
"pistol_weapon_cat_min_dist": 100.0,
"bow_weapon_cat": [
"bow_hunting.entity",
"compound_bow.entity",
"crossbow.entity"
],
"bow_weapon_cat_enabled": true,
"bow_weapon_cat_min_dist": 50.0,
}
Definition of configurations:
event_based_challenge - If it is set to false, then a server start to server restart long event will be active, and "minimum_hour_before_reset" hour need to be between the two to give reward to the players (it is for avoid too many reward in case of often server restarts)
minimum_hour_before_reset - If "event_based_challenge" is set to false, then a server start to server restart long event will be active, and "minimum_hour_before_reset" hour need to be between the two to give reward to the players (it is for avoid too many reward in case of often server restarts)
event_duration_in_hour - If event_based_challenge set to true, then the given hour long events will be started, and as soon as the event is over, the next X hour long will started
event_reward_type - 0 - (Bronze Easter Egg - item ID: 844440409) 1 - ( Small Halloween Bag item ID: 1319617282) 2 - RP from [ServerRewards plugin if installed, if not, it can not be choosen even if in the list](https://umod.org/plugins/server-rewards) 3 - Economics point from Economics plugin [if installed, if not, it can not be choosen even if in the list](https://umod.org/plugins/economics)
max_winners - maximum number of rewarded player, after the first 3 place, the additional_winners_reward amount will be given
event_top1_reward - Amount of choosen item/RP(base for a the rp_reward_multiplier below) for the first place
event_top2_reward - Amount of choosen item/RP(base for a the rp_reward_multiplier below) for the second place
event_top3_reward - Amount of choosen item/RP(base for a the rp_reward_multiplier below) for the third place
additional_winners_reward - - Amount of choosen item/RP(base for a the rp_reward_multiplier below) for the rest of the place until maximum winner is reached
rp_reward_multiplier - ServerRewards multiplier for the RP reward, if the event is generated to give RP as a reward
economics_reward_multiplier - Economics multiplier for the Economics reward, if the event is generated to give Economics point as a reward
reminder_enabled - enable/disable the repeated reminder to the players with unclaimed reward
reminder_time_in_minute - reminder time in minute format
enable_extra_point_feature - Disable the extra point feature
event_based_delay - If the event based configuration is set, it can be now configured, what time shall be between two event (By default as soon as the event is over a new immediately start)
first_event_delay_in_min - customize when the first event after server start to start instead of the originally introduced 5 min
disable_pvp - disable player kills (to avoid bypass and exploit long kills with other friendly players, also added Friends, Clan and team support to discard the friendly fire even if the pvp enabled)
****_weapon_cat - different weapon categories, the listed weapons will be considered as an allowed weapons for the selected challenge
****_weapon_cat_enabled - if it is set to true, the category can selected as challenge
****_weapon_cat_min_dist - minimum distance for the kill with the selected category weapons to earn place
Colors: the first 3 number is the corresponding RGB color number, but between 0-1 with float numbers. So if you want to write an RGB, where the RED is 210, then the first number in the config will be 210/255=0.82. The last number is the opacity 0 is invisible, 1 the maximum
Commands
/sc - Show information about Sniper Challenges /sc info - Show information about Sniper Challenges /cch show - Show currently Active Challenge Scoreboard /cch claim - Claim rewards after event(s)
Localization
English language file generated by default, texts supported by the language files.
Logging
Reported winner and claimed rewards stored in the oxide/logs folder.