Is it possible to make a mutator that prevents you from throwing your lockpick/tool (maybe medkit too), the same way you can't throw your nanokeyring?
I found this in DeusExPlayer
- Code: Select all
exec function bool DropItem(optional Inventory inv, optional bool bDrop)
{
local Inventory item;
local Inventory previousItemInHand;
local Vector X, Y, Z, dropVect;
local float size, mult;
local DeusExCarcass carc;
local class<DeusExCarcass> carcClass;
local bool bDropped;
local bool bRemovedFromSlots;
local int itemPosX, itemPosY;
bDropped = True;
..........
// don't let us throw away the nanokeyring
if (item.IsA('NanoKeyRing'))
{
return False;
}