Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Monster truck body lighting flickers between bright and dim when a player pushes the truck
ped-vs-wheel collisions write extreme lighting values (
0x00or0xFF) to the per-wheel lighting bytes, which alternate with the ground value (0xBB) every frame - the visible flicker; the engine also resets the wheel bytes to a dim default (0x48) on respawn, so the body starts dark until the first ground collisionFix: two hooks
CMonsterTruck::ProcessEntityCollision; skip writing0x00and0xFFto the wheel lighting byte, so only real ground/surface lighting (0x40-0xE0) updates itCVehicle::PreRender; clamp the finalm_fLightingto a minimum of0.36(0xBBasphalt) for monster trucks, so the body is never darker than the ground it stands on, from the moment it spawnsBoth hooks are scoped to monster trucks (
444,556,557)Closes #5168.
Before ->
2026-09-14.05-47-59.mp4
After ->
2026-09-14.05-44-01.mp4
Checklist