Код:
case 0: {
turret.bIsShooting = false;
float[] fs = ((Aircraft) this.actor).getTurretRestOrient(i);
turret.tuLim[0] = fs[0];
turret.tuLim[1] = fs[1];
if (Time.current() > turret.timeNext) {
turret.target = War.GetNearestEnemyAircraft(this.actor, 3619.0F, 9);
if (turret.target == null) {
turret.target = War.GetNearestEnemyAircraft(this.actor, 6822.0F, 9);
if (turret.target == null)
turret.timeNext = (Time.current() + World.Rnd().nextLong(1000L, 10000L));
else if (VisCheck.visCheckTurret(turret, (Aircraft) this.actor, ((Aircraft) turret.target), true)) {
turret.tMode = 1;
turret.timeNext = 0L;
if (((Aircraft) this.actor == World.getPlayerAircraft()) && turret.health > 0.4F)
Voice.speakRearGunEA((Aircraft) this.actor, (Aircraft) turret.target);
} else
turret.timeNext = Time.current() + World.Rnd().nextLong(100L, 3000L);
} else if (VisCheck.visCheckTurret(turret, (Aircraft) this.actor, ((Aircraft) turret.target), true)) {
turret.tMode = 1;
turret.timeNext = 0L;
if ((Aircraft) this.actor == World.getPlayerAircraft() && turret.health > 0.4F)
Voice.speakRearGunEA((Aircraft) this.actor,
(Aircraft) turret.target);
} else
turret.timeNext = Time.current() + World.Rnd().nextLong(100L, 3000L);
}
break;
}
Вот это в коде стрелка.
Voice.speakRearGunEA((Aircraft) this.actor,
(Aircraft) turret.target);