Skip to content

feat(lights): add dynamic vehicle headlight pointlight colors - #339

Open
CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:feat/lights-dynamic-headlight-pointlight-colors
Open

CanerKaraca23 wants to merge 1 commit into
user-grinch:mainfrom
CanerKaraca23:feat/lights-dynamic-headlight-pointlight-colors

Conversation

@CanerKaraca23

Copy link
Copy Markdown
Collaborator

Summary

  • Disables native hardcoded white pointlight calls (AddLight) in CVehicle::DoVehicleLights via 5-byte NOP patches at 0x6E27E6 and 0x6E28E7.
  • Updates HeadlightComponent::ProcessPointLights to register headlight pointlights whenever vehicle headlights are active, dynamically projecting the configured JSONC/dummy color and applying high-beam range multipliers (fHighBeamPointLightMul) when long lights are engaged.
  • Ensures all vehicle headlight lighting components (coronas, shadows, light beams, and pointlights) remain consistent in color and intensity across standard lighting and high-beam states.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant