Quick SERVER concommands
[lua] concommand.Add(“dev_setcolor”, function( ply, cmd, args )
ply:SetColor( Color( tonumber( args[ 1 ] ), tonumber( args[ 2 ] ), tonumber( args[ 3 ] ), tonumber( args[ 4 ] ) ) )
concommand.Add(“dev_setpcolor”, function( ply, cmd, args )
ply:SetPlayerColor( Vector( tonumber( args[ 1 ] ) / 255, tonumber( args[ 2 ] ) / 255, tonumber( args[ 3 ] ) / 255, tonumber( args[ 4 ] ) / 255 ) )
I had mixed results; Interesting…
So, when I SetPlayerColor to Blue, the admin-on-duty color, and then set the player color. Some models work, others only do a small portion. On some that do the entire model, it sometimes flickers.
Sometimes, when setting the color as admin, it removes it; this may be part of my admin coloration system, or it could be part of the halo system issue.
There seems to be a bug, though, with SetColor. I see the OPs point. Sometimes it works, sometimes it overlays on top of SetPlayerColor even on a model that didn’t work with it before, etc etc. Sometimes just running or hopping around it flickers. It’s a type of overlay / stencil maybe. Maybe we can duplicate it in code without SetColor being needed.
I won’t post the imgs, but here are links.
When admin mode is enabled, the color is reset the blue. When it’s disabled, it’s set to the previous color, if set, or blue as it’s the admin character; which is “always on duty”/ halo is the “look at me”.
Barney: Default color, set color red – ONLY FACE: http://cloud-2.steampowered.com/ugc/505826534893988387/63900D398BE0787EF036DBFD72A99AA1FE4DE03E/
Male medic random number, set color red – entire body!: http://cloud-2.steampowered.com/ugc/505826534893986572/F69B6340A3AD614FFE7EB4CBB3DF7384B5CC2430/
Male medic, standard color – http://cloud-4.steampowered.com/ugc/505826534893982576/D6DFA2F1086F7FA4296E397D7BEBAD344E488DCD/
Breen, standard idle blue admin color: http://cloud-4.steampowered.com/ugc/505826534893977563/DE8ED8E226132D43801C3929DC0969A64EE04A6C/
Breen, set color red – entire body it seems as though it overlayed the blue: http://cloud-2.steampowered.com/ugc/505826534893979903/A56B35696A55E09B01A9F58694D309237174B3BA/
Edit: Added player color vector; When I color Breen player color white, then apply normal SetColor it works fine.
Still same issue; some models play nicely; others don’t.