bLeadTarget
Posted: Thu Jan 30, 2020 7:27 pm
In the UnrealShare.ScriptedPawn properties under Combat there is a bool property bLeadTarget - what is the effect of setting this to False (True seems to be the default)?
Code: Select all
function PreBeginPlay()
{
Super.PreBeginPlay();
if ( Level.Game.bVeryLowGore )
bGreenBlood = true;
if ( Skill > 2 )
bLeadTarget = true;
else if ( (Skill == 0) && (Health < 500) )
{
bLeadTarget = false;
ReFireRate = 0.75 * ReFireRate;
}
if ( bIsBoss )
Health = Health + 0.15 * Skill * Health;
bInitialFear = (AttitudeToPlayer == ATTITUDE_Fear);
}
...
...
final function FireProjectile(vector StartOffset, float Accuracy)
{
local vector X,Y,Z, projStart;
MakeNoise(1.0);
GetAxes(Rotation,X,Y,Z);
projStart = Location + StartOffset.X * CollisionRadius * X
+ StartOffset.Y * CollisionRadius * Y
+ StartOffset.Z * CollisionRadius * Z;
spawn(RangedProjectile ,self,'',projStart,AdjustAim(ProjectileSpeed, projStart, Accuracy, bLeadTarget, bWarnTarget));
}