Arma 3
213 ratings
Headlamps by Vestarr
2
3
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
10.001 KB
9 Jun, 2021 @ 2:30pm
20 Jun, 2021 @ 9:40am
3 Change Notes ( view )

Subscribe to download
Headlamps by Vestarr

Description
This mod is obviously heavily inspired by MrSanchez's Headlamps, which have been around for ages.
Link: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=930264602

I personally love that mod, but I also thought that it could use a small update - recent updates that were done to the game engine allowed for a rewrite and generally to make it super lightweight, so it's basically a simplified version of it.
I also would like to make the headlamps work with BettIR and generally IR lights, which might come in the future.

Features:
- Toggle on/off with a keybind (Shift + N)
- Three light colors in moderate brightness (Ctrl + N)
- Easily extendible, see the section below
- Supports vanilla Enhanced Helmets and Light Enhanced Helmets

Known bugs:
- Headlamp persists after changing headgear
- Headlamp doesnt always follow the freelook - this is because it actually follows your head; In Arma, freelook relies on the eyes as opposed to the head rotation
- Probably laggy in vehicles, to be fixed at some point
- Offsets are experimental and not very precise
Logic is very basic so there might be extra bugs around it

Adding support for other assets/mods
There's two ways to achieve this.

Firstly, there is a class called "Headlamps_Presets" which includes available presets for this headlamp. Each preset allows you to set the color cycle and the offset in relation to the head of the player.
Currently, there are three presets - Headlamps_Preset_Full (should be just centered somewhere on the forehead), Headlamps_Preset_Helmet_Surefire_HL1_Right (HL1 mounted on the right ear protector), Headlamps_Preset_Helmet_Surefire_HL1_Left (same but mirrored), Headlamps_Preset_Helmet_Surefire_HL1_Left_ARC (HL1 mounted on the ARC rail, which is slightly higher than the Peltor earpiece).
Headlamps_Preset_Helmet_Surefire_HL1_Right_ARC (same but mirrored)

If you want to set it through config, you have to set a flag Headlamps_Preset=NAME_OF_THE_PRESET in your headgear. For example, for the light helmet, it is:
class H_HelmetSpecB : H_HelmetB_plain_mcamo { Headlamps_Preset=Headlamps_Preset_Helmet_Surefire_HL1_Left; };

You can also add it on the mission-level, if you want quick results.
In your init.sqf, run
Headlamps_ExtraCompatibleHeadwear pushBack ['MyCoolHeadgear', 'PRESET_NAME'];

so for example, for VSM OpsCore 2 which has a headlamp to the left on the ARC rail:
Headlamps_ExtraCompatibleHeadwear pushBack ['VSM_OGA_OD_OPS', 'Headlamps_Preset_Helmet_Surefire_HL1_Left_ARC'];

SINCE UPDATE v0.2 YOU CAN USE CBA SETTINGS FOR THAT!
your CBA compatibility setting is an array of items which should have the same format as above. Example:
[['VSM_OGA_OD_OPS', 'Headlamps_Preset_Helmet_Surefire_HL1_Right_ARC'], ['VSM_OGA_2_OD_OPS', 'Headlamps_Preset_Helmet_Surefire_HL1_Left_ARC']]

Source Code
https://github.com/wik-z/arma-headlamps

Credits
MrSanchez for the idea and first solution on the market
Bohemia Interactive for actually upgrading the scripting commands to allow it to be simpler than ever
62 Comments
HBAOplus 6 May @ 3:54am 
I test again with these strings in CBA compatibility setting, still not work.:steamfacepalm:

[['H_Bandanna_blu', 'Headlamps_Preset_Helmet_Surefire_HL1_Right_ARC'], ['H_Beret_02', 'Headlamps_Preset_Helmet_Surefire_HL1_Left_ARC']]

https://community.bistudio.com/wiki/Arma_3:_CfgWeapons_Equipment
TMA-1701 1 Mar @ 2:31am 
Puotek: 1. Yes, there is an option to enable headlamps with no headwear requirement.
2. No, the map will be dark, but the lamp itself works

My headlamps point to a close spot on the ground, which is not very useful. I guess it is working as intended?
Puotek 2 Feb, 2024 @ 4:34pm 
Is it compatible with ACE? Can you use the headlamp as a flashlight on the map when using ACE?
Puotek 2 Feb, 2024 @ 4:31pm 
Can you somehow make all headwear have a headlamp? Like add headlamps to all headwear instead of adding each and every single headwear to the list.
HBAOplus 7 Nov, 2023 @ 11:35pm 
It's wired the CBA compatibility setting not working
[['VSM_OGA_OD_OPS', 'Headlamps_Preset_Helmet_Surefire_HL1_Right_ARC'], ['VSM_OGA_2_OD_OPS', 'Headlamps_Preset_Helmet_Surefire_HL1_Left_ARC']]
818 27 Sep, 2023 @ 9:05am 
could you tell me where you add this stuff into the CBA setting? i found the file in user config in the CBA mod folder, but after i added it, it didnt work :(
Woods 20 Jun, 2023 @ 5:55pm 
Hello Vestarr sent you a friend request on steam. Just trying to reach out for help with another mod making the vehicle lights IR instead of normal visible
Dante from Devil May Cry™ 14 Nov, 2022 @ 5:13am 
Is there a way to have the lamp lights more centred? Currently they kind of go off to one side.
RAWR XD 1 Sep, 2022 @ 9:07am 
Are there still plans to add IT light to support realistic Night Vision?
HBAOplus 15 Jul, 2022 @ 7:07pm 
Hi, does someone good enough to share some classnames in CBA compatibility setting to make RHS/CUP/UPS helmets compatible?