This is a fork of Zandronum Beta for TSPG.
Revision | 3d7a2a6c47bdcaf8f00249fcd0a142060a274f29 (tree) |
---|---|
Time | 2022-06-22 08:53:32 |
Author | Adam Kaminski <kaminskiadam9@gmai...> |
Commiter | Adam Kaminski |
The "addbot" CCMD is no longer blacklisted on TSPG. Hosts are allowed to add up to 16 bots to a server.
@@ -3840,11 +3840,13 @@ | ||
3840 | 3840 | // |
3841 | 3841 | CCMD( addbot ) |
3842 | 3842 | { |
3843 | + /* | |
3843 | 3844 | // [TSPG] |
3844 | 3845 | #if defined( SERVER_ONLY ) && defined( SERVER_BLACKLIST ) |
3845 | 3846 | if ( gamestate != GS_STARTUP ) |
3846 | 3847 | return; |
3847 | 3848 | #endif |
3849 | + */ | |
3848 | 3850 | |
3849 | 3851 | CSkullBot *pBot; |
3850 | 3852 | ULONG ulPlayerIdx; |
@@ -3887,6 +3889,13 @@ | ||
3887 | 3889 | return; |
3888 | 3890 | } |
3889 | 3891 | |
3892 | + // [TSPG] We only allow up to 16 bots on a single server. | |
3893 | + if ( BOTS_CountBots( ) >= 16 ) | |
3894 | + { | |
3895 | + Printf( "The maximum number of bots allowed is 16, you cannot add any more.\n" ); | |
3896 | + return; | |
3897 | + } | |
3898 | + | |
3890 | 3899 | switch ( argv.argc( ) ) |
3891 | 3900 | { |
3892 | 3901 | case 1: |