The problem is, the autoaim engages even if I dont have the victim in my point of view. I want it to only autoaim in a 30 degree angle.
I want to cut the AutoAimFOV down.
Any ideas would be great.
[T0rN]
Code:
fire:
target = FirstThingInView(player, 30, 200, 0x404);
if(mode == 0)
{
dummy = FireProjectile(player, projectile, fireSound, 18, '0.02 0.15 0.0', '0 0 0', 1.0, 0x20, autoAimFOV, autoAimMaxDist);
SetThingLook(dummy, VectorSub(GetThingPos(target), GetThingPos(player)));
SetThingVel(dummy, VectorScale(GetThingLVec(dummy), 7));
}
else
{
dummy = FireProjectile(player, projectile3, fireSound, 18, '0.0 0.0 0.0', '0 0 0', 1.0, 0x20, autoAimFOV, autoAimMaxDist);
SetThingLook(dummy, VectorSub(GetThingPos(target), GetThingPos(player)));
SetThingVel(dummy, VectorScale(GetThingLVec(dummy), 7));
}
jkPlayPOVKey(player, povfireAnim, 1, 0x38);
powerBoost = GetInv(player, 63);
ChangeFireRate(player, fireWait/powerBoost);
Return;I want to cut the AutoAimFOV down.
Any ideas would be great.
[T0rN]