max. streamed NPCs from 20 to 30

This commit is contained in:
EntenKoeniq
2021-12-12 20:05:55 +01:00
parent b026026112
commit cf93feff87
4 changed files with 10 additions and 10 deletions

View File

@ -68,7 +68,7 @@ namespace CoopClient.Entities
foreach (Ped ped in World.GetNearbyPeds(Game.Player.Character.Position, 150f)
.Where(p => p.Handle != Game.Player.Character.Handle && !p.IsDead && p.RelationshipGroup != Main.RelationshipGroup)
.OrderBy(p => (p.Position - Game.Player.Character.Position).Length())
.Take((Main.MainSettings.StreamedNpc > 20 || Main.MainSettings.StreamedNpc < 0) ? 0 : Main.MainSettings.StreamedNpc))
.Take((Main.MainSettings.StreamedNPCs > 30 || Main.MainSettings.StreamedNPCs < 0) ? 0 : Main.MainSettings.StreamedNPCs))
{
Main.MainNetworking.SendNpcData(ped);
}