[PLUGIN] Headlamp

[PLUGIN] Headlamp 1.2

Login or Register an account to download this content
20180218153755_1.jpg
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 :D)

1.0: Out of beta, Lamp now works like a headlight and follow head movements :p

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/
  • 20180218153739_1.jpg
    20180218153739_1.jpg
    209 KB · Views: 3,636

Latest updates

  1. Changed the way how mod searches for player (AGAIN!)

    People had problems with 1.1 build that nothing happened after pressing hotkey. I didn't manage...
  2. Player is NOT in a compost

    I don't know how i managed to mess up such an easy thing, or how did it work before. But...
  3. Out of beta

    Light now works as wanted

Latest reviews

It works when the game first loads...But after save and quit to main menu then continue it no longer works.
Nice Work Thx !
It worked one instance and never again, and I don't feel like going all the way back home just to see if there's a light over the compost or w/e.
Works for quite some time and gives up. I can't turn on the light anymore after a few ten minutes
Worked great, but now it doesn't. No errors in the console though. It was epic! I love this mod.
Vikanen
Vikanen
Please try newest update. Remove "Headlamp" folder from Mod/Config and try rebinding hotkey to another button. Did you install mods before headlamp stopped working?
it doesent work anymore i don't have any errors in the loader
sorry for my enlish
Vikanen
Vikanen
Hm... I'll have to look at that again at some point
Does not work, press nothing happens
Vikanen
Vikanen
Could you check do you have any errors in console? And also try binding hotkey to another button
For Some Reason, the light is coming from the compost. Not sure if another mod is causing this or if it is the experimental branch.
Very useful, I can now see during night!
~ Thanks for the credits :)
Vikanen
Vikanen
Glad that it was useful. You can thank yourself. Since i'm beginner with coding, i wouldn't be able to manage finding player with delay myself
good ic fak...g good

Latest News

Author
Vikanen
Downloads
2,557
File size
2.2 KB
Views
9,519
First release
Last update
User rating
3.80 star(s) 10 ratings

More mods from Vikanen

Are you buying car setups?

  • Yes

  • No


Results are only viewable after voting.
Back
Top