Sector_Setcolor doesn´t work online on clientside

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
ibm5155
Addicted to Zandronum
Posts: 1641
Joined: Tue Jun 05, 2012 9:32 pm
Location: Somewhere, over the rainbow

Sector_Setcolor doesn´t work online on clientside

#1

Post by ibm5155 » Wed May 01, 2013 8:24 pm

So I was trying to do an effect when a player was dead by a specific monster, and only he would see the map with different color, so i did something like that
script x (void) clientside
{
if(ConsolePlayerNumber() != PlayerNumber()) Terminate;
Sector_Setcolor(14,0,133,0);
}

But the problem is sector_setcolor doesn´t work online =/
Is there a way to do it work?
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!

<this post is proof of "Decline">

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Sector_Setcolor doesn´t work online on clientside

#2

Post by Torr Samaho » Thu May 02, 2013 5:38 pm

I think that deliberately desyncing sector properties between client and server is not a good idea. How about giving the player a powerup that changes the player's colormap?

User avatar
ibm5155
Addicted to Zandronum
Posts: 1641
Joined: Tue Jun 05, 2012 9:32 pm
Location: Somewhere, over the rainbow

RE: Sector_Setcolor doesn´t work online on clientside

#3

Post by ibm5155 » Thu May 02, 2013 7:14 pm

Hmm It´s another method :) I´ll try this then.
The idea was when the player died by the white face ghoul he would be teleported to a dead room, and all the outside area would have a red light color.
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!

<this post is proof of "Decline">

Post Reply