View previous topic :: View next topic |
Author |
Message |
Krawa There is a limit
Joined: 23 Nov 2008 Location: #SDA
|
Posted: Mon Aug 31, 2015 7:06 pm Post subject: Demo map Remote Execution, ZD_rand, Named Scripts, NetMode |
|
|
Hi folks,
Here's a demo map with new ZD features (1.10b04 - 1.10b06):
Download: remote_execution_demo4.wad |
|
Back to top |
|
|
Body-Guard Unstoppable!
Joined: 08 Jan 2006 Location: Hungary
|
Posted: Tue Sep 01, 2015 12:49 pm Post subject: |
|
|
hi,
nice, though I have a suggestion:
to have every client run the clientside script, instead of putting the remote execution in a restarting open script, do the following: pack the Client_Execute into an enter script, and instead -1, use ConsolePlayerNumber(), so the script will run for each player independently once they spawn. |
|
Back to top |
|
|
Krawa There is a limit
Joined: 23 Nov 2008 Location: #SDA
|
Posted: Tue Sep 01, 2015 7:13 pm Post subject: |
|
|
Hi Body-Guard, thanks.
Yes, that would be possible too, but the behaviour would be a bit different:
Fireball on the clients would start to spawn when a player enter the game (join) and (not joined) spectators wouldn't see it.
You also could check and store the information in an array in an open script which player number is on the server and start the client script once, but I want to keep the demo simple. Also don't forget leaving players... |
|
Back to top |
|
|
EarthQuake Wicked Sick!
Joined: 02 Apr 2004 Location: Athens, Ohio. Dieblieber gonna getcha!
|
Posted: Wed Sep 09, 2015 10:24 pm Post subject: |
|
|
So for remote execution scripts, the "target client" parameter corresponds to the same values as returned by PlayerNumber()? |
|
Back to top |
|
|
Krawa There is a limit
Joined: 23 Nov 2008 Location: #SDA
|
Posted: Sat Sep 12, 2015 6:57 pm Post subject: |
|
|
To get the number of the player use PlayerNumber().
Use ConsolePlayerNumber() if you are in a client script.
ConsolePlayerNumber_demo2.wad
To test: start a server, add bots and join the server. |
|
Back to top |
|
|
|