Skip to content

About

Cyberpunk 2077 mod: headlights that switch on and off by themselves at night, in bad weather and in tunnels

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Auto Headlights

A Cyberpunk 2077 redscript mod that switches vehicle headlights on and off based on ambient light.

Features

  • Night: lights on between configurable in-game hours (default 19:00 to 06:00).
  • Bad weather: rain, fog, pollution, sandstorms and heavy clouds count as dark.
  • Tunnels and cover: detects roofs, garages and overpasses, with its own delay so short overpasses don't flicker the lights.
  • Adjustable ceiling height: set how far above the vehicle a roof still counts as cover (default 10 m), so high overpasses and elevated highways don't trigger the lights.
  • Motorcycles: headlight stays on whenever the engine is running, day or night (can be turned off in settings).
  • Low beams only: high beams are left alone if you turn them on yourself.
  • Manual override: using your headlight key pauses auto mode for the rest of the drive.
  • Pause / resume key: configurable key, with an optional Shift, Ctrl or Alt modifier.
  • Mod Settings menu: every option can be changed in game.
  • Translatable: on-screen messages go through Codeware's localization system.
  • Standalone: works on its own or alongside Vehicle Systems Simulation (VSS), and overrides VSS's force-on-at-entry behaviour without modifying it.
  • Enhanced Vehicle System: works alongside EVS, including its headlight flash. Nothing extra to install.

Requirements

Installation

Copy the r6 folder into your Cyberpunk 2077 install folder, so the scripts end up at:

Cyberpunk 2077\r6\scripts\AutoHeadlights\AutoHeadlights.reds
Cyberpunk 2077\r6\scripts\AutoHeadlights\AutoHeadlightsLocalization.reds

Settings

In game: Settings → Mods → Auto Headlights.

Category Setting Default
General Enable auto headlights On
General Pause / resume key J
General Pause / resume modifier None
General Headlight key pauses auto mode On
General Show notifications On
General Motorcycle headlights always on On
Darkness detection Lights on from (hour) 19
Darkness detection Lights off from (hour) 6
Darkness detection Bad weather turns lights on On
Darkness detection Tunnels turn lights on On
Darkness detection Tunnel ceiling height (m) 10
Timing Night / weather delay (s) 1.0
Timing Tunnel delay (s) 3.0
Timing Lights off delay (s) 4.0

Translations

The mod's on-screen messages are registered with Codeware's localization system, so they can be translated without touching the main script. The English text and a how-to are in AutoHeadlightsLocalization.reds; to add a language, copy the English class, translate it and return it for that language. Translations are welcome. The Mod Settings page is English only.

Notes

  • With Enhanced Vehicle System installed, turn off EVS's headlights time sync so only one mod decides when the lights come on.
  • Other headlight mods may conflict.

Credits

License

Released under the MIT License. You are free to use, modify and redistribute this code, including in your own mods, as long as the copyright notice is kept.

About

Cyberpunk 2077 mod: headlights that switch on and off by themselves at night, in bad weather and in tunnels

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages