diff options
| author | xolatile | 2025-07-17 23:28:55 +0200 |
|---|---|---|
| committer | xolatile | 2025-07-17 23:28:55 +0200 |
| commit | c79dda69d6e603500a5681430172b5152041af0a (patch) | |
| tree | c1669442318e77a9ae76009edd5eefcaa69064ce /src/fpsgame/ai.cpp | |
| parent | 5b88d873f42b1cad5c5fd03888cfe45b82da06d6 (diff) | |
| download | xolatile-badassbug-c79dda69d6e603500a5681430172b5152041af0a.tar.xz xolatile-badassbug-c79dda69d6e603500a5681430172b5152041af0a.tar.zst | |
Big changed mentioned in IRC channel...
Diffstat (limited to 'src/fpsgame/ai.cpp')
| -rw-r--r-- | src/fpsgame/ai.cpp | 6 |
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; } } } |
