From 2554250c0d883020bc45ed51b348e5fa06574668 Mon Sep 17 00:00:00 2001 From: IR4T4 Date: Mon, 7 May 2012 00:11:11 +0200 Subject: [PATCH] botlib issues refs #3 --- src/game/g_active.c | 2 -- src/game/g_cmds.c | 9 --------- src/game/g_combat.c | 1 - 3 files changed, 12 deletions(-) diff --git a/src/game/g_active.c b/src/game/g_active.c index 88919f822..902b2d9b3 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -245,7 +245,6 @@ void G_SetClientSound(gentity_t *ent) PushBot ============== */ -void BotVoiceChatAfterIdleTime(int client, const char *id, int mode, int delay, qboolean voiceonly, int idleTime, qboolean forceIfDead); void PushBot(gentity_t *ent, gentity_t *other) { @@ -359,7 +358,6 @@ qboolean ReadyToConstruct(gentity_t *ent, gentity_t *constructible, qboolean upd return qtrue; } -void BotSetBlockEnt(int client, int blocker); /* ============== CheckBotImpacts diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 36809093b..8cb9719d6 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -33,7 +33,6 @@ #include "g_local.h" -void BotDebug(int clientNum); void GetBotAutonomies(int clientNum, int *weapAutonomy, int *moveAutonomy); qboolean G_IsOnFireteam(int entityNum, fireteamData_t **teamNum); @@ -847,8 +846,6 @@ void Cmd_Kill_f(gentity_t *ent) player_die(ent, ent, ent, (g_gamestate.integer == GS_PLAYING) ? 100000 : 135, MOD_SUICIDE); } -void BotRecordTeamChange(int client); - void G_TeamDataForString(const char *teamstr, int clientNum, team_t *team, spectatorState_t *sState, int *specClient) { *sState = SPECTATOR_NOT; @@ -1887,8 +1884,6 @@ void Cmd_Say_f(gentity_t *ent, int mode, qboolean arg0) G_Say(ent, NULL, mode, ConcatArgs(((arg0) ? 0 : 1))); } -extern void BotRecordVoiceChat(int client, int destclient, const char *id, int mode, qboolean noResponse); - // NERVE - SMF void G_VoiceTo(gentity_t *ent, gentity_t *other, int mode, const char *id, qboolean voiceonly) { @@ -1956,10 +1951,6 @@ void G_VoiceTo(gentity_t *ent, gentity_t *other, int mode, const char *id, qbool cmd = "vchat"; } - // RF, record this chat so bots can parse them - // bots respond with voiceonly, so we check for this so they dont keep responding to responses - BotRecordVoiceChat(ent->s.number, other->s.number, id, mode, voiceonly == 2); - if (voiceonly == 2) { voiceonly = qfalse; diff --git a/src/game/g_combat.c b/src/game/g_combat.c index 2bbf43e53..1435c5665 100644 --- a/src/game/g_combat.c +++ b/src/game/g_combat.c @@ -370,7 +370,6 @@ char *modNames[] = player_die ================== */ -void BotRecordTeamDeath(int client); void player_die(gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int damage, int meansOfDeath) {