ZDaemon Forum Index ZDaemon
Client/Server DOOM
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ACS: Disconnect called when out of lives (SURVIVAL)

 
Post new topic   Reply to topic    ZDaemon Forum Index -> Rejected Bugs
View previous topic :: View next topic  
Author Message
Ch0wW
Dominating!


Joined: 05 Feb 2013
Location: France

PostPosted: Thu Dec 26, 2013 11:40 pm    Post subject: ACS: Disconnect called when out of lives (SURVIVAL) Reply with quote

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
View user's profile Send private message Visit poster's website
Zedek
has entered the game!


Joined: 10 Mar 2013
Location: Tijuana, México

PostPosted: Sat Mar 15, 2014 10:47 pm    Post subject: Reply with quote

I second this, at least remove the posibility for a spectator to trigger the script on survival.
Back to top
View user's profile Send private message
UberGewei
SuperAntler


Joined: 01 Sep 2010
Location: The Netherlands

PostPosted: Sun Jan 28, 2018 11:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
AF-Domains.net
Dark Messenger of IRC


Joined: 01 Jun 2002
Location: United Kingdom

PostPosted: Sun Jan 28, 2018 11:02 pm    Post subject: Reply with quote

Moving to Rejected.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    ZDaemon Forum Index -> Rejected Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group