View Single Post
Balimbanana
Member
Join Date: Jan 2017
Old 06-11-2020 , 22:21   Re: m_iCompTeammateColor
Reply With Quote #4

It looks like it is part of the Player Resource, so setting it on the client most likely wouldn't work.
From the compcolour plugin:
Code:
...
int offset = FindSendPropInfo("CCSPlayerResource", "m_iCompTeammateColor");
...
SetEntDataArray(entity, offset, player_colours, MAXPLAYERS + 1, _, true);
The other reason it might be giving a property not found is because it might be a Prop_Data. Although modifying properties that are managed by the player resource entity usually either has no actual effect, or is reset on next frame.

Last edited by Balimbanana; 06-11-2020 at 22:59.
Balimbanana is offline