Author Topic: Adding item slots in a Player.  (Read 624 times)

How would you add more item/ weapon slots in a player file?

There's a support add-on file somewhere in old RTB. It allows you to set how many slots a player has. The most you can fit on the screen is 9 so...



The most you can fit on the screen is 9 so...

This depends on your resolution.

Better safe than sorry.

What old RTB? I remember it was something like Inventory slots 9
                                                                             Item slots 9
                                                                             weapon slots 9

The file was: Support_InventorySlots.zip
Here is the server.cs:
Code: [Select]
package InventorySlotAdjustment
{
function GameConnection::setControlObject(%this,%obj)
{
Parent::setControlObject(%this,%obj);
if(%obj == %this.player)
commandToClient(%this,'PlayGui_CreateToolHud',%obj.getDatablock().maxTools);
}
function Player::changeDatablock(%this,%data,%client)
{
if(%data != %this.getDatablock())
commandToClient(%this.client,'PlayGui_CreateToolHud',%data.maxTools);
Parent::changeDatablock(%this,%data,%client);
}
};
activatePackage(InventorySlotAdjustment);
« Last Edit: July 30, 2009, 06:06:23 AM by chilmans »

So would I add "maxTools 8" to the player type to make it have 8 inventory slots?