Skip to content

[WIP] Vehicle HUD teamcolor fix

When entering a vehicle, the HUD loses the team color.
As far as I understand, this is caused by the server turning the player to a spectator while in a vehicle.

This branch adds the new STAT_VEHICLESTAT_TEAM, which is used to determine the teamcolor while the player is in a vehicle.
However, there are different sets of team numbers, the server uses the deprecated(?) 5 (red) and 14 (blue),
the client uses 4 (red) and 13 (blue). As a result, my color chosing in view.qc is a bit dodgy.

Maybe you know of a better way to fix this?
For example, would it be possible to get the vehicle entity number on the client side, and pass it to GetPlayerColor()?

Merge request reports