| Anonymous | Login | Signup for a new account | 2026-04-18 23:33 UTC |
| My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
| 0004593 | Zandronum | [All Projects] Bug | public | 2026-03-27 20:25 | 2026-04-12 20:39 | ||||||||
| Reporter | monsterovich | ||||||||||||
| Assigned To | Kaminsky | ||||||||||||
| Priority | normal | Severity | minor | Reproducibility | sometimes | ||||||||
| Status | needs testing | Resolution | open | ||||||||||
| Platform | Any | OS | OS Version | ||||||||||
| Product Version | 3.2.1 | ||||||||||||
| Target Version | 3.3 | Fixed in Version | |||||||||||
| Summary | 0004593: Cannot kick bots via ACS | ||||||||||||
| Description | We 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 Information | It used to work in version 2.1.2 | ||||||||||||
| Attached Files | |||||||||||||
Notes |
|
|
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. |
|
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. |
|
Kaminsky (developer) 2026-03-29 14:13 |
Quote from "monsterovich" 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. |
|
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. |
|
Kaminsky (developer) 2026-04-12 20:39 |
'https://foss.heptapod.net/zandronum/zandronum-stable/-/commit/eb1ce25f51dca7943410108382bbe2d1af92784b [^]' |
| 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 |
| Copyright © 2000 - 2026 MantisBT Team |