ShimmyMySherbet / ShimmysAdminTools

A feature-rich admin toolkit for Unturned. Including Flight, Noclip, and Command Spying.
GNU General Public License v3.0
29 stars 7 forks source link

Pointtool Destroy Error on Resources #23

Closed AdamDN closed 1 year ago

AdamDN commented 1 year ago
OverflowException: Value was either too large or too small for an Int16.
  at System.Convert.ToInt16 (System.Int32 value) [0x0001a] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Convert.ToInt16 (System.Double value) [0x00006] in <695d1cc93cca45069c528c15c9fdd749>:0
  at uScriptEvents.OnResourceDamaged.onResourceDam (Steamworks.CSteamID instigatorSteamID, UnityEngine.Transform objectTransform, System.UInt16& pendingTotalDamage, System.Boolean& shouldAllow, SDG.Unturned.EDamageOrigin damageOrigin) [0x0005b] in <88c74d4192b5478cadb43a69a9a279d4>:0
  at ModuleEvents.ModuleEvents+<>c.<OnModuleLoaded>b__1_2 (Steamworks.CSteamID instigatorSteamID, UnityEngine.Transform objectTransform, System.UInt16& pendingTotalDamage, System.Boolean& shouldAllow, SDG.Unturned.EDamageOrigin damageOrigin) [0x00001] in <88c74d4192b5478cadb43a69a9a279d4>:0
  at (wrapper delegate-invoke) <Module>.invoke_void_CSteamID_Transform_uint16&_bool&_EDamageOrigin(Steamworks.CSteamID,UnityEngine.Transform,uint16&,bool&,SDG.Unturned.EDamageOrigin)
  at SDG.Unturned.ResourceManager.damage (UnityEngine.Transform resource, UnityEngine.Vector3 direction, System.Single damage, System.Single times, System.Single drop, SDG.Unturned.EPlayerKill& kill, System.UInt32& xp, Steamworks.CSteamID instigatorSteamID, SDG.Unturned.EDamageOrigin damageOrigin, System.Boolean trackKill) [0x00018] in <fb1655bc0c7943709df04342a39838e1>:0
  at ShimmysAdminTools.Modules.PointToolManager.RunDestroyTool (Rocket.Unturned.Player.UnturnedPlayer Player, ShimmysAdminTools.Models.RaycastResult Raycast) [0x00219] in <12a2ee9cddcb49c0aca4dcbf6bc8ef2c>:0
  at ShimmysAdminTools.Modules.PointToolManager.RunPointTool (Rocket.Unturned.Player.UnturnedPlayer Player, ShimmysAdminTools.Models.PlayerSession Session, Rocket.Unturned.Events.UnturnedPlayerEvents+PlayerGesture gesture) [0x00064] in <12a2ee9cddcb49c0aca4dcbf6bc8ef2c>:0
  at ShimmysAdminTools.Modules.PointToolManager.ManageGestureUpdate (Rocket.Unturned.Player.UnturnedPlayer player, Rocket.Unturned.Events.UnturnedPlayerEvents+PlayerGesture gesture) [0x0005c] in <12a2ee9cddcb49c0aca4dcbf6bc8ef2c>:0
  at ShimmysAdminTools.Behaviors.PointToolInputListener.FixedUpdate () [0x000c3] in <12a2ee9cddcb49c0aca4dcbf6bc8ef2c>:0