From c87178267fcfb68be4378bcc2d3c70cb646e4f4d Mon Sep 17 00:00:00 2001 From: Rich Dunne Date: Sat, 1 May 2021 13:12:31 -0600 Subject: [PATCH] Removed log spam --- SceneManager/Utils/Extensions.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/SceneManager/Utils/Extensions.cs b/SceneManager/Utils/Extensions.cs index 9bb7861..3258d46 100644 --- a/SceneManager/Utils/Extensions.cs +++ b/SceneManager/Utils/Extensions.cs @@ -44,25 +44,25 @@ namespace SceneManager.Utils // If ped relationship group does not contain "cop" then this extension doesn't apply if (pedType == PedType.Cop && !ped.RelationshipGroup.Name.ToLower().Contains("cop")) { - Game.LogTrivial($"Ped does not belong to a cop relationship group."); + //Game.LogTrivial($"Ped does not belong to a cop relationship group."); return false; } // Ped is in a vehicle if (taskInVehicleBasic) { - Game.LogTrivial($"Ped is in a vehicle."); + //Game.LogTrivial($"Ped is in a vehicle."); // Ped has a controlled driving task if (taskControlVehicle) { - Game.LogTrivial($"Ped has a controlled driving task. (non-ambient)"); + //Game.LogTrivial($"Ped has a controlled driving task. (non-ambient)"); return false; } // Ped has a wander driving task if (taskCarDriveWander) { - Game.LogTrivial($"Ped has a wander driving task. (ambient)"); + //Game.LogTrivial($"Ped has a wander driving task. (ambient)"); return true; } @@ -70,7 +70,7 @@ namespace SceneManager.Utils var driverHasWanderTask = Rage.Native.NativeFunction.Natives.GET_IS_TASK_ACTIVE(ped.CurrentVehicle.Driver, 151); if (driverHasWanderTask) { - Game.LogTrivial($"Ped is a passenger. Vehicle's driver has a wander driving task. (ambient)"); + //Game.LogTrivial($"Ped is a passenger. Vehicle's driver has a wander driving task. (ambient)"); return true; } } @@ -80,20 +80,20 @@ namespace SceneManager.Utils // UB unit on-foot, waiting for interaction if (ped.RelationshipGroup.Name == "UBCOP") { - Game.LogTrivial($"Cop is UB unit. (non-ambient)"); + //Game.LogTrivial($"Cop is UB unit. (non-ambient)"); return false; } // Cop ped walking around or standing still if ((taskComplexControlMovement && taskWanderingScenario) || (taskAmbientClips && taskUseScenario)) { - Game.LogTrivial($"Ped is wandering around or standing still. (ambient)"); + //Game.LogTrivial($"Ped is wandering around or standing still. (ambient)"); return true; } } // If nothing else returns true before now, then the ped is probably being controlled and doing something else - Game.LogTrivial($"Nothing else has returned true by this point. (non-ambient)"); + //Game.LogTrivial($"Nothing else has returned true by this point. (non-ambient)"); return false; }