Have you ever had problem at night, that you can't find your lightswitch or not empty beer case. Here is my first public and _very_ modest plugin to help you.
First of all. I wan't to give credits to @Roman266 for creating Rally Lights mod i modified to make it for player. And also @N0tiC for teaching how to tell mod how to find player
Default hotkey: Numpad Minus (-) (Can be Changed)
Changelog:
1.1: Remade the logic, how mod finds players head. Light should no longer be in a compost. Shrinked code a little bit (~4 lines )
1.0: Out of beta, Lamp now works like a headlight and follow head movements
1.0b: Headlamp is very dim and is only mean't to help you find light switches etc. If you think it's too dim, tell me and i'll look at it. I don't know how to make light follow players head, so right now light only follows horizontal directions. Also light stays at same position (doesn't move if you crouch).
If you wan't to play with the code. Feel free to download it from my github !
Source code:
https://github.com/Vikanen/Headlamp
Original RallyLights mod from @Roman266
http://www.racedepartment.com/downloads/plugin-rally-lights.17195/