summaryrefslogtreecommitdiff
path: root/src/fpsgame/ai.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fpsgame/ai.cpp')
-rw-r--r--src/fpsgame/ai.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/fpsgame/ai.cpp b/src/fpsgame/ai.cpp
index b59dbd3..5c74fe4 100644
--- a/src/fpsgame/ai.cpp
+++ b/src/fpsgame/ai.cpp
@@ -10,7 +10,6 @@ namespace ai {
ICOMMAND(addbot, "s", (char *s), addmsg(N_ADDBOT, "ri", *s ? clamp(parseint(s), 1, 101) : -1));
ICOMMAND(delbot, "", (), addmsg(N_DELBOT, "r"));
ICOMMAND(botlimit, "i", (int *n), addmsg(N_BOTLIMIT, "ri", *n));
- ICOMMAND(botbalance, "i", (int *n), addmsg(N_BOTBALANCE, "ri", *n));
float viewdist(int x) {
return x <= 100 ? clamp((SIGHTMIN+(SIGHTMAX-SIGHTMIN))/100.f*float(x), float(SIGHTMIN), 10000.0f) : 10000.0f;
}
@@ -904,16 +903,13 @@ namespace ai {
shoot(d, d->ai->target);
}
if(!intermission) {
- if(d->ragdoll) cleanragdoll(d);
moveplayer(d, 10, true);
if(allowmove && !b.idle) timeouts(d);
if(d->quadmillis) entities::checkquad(curtime, d);
entities::checkitems(d);
}
- }
- else if(d->state == CS_DEAD) {
- if(d->ragdoll) moveragdoll(d);
- else if(lastmillis-d->lastpain<2000) {
+ } else if(d->state == CS_DEAD) {
+ if(lastmillis-d->lastpain<2000) {
d->move = d->strafe = 0;
moveplayer(d, 10, false);
}
@@ -1074,4 +1070,3 @@ namespace ai {
}
}
}
-