mirror of
https://github.com/rmroc451/TweaksAndThings.git
synced 2025-12-16 01:09:38 -06:00
adjusting CarIdsInRect -> CarIdsInRadius
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
<PropertyGroup>
|
||||
<MajorVersion>1</MajorVersion>
|
||||
<MinorVersion>2</MinorVersion>
|
||||
<PatchVersion>1</PatchVersion>
|
||||
<PatchVersion>2</PatchVersion>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -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" ],
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user