some improvements

This commit is contained in:
Gurge44 committed 2026-06-16 20:07:21 +02:00
1 parent 54f1fbaadb
commit 8e347aecad
5 files changed
+9 -3

No files matched your search

+6
View File
@@ -1452,6 +1452,12 @@ internal static class ExtendedPlayerControl
return player.transform.position;
}
public Vector3 Pos3()
{
Vector2 pos = player.Pos();
return new Vector3(pos.x, pos.y, player.transform.position.z);
}
// Next 5: https://github.com/Rabek009/MoreGamemodes/blob/master/Modules/ExtendedPlayerControl.cs
+1 -1
View File
@@ -150,7 +150,7 @@ internal static class LocateArrow
}
// Take the direction vector of the target
Vector3 dir = loc - seer.transform.position;
Vector3 dir = loc - seer.Pos3();
int index;
if (dir.magnitude < 2)
+1 -1
View File
@@ -151,7 +151,7 @@ internal static class TargetArrow
}
// Take the direction vector of the target
Vector3 dir = target.transform.position - seer.transform.position;
Vector3 dir = target.Pos3() - seer.Pos3();
int index;
if (dir.magnitude < 2)
-1
View File
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using AmongUs.Data;
using EHR.Patches;
using EHR.Roles;
+1
View File
@@ -98,6 +98,7 @@ public class Shifter : RoleBase
if (taskState.HasTasks) Main.PlayerStates[killer.PlayerId].TaskState = taskState;
killer.SyncSettings();
LateTask.New(() => killer.SetKillCooldown(), 0.2f, log: false);
// ------------------------------------------------------------------------------------------