Page 1 of 1

ACS Clientside Sector_SetColor - doesn't do anything.

Posted: Sat Dec 06, 2014 7:06 pm
by RaveYard
I am trying to turn everything red and white when player dies.
But obviously, I need to change it just for one client (the one that died).
However Sector_SetColor doesn't do anything when I tried this on a server. :redface:
Also the "light_raisebyvalue" works without problem!

Here is top of the script

Code: Select all

script 752 enter clientside
{
	if(isTitlemap()) { terminate; }
	if(consoleplayerNumber() != playernumber()) { terminate; }
.. stuff ..
Here is the important part...

Code: Select all

... stuff ...
     if(GameType() == GAME_SINGLE_PLAYER || getCvar("survival") > 0) {
		for(int di = 0;di < 500;di++) {
			Light_RaiseByValue(di,170);
			Sector_SetColor(di,255,90,90,210);
		}
	}
} //end of script
I know desyncing the client and server is considered a sin worthy of eternal damnation, but the resulting effect from the sector_setcolor would be totally worth it :razz:
plz help!

RE: ACS Clientside Sector_SetColor - doesn't do anything.

Posted: Sat Dec 06, 2014 7:59 pm
by Klofkac
http://zandronum.com/tracker/view.php?id=1787
Too bad the tracker hasn't moved since.

RE: ACS Clientside Sector_SetColor - doesn't do anything.

Posted: Sat Dec 06, 2014 8:30 pm
by RaveYard
Oh no.... :cry:
Is there any alternative?

The only one I managed to figure out was to use the forbidden art of consolecommand with command "testcolor FF8888 45"
But the consolecommand is going to be totaly removed soon!

RE: ACS Clientside Sector_SetColor - doesn't do anything.

Posted: Sun Dec 07, 2014 4:54 pm
by Klofkac
I wouldn't rely on testcolor at all. It is blocked if sv_cheats is off.

RE: ACS Clientside Sector_SetColor - doesn't do anything.

Posted: Sun Dec 07, 2014 7:11 pm
by Watermelon
Someone should try to help Torr out in the tracker ticket if they want it fixed.