Тема: Баги 4.13.1
Показать сообщение отдельно
Старый 12.07.2016, 18:01   #268
LeaderAI
Местный
 
Регистрация: 20.03.2016
Сообщений: 289
По умолчанию

Код:
 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);
LeaderAI вне форума   Ответить с цитированием