Does not keep your weapon if you redeem an autokit on respawn , The held weapon is found on the ground near the corpse or despawns if locating the corpse takes too long,
Not working with Kits
Now Getting this error in console when a player is killed
Failed to call hook 'OnEntityDeath' on plugin 'KeepActiveItem v2.1.0' (NullReferenceException: Object reference not set to an instance of an object) at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x00025] in <046173048be24f69a4e40561b1ef3c0e>:0
at Oxide.Plugins.KeepActiveItem.OnEntityDeath (BasePlayer player, HitInfo info) [0x0004e] in <9bd85e74bde84ba5a9dfb8421ac0e928>:0
at Oxide.Plugins.KeepActiveItem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001ab] in <9bd85e74bde84ba5a9dfb8421ac0e928>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Plugins.KeepActiveItem.OnEntityDeath (BasePlayer player, HitInfo info) [0x0004e] in <9bd85e74bde84ba5a9dfb8421ac0e928>:0
at Oxide.Plugins.KeepActiveItem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001ab] in <9bd85e74bde84ba5a9dfb8421ac0e928>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0
Calling 'OnPlayerDeath' on 'PlayerGravestone v1.1.1' took 381ms
Failed to call hook 'OnPlayerWound' on plugin 'KeepActiveItem v2.1.0' (NullReferenceException: Object reference not set to an instance of an object) at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x00025] in <046173048be24f69a4e40561b1ef3c0e>:0
at Oxide.Plugins.KeepActiveItem.OnPlayerWound (BasePlayer player) [0x00043] in <9bd85e74bde84ba5a9dfb8421ac0e928>:0
at Oxide.Plugins.KeepActiveItem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0015b] in <9bd85e74bde84ba5a9dfb8421ac0e928>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Plugins.KeepActiveItem.OnPlayerWound (BasePlayer player) [0x00043] in <9bd85e74bde84ba5a9dfb8421ac0e928>:0
at Oxide.Plugins.KeepActiveItem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0015b] in <9bd85e74bde84ba5a9dfb8421ac0e928>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0
I took the precaution of making sure the autokit from kits plugin had two empty belt slots so that the held item would have a slot
to spawn into
Also have the error. And the active item is on the ground
> Failed to call hook 'OnPlayerWound' on plugin 'KeepActiveItem v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x00025] in <583dea4f12954adeb3446abf14765a15>:0
at Oxide.Plugins.KeepActiveItem.OnPlayerWound (BasePlayer player) [0x00043] in <6c6b8155152a476693ce861610be3652>:0
at Oxide.Plugins.KeepActiveItem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0015b] in <6c6b8155152a476693ce861610be3652>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0
Still getting error after last game update when player is killed , weapon is on ground even though there are empty belt/inventory slots available
BHP Security[2901354] was killed by pookins[76561############] at (1553.1, 23.2, -745.1)
Failed to call hook 'OnPlayerWound' on plugin 'KeepActiveItem v2.1.0' (NullReferenceException: Object reference not set to an instance of an object) at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x00025] in <a1a76f898f8c418f92ad32de2c24276b>:0
at Oxide.Plugins.KeepActiveItem.OnPlayerWound (BasePlayer player) [0x00043] in <7257aff6e937448a8d05edc798325d50>:0
at Oxide.Plugins.KeepActiveItem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0015b] in <7257aff6e937448a8d05edc798325d50>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Plugins.KeepActiveItem.OnPlayerWound (BasePlayer player) [0x00043] in <7257aff6e937448a8d05edc798325d50>:0
at Oxide.Plugins.KeepActiveItem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0015b] in <7257aff6e937448a8d05edc798325d50>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0
Still getting RED error in consol when a player is killed
HHRAG[76561############] was killed by bear (Bear) at (-1090.2, 27.6, 1224.5)
[Where's My Corpse] Player death info: 76561############ at (-1090, 28, 1225)
Failed to call hook 'OnEntityDeath' on plugin 'KeepActiveItem v2.1.0' (NullReferenceException: Object reference not set to an instance of an object) at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x00025] in <eda141882673469ab3b840abd2cc1dba>:0
at Oxide.Plugins.KeepActiveItem.OnEntityDeath (BasePlayer player, HitInfo info) [0x0004e] in <20a933ed4b8047908dbf370ba37d73c1>:0
at Oxide.Plugins.KeepActiveItem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001ab] in <20a933ed4b8047908dbf370ba37d73c1>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Plugins.KeepActiveItem.OnEntityDeath (BasePlayer player, HitInfo info) [0x0004e] in <20a933ed4b8047908dbf370ba37d73c1>:0
at Oxide.Plugins.KeepActiveItem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001ab] in <20a933ed4b8047908dbf370ba37d73c1>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0
Calling 'OnPlayerDeath' on 'PlayerGravestone v1.1.1' took 467ms
Still getting red error in consol and held item is dropped.
Failed to call hook 'OnPlayerWound' on plugin 'KeepActiveItem v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x00025] in <21e17b5e224e4c158edba3bf04060412>:0
at Oxide.Plugins.KeepActiveItem.OnPlayerWound (BasePlayer player) [0x0003d] in <6870b0871a6b445f9fb5bd6e55d60dea>:0
at Oxide.Plugins.KeepActiveItem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0015b] in <6870b0871a6b445f9fb5bd6e55d60dea>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cd7231f30b444d86bc6cca8a53cdd2ea>:0