MantisBT - Zandronum
View Issue Details
0002117Zandronum[All Projects] Bugpublic2015-03-06 01:092018-09-30 23:40
StrikerMan780 
Edward-san 
highmajoralways
closedfixed 
MicrosoftWindowsXP/Vista/7
2.0-beta 
1.41.4 
0002117: ACS Function "KickFromGame" doesn't kick offline.
Since ConsoleCommand is being phased out, I need a new method to force players to spectate in my mod if they select a player class that is blocked by the server admin. I figured KickFromGame would do this, but it appears that it doesn't work in Deathmatch, which isn't good.
This ACS Script should work:

#include "zcommon.acs"
script 1 ENTER
{
    KickFromGame(PlayerNumber(), "You should be kicked!");
}

But, in Deathmatch, it doesn't work at all.
No tags attached.
Issue History
2015-03-06 01:09StrikerMan780New Issue
2015-03-06 01:47DuskNote Added: 0011773
2015-03-06 01:47DuskAssigned To => Dusk
2015-03-06 01:47DuskStatusnew => feedback
2015-03-06 01:47DuskAssigned ToDusk =>
2015-03-06 01:48DuskNote Edited: 0011773bug_revision_view_page.php?bugnote_id=11773#r6719
2015-03-06 02:00StrikerMan780Note Added: 0011774
2015-03-06 02:00StrikerMan780Statusfeedback => new
2015-03-06 11:56Edward-sanAssigned To => Edward-san
2015-03-06 11:56Edward-sanStatusnew => assigned
2015-03-06 12:08Edward-sanNote Added: 0011775
2015-03-06 12:08Edward-sanSummaryACS Function "KickFromGame" doesn't kick in Deathmatch mode. => ACS Function "KickFromGame" doesn't kick offline.
2015-03-06 12:10Edward-sanStatusassigned => needs review
2015-03-07 00:02DevilHunterNote Added: 0011778
2015-03-08 19:28cobaltStatusneeds review => needs testing
2015-03-08 19:28cobaltTarget Version => 1.4
2015-03-08 19:28cobaltSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=6731#r6731
2015-03-08 19:28cobaltNote Added: 0011787
2015-03-14 01:14StrikerMan780Note Added: 0011822
2015-03-14 12:39DuskStatusneeds testing => resolved
2015-03-14 12:39DuskFixed in Version => 1.4
2015-03-14 12:39DuskResolutionopen => fixed
2018-09-30 23:40Blzut3Statusresolved => closed

Notes
(0011773)
Dusk   
2015-03-06 01:47   
(edited on: 2015-03-06 01:48)
The script you posted works fine for me in Deathmatch.

Though it seems it doesn't work offline (it doesn't do anything as a non-server). I don't know why that is.

(0011774)
StrikerMan780   
2015-03-06 02:00   
That might explain it. It would be nice if it worked offline in case one is playing against bots.
(0011775)
Edward-san   
2015-03-06 12:08   
Edited the ticket title and made a fix.
(0011778)
DevilHunter   
2015-03-07 00:02   
Confirmed as Fixed
(0011787)
cobalt   
2015-03-08 19:28   
Issue addressed by commit 9719a8921f03: - Fixed: The CCMD 'kickfromgame' and the ACS function 'KickFromGame' could not work offline (fixes 2117).
Committed by edward_san [edward-san] on Friday 06 March 2015 13:05:22

Changes in files:
 docs/zandronum-history.txt | 1 +
 src/p_acs.cpp | 2 +-
 src/sv_main.cpp | 23 +++++++++++++----------
 3 files changed, 15 insertions(+), 11 deletions(-)
(0011822)
StrikerMan780   
2015-03-14 01:14   
Works just as planned.