Skip to content

Commit

Permalink
カットシーン時のカオス化の頻度を調整
Browse files Browse the repository at this point in the history
  • Loading branch information
TORISOUP committed Jan 24, 2016
1 parent 52cd104 commit dadc2c5
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions Inferno/ChaosMode/ChaosMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,28 +210,24 @@ private IEnumerable<Object> ChaosPedAction(Ped ped)

//攻撃する
PedRiot(ped, equipedWeapon);
if (ped.IsCutsceneOnlyPed())
{
yield return WaitForSeconds(2);
}
else

//適当に待機
foreach (var s in WaitForSeconds(2 + (float)Random.NextDouble() * 3))
{
//適当に待機
foreach (var s in WaitForSeconds(2 + (float)Random.NextDouble() * 3))
if (ped.IsSafeExist() && ped.IsFleeing())
{
if (ped.IsSafeExist() && ped.IsFleeing())
{
//市民が攻撃をやめて逃げ始めたら再度セットする
break;
}
yield return s;
//市民が攻撃をやめて逃げ始めたら再度セットする
break;
}
yield return s;
}

} while (ped.IsSafeExist() && ped.IsAlive);

chaosedPedList.Remove(pedId);
}


/// <summary>
/// カオス化時の攻撃対象を取得する
/// </summary>
Expand Down

0 comments on commit dadc2c5

Please sign in to comment.