Skip to content

Commit

Permalink
botlib ... refs #3
Browse files Browse the repository at this point in the history
  • Loading branch information
IR4T4 committed May 6, 2012
1 parent f7ce4ed commit aa6519c
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/game/g_active.c
Expand Up @@ -272,12 +272,6 @@ void PushBot(gentity_t *ent, gentity_t *other)
VectorNormalize(other->client->ps.velocity);
VectorScale(other->client->ps.velocity, oldspeed, other->client->ps.velocity);
}
//
// also, if "ent" is a bot, tell "other" to move!
if (rand() % 50 == 0 && (ent->r.svFlags & SVF_BOT) && oldspeed < 10)
{
BotVoiceChatAfterIdleTime(ent->s.number, "Move", SAY_TEAM, 1000, qfalse, 20000, qfalse);
}
}

/*
Expand Down Expand Up @@ -358,24 +352,6 @@ qboolean ReadyToConstruct(gentity_t *ent, gentity_t *constructible, qboolean upd
return qtrue;
}

/*
==============
CheckBotImpacts
==============
*/
void CheckBotImpacts(gentity_t *ent, gentity_t *other)
{
char *blockEnts[] = { "func_explosive", NULL };
int j;

for (j = 0; blockEnts[j]; j++)
{
if (other->classname && !Q_stricmp(other->classname, blockEnts[j]))
{
BotSetBlockEnt(ent->s.number, other->s.number);
}
}
}

//==============================================================

Expand Down Expand Up @@ -431,11 +407,6 @@ void ClientImpacts(gentity_t *ent, pmove_t *pm)
PushBot(other, ent);
}

if (ent->r.svFlags & SVF_BOT)
{
CheckBotImpacts(ent, other);
}

if (!other->touch)
{
continue;
Expand Down

0 comments on commit aa6519c

Please sign in to comment.