Zandronum Chat on our Discord Server Get the latest version: 3.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002117Zandronum[All Projects] Bugpublic2015-03-06 01:092018-09-30 23:40
ReporterStrikerMan780 
Assigned ToEdward-san 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version2.0-beta 
Target Version1.4Fixed in Version1.4 
Summary0002117: ACS Function "KickFromGame" doesn't kick offline.
DescriptionSince 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.
Steps To ReproduceThis 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.
Attached Files

- Relationships

-  Notes
User avatar (0011773)
Dusk (developer)
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.

User avatar (0011774)
StrikerMan780 (reporter)
2015-03-06 02:00

That might explain it. It would be nice if it worked offline in case one is playing against bots.
User avatar (0011775)
Edward-san (developer)
2015-03-06 12:08

Edited the ticket title and made a fix.
User avatar (0011778)
DevilHunter (reporter)
2015-03-07 00:02

Confirmed as Fixed
User avatar (0011787)
cobalt (updater)
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(-)
User avatar (0011822)
StrikerMan780 (reporter)
2015-03-14 01:14

Works just as planned.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2015-03-06 01:09 StrikerMan780 New Issue
2015-03-06 01:47 Dusk Note Added: 0011773
2015-03-06 01:47 Dusk Assigned To => Dusk
2015-03-06 01:47 Dusk Status new => feedback
2015-03-06 01:47 Dusk Assigned To Dusk =>
2015-03-06 01:48 Dusk Note Edited: 0011773 View Revisions
2015-03-06 02:00 StrikerMan780 Note Added: 0011774
2015-03-06 02:00 StrikerMan780 Status feedback => new
2015-03-06 11:56 Edward-san Assigned To => Edward-san
2015-03-06 11:56 Edward-san Status new => assigned
2015-03-06 12:08 Edward-san Note Added: 0011775
2015-03-06 12:08 Edward-san Summary ACS Function "KickFromGame" doesn't kick in Deathmatch mode. => ACS Function "KickFromGame" doesn't kick offline.
2015-03-06 12:10 Edward-san Status assigned => needs review
2015-03-07 00:02 DevilHunter Note Added: 0011778
2015-03-08 19:28 cobalt Status needs review => needs testing
2015-03-08 19:28 cobalt Target Version => 1.4
2015-03-08 19:28 cobalt Steps to Reproduce Updated View Revisions
2015-03-08 19:28 cobalt Note Added: 0011787
2015-03-14 01:14 StrikerMan780 Note Added: 0011822
2015-03-14 12:39 Dusk Status needs testing => resolved
2015-03-14 12:39 Dusk Fixed in Version => 1.4
2015-03-14 12:39 Dusk Resolution open => fixed
2018-09-30 23:40 Blzut3 Status resolved => closed






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker