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

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004593Zandronum[All Projects] Bugpublic2026-03-27 20:252026-04-12 20:39
Reportermonsterovich 
Assigned ToKaminsky 
PrioritynormalSeverityminorReproducibilitysometimes
Statusneeds testingResolutionopen 
PlatformAnyOSOS Version
Product Version3.2.1 
Target Version3.3Fixed in Version 
Summary0004593: Cannot kick bots via ACS
DescriptionWe use this code to kick all bots—or specific bots—out of the game.

script "hvm_kickallbots" (void)
{
    for (int i = 0; i < MAX_PLAYERS; i++)
    {
        if (!PlayerInGame(i) || !PlayerIsBot(i))
            continue;
        
        KickFromGame(i, "Kicked by server."); // fixes crashes
        str command_kick_idx = StrParam(s:"kick_idx ", d:i);
        ConsoleCommand(command_kick_idx);
    }
}

script "hvm_kickbot" (int player)
{
    if (!PlayerInGame(player) || !PlayerIsBot(player))
        terminate;
    
    KickFromGame(player, "Bot kicked by the host."); // fixes crashes
    str command_kick_idx = StrParam(s:"kick_idx ", d:player);
    ConsoleCommand(command_kick_idx);
}
Additional InformationIt used to work in version 2.1.2
Attached Files

- Relationships

-  Notes
User avatar (0024685)
Kaminsky (developer)
2026-03-28 12:35

Commands that kick or ban players, like "kick_idx" and "ban_idx", were blacklisted from ConsoleCommand since 3.1 so mods couldn't just kick or ban players whenever, or however long, they wanted (the BanFromGame ACS function exists since 3.2, but only works if the server allows it via "sv_maxacsbanduration", whereas the ConsoleCommand approach had no security checks). Also, keep in mind that removing ConsoleCommand from Zandronum still isn't off the table and can happen sometime in the future, so its use is heavily discouraged.

If you want to remove bots from the game, you may use the RemoveBot ACS function instead, which was also added since 3.2.
User avatar (0024686)
monsterovich (reporter)
2026-03-29 10:52

> you may use the RemoveBot ACS function instead, which was also added since 3.2.

This feature is not applicable because two bots can have the same name. We need a different solution that is compatible with the functionality used above.
User avatar (0024689)
Kaminsky (developer)
2026-03-29 14:13

Quote from "monsterovich"
This feature is not applicable because two bots can have the same name. We need a different solution that is compatible with the functionality used above.


I could add an optional argument to choose the index of the bot that you want to remove, whether you specify a name or not.
User avatar (0024691)
monsterovich (reporter)
2026-03-29 23:50

> I could add an optional argument to choose the index of the bot that you want to remove, whether you specify a name or not.

That, or a separate function.
User avatar (0024695)
Kaminsky (developer)
2026-04-12 20:39

'https://foss.heptapod.net/zandronum/zandronum-stable/-/commit/eb1ce25f51dca7943410108382bbe2d1af92784b [^]'

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: monsterovich
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2026-03-27 20:25 monsterovich New Issue
2026-03-28 12:35 Kaminsky Note Added: 0024685
2026-03-29 10:52 monsterovich Note Added: 0024686
2026-03-29 14:13 Kaminsky Note Added: 0024689
2026-03-29 23:50 monsterovich Note Added: 0024691
2026-04-12 20:39 Kaminsky Note Added: 0024695
2026-04-12 20:39 Kaminsky Assigned To => Kaminsky
2026-04-12 20:39 Kaminsky Status new => needs testing
2026-04-12 20:39 Kaminsky Target Version => 3.3






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2026 MantisBT Team
Powered by Mantis Bugtracker