Raised This Month: $12 Target: $400
 3% 

[CS:GO] Is it possible to force a players competitive color on server join?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dobby
New Member
Join Date: Jul 2017
Old 04-15-2019 , 20:17   [CS:GO] Is it possible to force a players competitive color on server join?
Reply With Quote #1

My team has a scrim server, and it gets a bit confusing when we're sometimes given random colors when we join the server. (The competitive colors; orange, yellow, blue, green, purple).

I was wondering if there is a script that would force a players color when they join based on their steam ID. I've looked everywhere and searched the API Reference, but I can't find anything.,
Dobby is offline
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 04-22-2019 , 05:15   Re: [CS:GO] Is it possible to force a players competitive color on server join?
Reply With Quote #2

That'd be a fun plugin to write, look for what offset defines the clients icon colour.
__________________
B3none is offline
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 04-22-2019 , 06:59   Re: [CS:GO] Is it possible to force a players competitive color on server join?
Reply With Quote #3

Looks like the offset used to set the clients colour is "m_iCompTeammateColor"

I've started work on this plugin:
https://github.com/b3none/compcolour.../compcolour.sp

It'd be nice if you could reach out to me on Discord: B3none #0575 so we can test the plugin and get it how you want it.
__________________

Last edited by B3none; 04-22-2019 at 08:21.
B3none is offline
B3none
AlliedModders Donor
Join Date: Oct 2016
Location: United Kingdom
Old 04-24-2019 , 18:36   Re: [CS:GO] Is it possible to force a players competitive color on server join?
Reply With Quote #4

It works!

https://github.com/b3none/compcolour.../compcolour.sp
__________________
B3none is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 08-07-2019 , 03:59   Re: [CS:GO] Is it possible to force a players competitive color on server join?
Reply With Quote #5

Possible to make it work for casual gamemode?
Indarello is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode