Inventory Fix?
by Paul /*Wedge*/ DElia · in General Discussion · 02/08/2004 (6:58 pm) · 3 replies
Dunno if it was ever reported, but the inventory stops working right sometimes if a player kills themselves. As in hitting the number keys won't change weapons like it should. Hitting left-control, which is a keybind for "Permanent Flip Trays" or something, fixes it. But it's still pretty annoying, is there anyway (in script) to either have this auto-fix or keep it from happening? Also when an when a weapon is equipped on player-spawn, it isn't actually selected in the inventory, is there a way to have that set automatically? I don't really understand the inventory system enough more than to just use it.
About the author
#2
03/16/2004 (12:02 pm)
Where is the Keybind of Ctrl with deactivating inventory? I have much problems with the deactivation-"feature", so I want to get it out of the script. How can I ?
#3
03/23/2004 (1:05 pm)
Huh I never saw this. Well if you haven't figured it out by now, this doesn't actually "deactivate" the inventory, but simply swaps between the two inventory "trays". So it goes from slots 0-9 to 10-18. You can only remove it on the client end, just look for the function called flipTraysPermanent in the rw/client/scripts/inventory.cs file and comment out the one line of code that is in the function. Since you are on the client end anyway though, you could also open the rw/client/config.cs file and just find where the function is mapped to "lcontrol" and change the key it's mapped to so you can't use it accidentally so easily.
Torque Owner Paul /*Wedge*/ DElia