adjusting CarIdsInRect -> CarIdsInRadius

This commit is contained in:
2025-02-16 09:41:58 -06:00
parent 7ebd14db2a
commit 58dc7efac0
3 changed files with 8 additions and 5 deletions

View File

@@ -2,6 +2,6 @@
<PropertyGroup>
<MajorVersion>1</MajorVersion>
<MinorVersion>2</MinorVersion>
<PatchVersion>1</PatchVersion>
<PatchVersion>2</PatchVersion>
</PropertyGroup>
</Project>

View File

@@ -4,13 +4,17 @@
"name": "RMROC451's Tweaks and Things",
"version": "$(AssemblyVersion)",
"requires": [
{
"id": "railroader",
"notBefore": "2024.6"
},
{
"id": "railloader",
"notBefore": "1.9.6.8"
"notBefore": "1.9.6.14"
},
{
"id": "Zamu.StrangeCustoms",
"notBefore": "1.10.24358.413"
"notBefore": "1.10.25017.313"
}
],
"assemblies": [ "RMROC451.TweaksAndThings" ],

View File

@@ -109,8 +109,7 @@ public static class Car_Extensions
{
Vector3 position = car.GetMotionSnapshot().Position;
Vector3 center = WorldTransformer.WorldToGame(position);
Rect rect = new Rect(new Vector2(center.x - 30f, center.z - 30f), Vector2.one * 30f * 2f);
var cars = tc.CarIdsInRect(rect);
var cars = tc.CarIdsInRadius(center, 60f);
Log.Information($"{nameof(HuntingForCabeeseNearCar)} => {cars.Count()}");
List<(string carId, float distance)> source =
cars