Lol, I liked the idea of writing it like a newspaper article
Anyway, it rly happened today, I THINK the bot didn't even noticed me, I'm trying to figure out if it's cause of my mutator(which I believe it's the cause).
The mutator checks the aimed actor using this code:
Code: Select all
static function actor getAimedActor(Pawn pawn, Weapon weapon) {
local vector HitLocation, HitNormal, StartTrace, EndTrace, X,Y,Z;
local float Accuracy;
local rotator AdjustedAim; //To not to affect the pawn.Weapon.AdjustedAim
if ((pawn != None) && (weapon != None)) {
Accuracy = 0.0;
GetAxes(pawn.ViewRotation, X, Y, Z);
StartTrace = pawn.Location + weapon.CalcDrawOffset() + weapon.FireOffset.X * X + weapon.FireOffset.Y * Y + weapon.FireOffset.Z * Z;
AdjustedAim = pawn.AdjustAim(1000000, StartTrace, 2*weapon.AimError, False, False);
EndTrace = StartTrace + Accuracy * (weapon.FRand() - 0.5 )* Y * 1000
+ Accuracy * (weapon.FRand() - 0.5 ) * Z * 1000;
X = vector(AdjustedAim);
EndTrace += (10000 * X);
return pawn.TraceShot(HitLocation, HitNormal, EndTrace, StartTrace);
}
return None;
}
Pawns always use this code when firing, so I don't see how it could let a bot shooting non-stop with a minigun.