About Kill Heli Vote
NOTE: Version 2.0.0 is not backwards compatible with 1.x - please backup your config file!
About Kill Heli Vote
This plugin allows your players to kill all Patrol Helicopters that have spawned, by simply voting in chat!
Snaplatack Note: I originally made this plugin for my servers, but haven't seen anything similar that was already published. So I figured I would release it here
HunterZ Note: Version 2.x is my own rewrite of another rewrite started by Snaplatack, which adds new features and addresses some issues I encountered in my own use.
Optional Dependencies
Features
- Kill all eligible Patrol Helicopters via a vote system
- Kill all eligible Patrol Helicopters via an Admin command
- Ignore Patrol Helicopters called by Heli Signals and/or while protected by Loot Defender
- Ban players from voting or resetting votes
- Reset votes on damage to Patrol Helicopters from a non-banned player
- Customize commands, permissions, and messages
Permissions
- killhelivote.use - controls whether voting command can be used by a player/group
- killhelivote.admin - controls whether kill command can be used by a player/group
- killhelivote.banned - controls whether voting command and damage reset features should be locked out for a player/group
Notes:
- The names of these can be overridden via the config file
- The plugin will react to permission changes without a reload
Commands
- /voteheli - record vote towards killing all eligible active helis
- /killhelis - kills all eligible helis on the map, bypassing any votes
Notes:
- These are the default command names, which can be overridden via the config file
Configuration
Plugin Settings
- Frequency of vote announcements [in seconds] - how often voting message/toast should be shown
- Percentage of votes required [0 - 100] - percentage of votes by eligible voters required to kill helis
- Ignore helis spawned by Heli Signals - whether helis called by Heli Signals should be ignored by this plugin
- Ignore helis locked by Loot Defender - whether helis should be ignored by this plugin while protected by Loot Defender
- Reset vote when a heli takes damage - whether to reset votes when any kill-eligible heli is attacked by a player who is not banned from voting
Commands & Permissions
This section allows you to customize command and permission names used by the plugin.
Messages
- Steam ID to use for the image for messages [0 = default] - set this to the SteamID of an account whose profile picture you want to use for chat messages produced by this plugin
- Use chat messages - whether to show a given message via in-game chat
- Use native toast messages - whether to show a given message via toasts (popup banners)
- Toast type - style of toast to use (0 => Blue Normal, 1 => Red Normal, 2 => Blue Long, 3 => Blue Short, 4 => Server Event, 5 => Error)
Notes:
- Chat and toast messages can be enabled at the same time if desired
Credits
- snaplatack - original author
- nivex - (2.x) Loot Defender coordination
- zeeuss - (1.x) finding objects more efficiently on reload
- mr01sam - (1.x) helping with some Init procedures
- ViolationHandler - (1.x) code cleanup and improved code efficiency
