View previous topic :: View next topic |
Author |
Message |
Ch0wW Dominating!
Joined: 05 Feb 2013 Location: France
|
Posted: Thu Dec 26, 2013 11:40 pm Post subject: ACS: Disconnect called when out of lives (SURVIVAL) |
|
|
Ok, fairly easy thing to fix:
Requirements to reproduce it: TEST_ACS_DISCONNECT.wad
ACS Script used: http://pastebin.com/3nt7nLe6
GAMEMODE: Survival
So: here's the problem:
The ACS Script original behaviour ( written in this page) says this:
Quote: |
DISCONNECT World When a player disconnects from a multiplayer game
------------------------------------------
DISCONNECT
A DISCONNECT script must be declared with a single argument. ZDoom will pass the number of the disconnecting player into this variable. Because the player has already left the game by the time this script is called, no actions can be taken on that player. The script is executed by the world itself. |
However, they stipulate this too:
Quote: | Note: In Skulltag, DISCONNECT scripts are also executed when a player turns into a spectator. |
So, the problem is that when you die, you call DEATH and DISCONNECT (and THAT is the major problem) when you are OUT OF LIVES. on other ports (such as Zandronum), DISCONNECT only activates when you're MANUALLY spectating after joining ingame, by typing "spectate" in the console (so you will only call that DISCONNECT parameter).
As you are UNABLE to manually spectate, the "disconnect" script should be disabled, UNLESS there is a way to manually spectate after joining ingame. |
|
Back to top |
|
|
Zedek has entered the game!
Joined: 10 Mar 2013 Location: Tijuana, México
|
Posted: Sat Mar 15, 2014 10:47 pm Post subject: |
|
|
I second this, at least remove the posibility for a spectator to trigger the script on survival. |
|
Back to top |
|
|
UberGewei SuperAntler
Joined: 01 Sep 2010 Location: The Netherlands
|
Posted: Sun Jan 28, 2018 11:01 pm Post subject: |
|
|
As long as you have lives left: the death script is called, if you die in your last live: disconnect script is called.
ZD seems to handle this correctly.
https://zdoom.org/wiki/script_types#DISCONNECT |
|
Back to top |
|
|
AF-Domains.net Dark Messenger of IRC
Joined: 01 Jun 2002 Location: United Kingdom
|
Posted: Sun Jan 28, 2018 11:02 pm Post subject: |
|
|
Moving to Rejected. |
|
Back to top |
|
|
|