About This File
Allows players to activate Headlight (Miner's Hat) without taking up any wearable slots, and does not conflict with any headwear.
This is useful for having better vision at night without compromising armor or taking off hazmat suit, especially when farming ore/wood.
Auto Equip
- You can define whether you would the headlight to auto equip at Sunset and unequip at Sunrise by setting default state to NightOnly, and define game times in config.
- If set to Always instead, it will always equip a headlight to players with permission (light will be turned off, they can turn it on/off like any other worn miner's hat while equipped).
Permissions
headlight.use
Chat Commands
/headlight - Shows available commands (can be changed in config)
Console Commands
giveheadlight %steamid% - Equips a headlight on a target player
headlight toggle - For easier key binding (e.g. bind p headlight toggle)
Config
{ "Command": "headlight", "Headlight Skin ID": 0, "Auto Equip Settings": { "Default State (Always|NightOnly|Off)": "NightOnly" }, "Night Time Settings": { "Automatically determine night time (via in-game sky)": true, "Sunset InGame Time (00:00)": "22:00", "Sunrise InGame Time (00:00)": "07:00" }, "Alert Settings": { "Send in Chat": false, "Send as Game Tip": true }, "Version": { "Major": 1, "Minor": 1, "Patch": 3 } }
Edited by beee
What's New in Version 1.1.3 See changelog
Released
- Fix for conflict with corpse restore plugins by adding a 2 second delay
- Added auto restore for altered headlight occupying the custom headlight slot
v1.1.2
- Removed reliance on item skin to avoid interference with skin plugins
- Added "Headlight Skin ID" to config, default 0
- Added "Automatically determine night time (via in-game sky)" to config, enabled by default
- Code optimizations and cleanup
License
© Copyright 2024-2025 beee
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This area is for discussion and questions. Please use the support area for reporting issues or getting help.
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now