diff --git a/TaserPlugin/Properties/AssemblyInfo.cs b/TaserPlugin/Properties/AssemblyInfo.cs deleted file mode 100644 index e6154b1..0000000 --- a/TaserPlugin/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("TaserPlugin")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("TaserPlugin")] -[assembly: AssemblyCopyright("Copyright © 2022")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("91687c7c-8ee8-41ce-88a7-d89e7ecc4d70")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.5")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/TaserPlugin/TaserPlugin.cs b/TaserPlugin/TaserPlugin.cs deleted file mode 100644 index 6824585..0000000 --- a/TaserPlugin/TaserPlugin.cs +++ /dev/null @@ -1,107 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Rocket.Core.Plugins; -using Rocket.Core; -using Rocket.API; -using Logger = Rocket.Core.Logging.Logger; -using Rocket.Unturned.Events; -using Rocket.Unturned.Player; -using UnityEngine; -using SDG.Unturned; -using Steamworks; -using System.Collections; -using Rocket.Unturned.Chat; - -namespace TaserPlugin -{ - public class TaserPlugin : RocketPlugin - { - public static TaserPlugin instance; - public static List Tased; - - - - protected override void Load() - { - instance = this; - - Tased = new List(); - - UnturnedEvents.OnPlayerDamaged += OnPlayerDamaged; - - Logger.Log($"Loaded {name} version {Assembly.GetName().Version} by Spinkles"); - } - - protected override void Unload() - { - Tased = null; - - UnturnedEvents.OnPlayerDamaged -= OnPlayerDamaged; - - Logger.Log($"Loaded {name} version {Assembly.GetName().Version} by Spinkles"); - } - - - - private void OnPlayerDamaged(UnturnedPlayer player, ref EDeathCause cause, ref ELimb limb, ref UnturnedPlayer killer, ref Vector3 direction, ref float damage, ref float times, ref bool canDamage) - { - if (killer.HasPermission(Configuration.Instance.TaserPerm)) - { - if (Configuration.Instance.Debug) Logger.Log($"{killer.CharacterName} has taser permission."); - - if (killer.Player.equipment.itemID == Configuration.Instance.Taser && killer.Player.equipment.isEquipped) - { - if (Configuration.Instance.Debug) Logger.Log($"{killer.CharacterName} is using a taser."); - - if (!Tased.Contains(player.CSteamID)) - { - UnturnedChat.Say(player, "You have been tased!", Color.yellow); - UnturnedChat.Say(killer, $"You have tased {player.CharacterName}.", Color.yellow); - } - - Tased.Add(player.CSteamID); - player.Player.equipment.dequip(); - player.Player.stance.stance = EPlayerStance.PRONE; - player.Player.stance.checkStance(EPlayerStance.PRONE); - player.Player.movement.sendPluginSpeedMultiplier(0f); - player.Player.movement.sendPluginJumpMultiplier(0f); - StartCoroutine(nameof(TaseEnd), player); - StartCoroutine(TaseCheck(player)); - - canDamage = false; - damage = 0; - - return; - - } - - - } - } - - private IEnumerator TaseEnd(UnturnedPlayer player) - { - yield return new WaitForSeconds(Configuration.Instance.TaseDuration); - - player.Player.movement.sendPluginSpeedMultiplier(1f); - player.Player.movement.sendPluginJumpMultiplier(1f); - - Tased.Remove(player.CSteamID); - } - - private IEnumerator TaseCheck(UnturnedPlayer player) - { - while (Tased.Contains(player.CSteamID)) - { - player.Player.equipment.dequip(); - player.Player.stance.stance = EPlayerStance.PRONE; - player.Player.stance.checkStance(EPlayerStance.PRONE); - - yield return new WaitForSeconds(0.3f); - } - } - } -} diff --git a/TaserPlugin/TaserPlugin.csproj b/TaserPlugin/TaserPlugin.csproj deleted file mode 100644 index 8537e2f..0000000 --- a/TaserPlugin/TaserPlugin.csproj +++ /dev/null @@ -1,73 +0,0 @@ - - - - - Debug - AnyCPU - {91687C7C-8EE8-41CE-88A7-D89E7ECC4D70} - Library - Properties - TaserPlugin - TaserPlugin - v4.8 - 512 - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\..\..\..\..\Documents\Libraries\Assembly-CSharp.dll - - - ..\..\..\..\..\Documents\Libraries\com.rlabrecque.steamworks.net.dll - - - ..\..\..\..\..\Documents\Libraries\Rocket.API.dll - - - ..\..\..\..\..\Documents\Libraries\Rocket.Core.dll - - - ..\..\..\..\..\Documents\Libraries\Rocket.Unturned.dll - - - ..\..\..\..\..\Documents\Libraries\SDG.NetTransport.dll - - - - - - - - - - - ..\..\..\..\..\Documents\Libraries\UnityEngine.dll - - - ..\..\..\..\..\Documents\Libraries\UnityEngine.CoreModule.dll - - - - - - - - - \ No newline at end of file diff --git a/TaserPlugin/TaserPluginConfig.cs b/TaserPlugin/TaserPluginConfig.cs deleted file mode 100644 index addfef0..0000000 --- a/TaserPlugin/TaserPluginConfig.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Rocket.API; - -namespace TaserPlugin -{ - public class TaserPluginConfig : IRocketPluginConfiguration - { - public string TaserPerm; - public uint Taser; - public float TaseDuration; - public bool Debug; - - - public void LoadDefaults() - { - TaserPerm = "TaserPlugin.Tase"; - Taser = 1165; - TaseDuration = 5; - Debug = true; - - } - } -} diff --git a/TaserPlugin/bin/Debug/Assembly-CSharp.dll b/TaserPlugin/bin/Debug/Assembly-CSharp.dll deleted file mode 100644 index 1046cea..0000000 Binary files a/TaserPlugin/bin/Debug/Assembly-CSharp.dll and /dev/null differ diff --git a/TaserPlugin/bin/Debug/Rocket.API.dll b/TaserPlugin/bin/Debug/Rocket.API.dll deleted file mode 100644 index cd40e84..0000000 Binary files a/TaserPlugin/bin/Debug/Rocket.API.dll and /dev/null differ diff --git a/TaserPlugin/bin/Debug/Rocket.Core.dll b/TaserPlugin/bin/Debug/Rocket.Core.dll deleted file mode 100644 index 1e52f31..0000000 Binary files a/TaserPlugin/bin/Debug/Rocket.Core.dll and /dev/null differ diff --git a/TaserPlugin/bin/Debug/Rocket.Unturned.dll b/TaserPlugin/bin/Debug/Rocket.Unturned.dll deleted file mode 100644 index 23f21ab..0000000 Binary files a/TaserPlugin/bin/Debug/Rocket.Unturned.dll and /dev/null differ diff --git a/TaserPlugin/bin/Debug/SDG.NetTransport.dll b/TaserPlugin/bin/Debug/SDG.NetTransport.dll deleted file mode 100644 index acb35cc..0000000 Binary files a/TaserPlugin/bin/Debug/SDG.NetTransport.dll and /dev/null differ diff --git a/TaserPlugin/bin/Debug/TaserPlugin.dll b/TaserPlugin/bin/Debug/TaserPlugin.dll deleted file mode 100644 index 35b6a3f..0000000 Binary files a/TaserPlugin/bin/Debug/TaserPlugin.dll and /dev/null differ diff --git a/TaserPlugin/bin/Debug/TaserPlugin.pdb b/TaserPlugin/bin/Debug/TaserPlugin.pdb deleted file mode 100644 index 6b52a61..0000000 Binary files a/TaserPlugin/bin/Debug/TaserPlugin.pdb and /dev/null differ diff --git a/TaserPlugin/bin/Debug/UnityEngine.CoreModule.dll b/TaserPlugin/bin/Debug/UnityEngine.CoreModule.dll deleted file mode 100644 index e5264a6..0000000 Binary files a/TaserPlugin/bin/Debug/UnityEngine.CoreModule.dll and /dev/null differ diff --git a/TaserPlugin/bin/Debug/UnityEngine.dll b/TaserPlugin/bin/Debug/UnityEngine.dll deleted file mode 100644 index dfd214c..0000000 Binary files a/TaserPlugin/bin/Debug/UnityEngine.dll and /dev/null differ diff --git a/TaserPlugin/bin/Debug/com.rlabrecque.steamworks.net.dll b/TaserPlugin/bin/Debug/com.rlabrecque.steamworks.net.dll deleted file mode 100644 index 854536d..0000000 Binary files a/TaserPlugin/bin/Debug/com.rlabrecque.steamworks.net.dll and /dev/null differ diff --git a/TaserPlugin/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/TaserPlugin/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache deleted file mode 100644 index a71d3ef..0000000 Binary files a/TaserPlugin/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and /dev/null differ diff --git a/TaserPlugin/obj/Debug/TaserPlugin.csproj.AssemblyReference.cache b/TaserPlugin/obj/Debug/TaserPlugin.csproj.AssemblyReference.cache deleted file mode 100644 index be17476..0000000 Binary files a/TaserPlugin/obj/Debug/TaserPlugin.csproj.AssemblyReference.cache and /dev/null differ diff --git a/TaserPlugin/obj/Debug/TaserPlugin.csproj.CopyComplete b/TaserPlugin/obj/Debug/TaserPlugin.csproj.CopyComplete deleted file mode 100644 index e69de29..0000000 diff --git a/TaserPlugin/obj/Debug/TaserPlugin.csproj.CoreCompileInputs.cache b/TaserPlugin/obj/Debug/TaserPlugin.csproj.CoreCompileInputs.cache deleted file mode 100644 index 078b77b..0000000 --- a/TaserPlugin/obj/Debug/TaserPlugin.csproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -5f0ef3270bbef927940e71a1d64bb8a3ac38695a diff --git a/TaserPlugin/obj/Debug/TaserPlugin.csproj.FileListAbsolute.txt b/TaserPlugin/obj/Debug/TaserPlugin.csproj.FileListAbsolute.txt deleted file mode 100644 index d5a6bd0..0000000 --- a/TaserPlugin/obj/Debug/TaserPlugin.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,15 +0,0 @@ -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\bin\Debug\TaserPlugin.dll -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\bin\Debug\TaserPlugin.pdb -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\bin\Debug\Assembly-CSharp.dll -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\bin\Debug\com.rlabrecque.steamworks.net.dll -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\bin\Debug\Rocket.API.dll -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\bin\Debug\Rocket.Core.dll -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\bin\Debug\Rocket.Unturned.dll -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\bin\Debug\SDG.NetTransport.dll -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\bin\Debug\UnityEngine.CoreModule.dll -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\bin\Debug\UnityEngine.dll -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\obj\Debug\TaserPlugin.csproj.AssemblyReference.cache -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\obj\Debug\TaserPlugin.csproj.CoreCompileInputs.cache -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\obj\Debug\TaserPlugin.csproj.CopyComplete -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\obj\Debug\TaserPlugin.dll -C:\Users\pavol\source\repos\Unturned Plugins\TaserPlugin\TaserPlugin\obj\Debug\TaserPlugin.pdb diff --git a/TaserPlugin/obj/Debug/TaserPlugin.dll b/TaserPlugin/obj/Debug/TaserPlugin.dll deleted file mode 100644 index 35b6a3f..0000000 Binary files a/TaserPlugin/obj/Debug/TaserPlugin.dll and /dev/null differ diff --git a/TaserPlugin/obj/Debug/TaserPlugin.pdb b/TaserPlugin/obj/Debug/TaserPlugin.pdb deleted file mode 100644 index 6b52a61..0000000 Binary files a/TaserPlugin/obj/Debug/TaserPlugin.pdb and /dev/null differ