Merge pull request #1 from YGGverse/bot10-extra-skins

merge bot10-extra-skins
This commit is contained in:
d47081 2024-01-11 18:28:14 +02:00 committed by GitHub
commit 89e23f1439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,22 +56,25 @@ respawn_t bot_respawn[32] = {
{FALSE, BOT_IDLE, "", "", "", NULL}, {FALSE, BOT_IDLE, "", "", "", NULL},
{FALSE, BOT_IDLE, "", "", "", NULL}, {FALSE, BOT_IDLE, "", "", "", NULL}};
#define MAX_SKINS 10
#define MAX_SKINS 11
// indicate which models are currently used for random model allocation
BOOL skin_used[MAX_SKINS] = {
FALSE, FALSE, FALSE, FALSE, FALSE,
FALSE, FALSE, FALSE, FALSE, FALSE};
FALSE, FALSE, FALSE, FALSE, FALSE,
FALSE};
// store the names of the models...
const char *bot_skins[MAX_SKINS] = {
"barney", "gina", "gman", "gordon", "helmet",
"hgrunt", "recon", "robo", "scientist", "zombie"};
"hgrunt", "recon", "robo", "scientist", "zombie",
"putin"};
// store the player names for each of the models...
const char *bot_names[MAX_SKINS] = {
"Barney", "Gina", "G-Man", "Gordon", "Helmet",
"H-Grunt", "Recon", "Robo", "Scientist", "Zombie"};
"H-Grunt", "Recon", "Robo", "Scientist", "Zombie",
"Putin"};
// how often (out of 1000 times) the bot will pause, based on bot skill
float pause_frequency[5] = {4, 7, 10, 15, 20};
@ -228,9 +231,9 @@ void BotCreate(const char *skin, const char *name, const char *skill)
if (IS_DEDICATED_SERVER())
printf("use barney, gina, gman, gordon, helmet, hgrunt,\n");
UTIL_ClientPrintAll( HUD_PRINTNOTIFY,
" recon, robo, scientist, or zombie\n");
" recon, robo, scientist, zombie or putin\n");
if (IS_DEDICATED_SERVER())
printf(" recon, robo, scientist, or zombie\n");
printf(" recon, robo, scientist, zombie or putin\n");
return;
}
}
@ -2106,4 +2109,3 @@ void CBot::BotThink( void )
gpGlobals->frametime * 1000 );
// TheFatal - END
}