mirror of
https://github.com/rmroc451/TweaksAndThings.git
synced 2025-12-16 17:29:37 -06:00
adjusting CarIdsInRect -> CarIdsInRadius
This commit is contained in:
@@ -2,6 +2,6 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<MajorVersion>1</MajorVersion>
|
<MajorVersion>1</MajorVersion>
|
||||||
<MinorVersion>2</MinorVersion>
|
<MinorVersion>2</MinorVersion>
|
||||||
<PatchVersion>1</PatchVersion>
|
<PatchVersion>2</PatchVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -4,13 +4,17 @@
|
|||||||
"name": "RMROC451's Tweaks and Things",
|
"name": "RMROC451's Tweaks and Things",
|
||||||
"version": "$(AssemblyVersion)",
|
"version": "$(AssemblyVersion)",
|
||||||
"requires": [
|
"requires": [
|
||||||
|
{
|
||||||
|
"id": "railroader",
|
||||||
|
"notBefore": "2024.6"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "railloader",
|
"id": "railloader",
|
||||||
"notBefore": "1.9.6.8"
|
"notBefore": "1.9.6.14"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "Zamu.StrangeCustoms",
|
"id": "Zamu.StrangeCustoms",
|
||||||
"notBefore": "1.10.24358.413"
|
"notBefore": "1.10.25017.313"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"assemblies": [ "RMROC451.TweaksAndThings" ],
|
"assemblies": [ "RMROC451.TweaksAndThings" ],
|
||||||
|
|||||||
@@ -109,8 +109,7 @@ public static class Car_Extensions
|
|||||||
{
|
{
|
||||||
Vector3 position = car.GetMotionSnapshot().Position;
|
Vector3 position = car.GetMotionSnapshot().Position;
|
||||||
Vector3 center = WorldTransformer.WorldToGame(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.CarIdsInRadius(center, 60f);
|
||||||
var cars = tc.CarIdsInRect(rect);
|
|
||||||
Log.Information($"{nameof(HuntingForCabeeseNearCar)} => {cars.Count()}");
|
Log.Information($"{nameof(HuntingForCabeeseNearCar)} => {cars.Count()}");
|
||||||
List<(string carId, float distance)> source =
|
List<(string carId, float distance)> source =
|
||||||
cars
|
cars
|
||||||
|
|||||||
Reference in New Issue
Block a user