Skip to content

refactor: move vehicle light hooks to CMultiplayerSA_VehicleLights.cpp - #5216

Open
MohabCodeX wants to merge 2 commits into
multitheftauto:masterfrom
MohabCodeX:refactor/move-vehicle-lights-hooks
Open

refactor: move vehicle light hooks to CMultiplayerSA_VehicleLights.cpp#5216
MohabCodeX wants to merge 2 commits into
multitheftauto:masterfrom
MohabCodeX:refactor/move-vehicle-lights-hooks

Conversation

@MohabCodeX

Copy link
Copy Markdown
Contributor

As part of the ongoing refactoring to modularize legacy hooks from CMultiplayerSA.cpp, this PR moves vehicle headlight, beam, corona, reflection hooks, and related memory patches to CMultiplayerSA_VehicleLights.cpp.

test:

  1. Start the test resource: start vehicle_lights_test
  2. Run /testlights 255 0 255 to spawn vehicles with custom headlight colors at midnight.
  3. Run /testmotorcycle and /testtwinlights to verify single and twin headlight shadow reflections on the ground.
  4. Run /testengineoff to verify headlights remain active when the engine is turned off.
  5. Run /setlightcolor 0 255 255 to change headlight colors.

vehicle_lights_test.zip

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