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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fpsgame/ai.cpp b/src/fpsgame/ai.cpp
index cfe3502..d5045fd 100644
--- a/src/fpsgame/ai.cpp
+++ b/src/fpsgame/ai.cpp
@@ -116,7 +116,7 @@ namespace ai
{
if(lastmillis >= d->ai->lastaimrnd)
{
- const int aiskew[NUMGUNS] = { 1, 10, 50, 5, 20, 1, 100, 10, 10, 10, 1, 1 };
+ const int aiskew[NUMGUNS] = { 1, 10, 50, 5, 20, 1, 100 };
#define rndaioffset(r) ((rnd(int(r*aiskew[d->gunselect]*2)+1)-(r*aiskew[d->gunselect]))*(1.f/float(max(d->skill, 1))))
loopk(3) d->ai->aimrnd[k] = rndaioffset(e->radius);
int dur = (d->skill+10)*10;
@@ -167,7 +167,7 @@ namespace ai
d->ownernum = ocn;
d->plag = 0;
d->skill = sk;
- d->playermodel = chooserandomplayermodel(pm);
+ d->playermodel = 0;
if(resetthisguy) removeweapons(d);
if(d->ownernum >= 0 && player1->clientnum == d->ownernum)
@@ -903,7 +903,7 @@ namespace ai
float radius = 18*18;
loopv(entities::ents) if(entities::ents[i]->type == JUMPPAD)
{
- fpsentity &e = *(fpsentity *)entities::ents[i];
+ extentity &e = *(extentity *)entities::ents[i];
if(e.o.squaredist(pos) <= radius) { jump = false; break; }
}
}