ACS Clientside Sector_SetColor - doesn't do anything.

Discuss all aspects related to modding Zandronum here.
Post Reply
RaveYard
ย 
Posts: 52
Joined: Wed Jun 27, 2012 1:44 pm

ACS Clientside Sector_SetColor - doesn't do anything.

#1

Post by RaveYard » Sat Dec 06, 2014 7:06 pm

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!
My Projects:
[Horror] Ghosted 2 - version 2 - v2.1.0 : Here!

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

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

#2

Post by Klofkac » Sat Dec 06, 2014 7:59 pm

http://zandronum.com/tracker/view.php?id=1787
Too bad the tracker hasn't moved since.
๐•‚๐•๐• ๐•—๐•œ๐•’๐•”

RaveYard
ย 
Posts: 52
Joined: Wed Jun 27, 2012 1:44 pm

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

#3

Post by RaveYard » Sat Dec 06, 2014 8:30 pm

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!
My Projects:
[Horror] Ghosted 2 - version 2 - v2.1.0 : Here!

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

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

#4

Post by Klofkac » Sun Dec 07, 2014 4:54 pm

I wouldn't rely on testcolor at all. It is blocked if sv_cheats is off.
๐•‚๐•๐• ๐•—๐•œ๐•’๐•”

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

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

#5

Post by Watermelon » Sun Dec 07, 2014 7:11 pm

Someone should try to help Torr out in the tracker ticket if they want it fixed.

Post Reply