Skip to content

Commit

Permalink
bots have added weapon delay after shooting depending on their level
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowberryHN committed Oct 4, 2023
1 parent e560ca5 commit 340bc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fpsgame/weapon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ namespace game
hits.length(), hits.length()*sizeof(hitmsg)/sizeof(int), hits.getbuf());
}

//if(d->ai) d->gunwait[d->gunselect] += int(d->gunwait[d->gunselect]*(((101-d->skill)+rnd(111-d->skill))/100.f));
if(d->ai) d->gunwait[d->gunselect] += int(d->gunwait[d->gunselect]*(((101-d->skill)+rnd(111-d->skill))/100.f));
d->totalshots += guns[d->gunselect].damage*guns[d->gunselect].rays;
recordpotentialdamage(d);

Expand Down

0 comments on commit 340bc88

Please sign in to comment.