Author Topic: Weapon Slot Select  (Read 601 times)

is it possible to make a client-side mod to select items from your inventory?

sometimes the mouse wheel is just not fast enough



... also, team fortress.

What would be faster?
:D



EDIT: You could do what Chrono did with his RPG thing...
 
All the weapons are in the bricks menu.

Select Weapon In Inventory binds.


EDIT: You could do what Chrono did with his RPG thing...
 
All the weapons are in the bricks menu.
That would be server-sided.

I'm sure it's possible to add binds to quickly use certain slots. I could try that right now.

-broken stuff-
« Last Edit: May 27, 2009, 03:14:18 PM by Chrono »

This should be default in blockland... Now that i think about it... This comes in handy.

Especially if you're really out of date on computer hardware bad enough that you don't have a mouse wheel. Like me.

I truely thank myself for releasing this.

Fixed.

Code: [Select]
if(!$addedQuickToolBinds)
{
$remapDivision[$remapCount] = "Quick Tools";
for(%x=1;%x<=5;%x++)
{
$remapName[$remapCount] = "Use Tool " @ %x;
$remapCmd[$remapCount] = "useTool" @ %x;
$remapCount++;
}
$addedQuickToolBinds = 1;
}

function useTool1(%val)
{
if(%val)
{
commandToServer('useTool',0);
setActiveTool(0);
}
}

function useTool2(%val)
{
if(%val)
{
commandToServer('useTool',1);
setActiveTool(1);
}
}

function useTool3(%val)
{
if(%val)
{
commandToServer('useTool',2);
setActiveTool(2);
}
}

function useTool4(%val)
{
if(%val)
{
commandToServer('useTool',3);
setActiveTool(3);
}
}

function useTool5(%val)
{
if(%val)
{
commandToServer('useTool',4);
setActiveTool(4);
}
}