the initial commit to the repo.

This commit is contained in:
NukedBart 2025-10-25 01:27:14 +08:00
parent 025c032b8c
commit 1b757591b9
264 changed files with 21882 additions and 0 deletions

View file

@ -0,0 +1,27 @@
using System.Reflection;
using EFT;
using EFT.UI;
namespace stupid.solutions;
public static class TripwireHooks
{
public static void PlayTripwireInteractionSound_Hook(object instance, float plantTime, bool hasMultiTool)
{
Player player = instance as Player;
if (!(player == null))
{
typeof(Player).GetMethod("SendTripwireInteractionSoundState", BindingFlags.Instance | BindingFlags.NonPublic)?.Invoke(player, new object[3]
{
EInteractionStatus.Started,
true,
hasMultiTool
});
}
}
public static void AntiTripWire_Hook(object instance, object tripwireSoundMessage)
{
ConsoleScreen.Log("TripWire sound blocked");
}
}