Skip to content

Fix #5177 different colors for /showcol for clientsided and serverside collisions - #5253

Open
PlatinMTA wants to merge 2 commits into
multitheftauto:masterfrom
PlatinMTA:fix/5177-showcol-clientside-shades
Open

Fix #5177 different colors for /showcol for clientsided and serverside collisions#5253
PlatinMTA wants to merge 2 commits into
multitheftauto:masterfrom
PlatinMTA:fix/5177-showcol-clientside-shades

Conversation

@PlatinMTA

Copy link
Copy Markdown
Contributor

Summary

Adds CClientColShape::GetDebugColor, which takes the base color of the colshape debug render and makes it lighter if the colshape is owned by the client.

mta-screen_2026-08-20_17-21-19

Motivation

Colshape debug rendering used one fixed color per shape type, so there was no way to tell serverside shapes from clientside ones.
Closes #5177

Test plan

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

Colshape debug rendering used one fixed color per shape type, so there
was no way to tell serverside shapes from clientside ones.

Add CClientColShape::GetDebugColor, which keeps the shape type color for
serverside shapes and returns a lighter shade of it for clientside ones.
Shapes owned by a marker or pickup follow the side of the owning element,
since their own element ID is always clientside.

Closes multitheftauto#5177
No need to check for marker or pickups they never get rendered in debug mode, smh
@FileEX FileEX added the enhancement New feature or request label Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/showcol: show slightly different colors for clientside vs serverside collisions

2 participants