the initial commit to the repo.
This commit is contained in:
parent
025c032b8c
commit
1b757591b9
264 changed files with 21882 additions and 0 deletions
27
stoopid.raw/stupid.solutions/TripwireHooks.cs
Normal file
27
stoopid.raw/stupid.solutions/TripwireHooks.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue