add box features
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
//bls 3
|
||||
// Handles interactions with the handheld duplicator item.
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
@ -230,15 +231,22 @@ package NewDuplicator_Server
|
||||
//Prevent accidently unequipping the duplicator
|
||||
function serverCmdUnUseTool(%client)
|
||||
{
|
||||
if(%client.ndLastEquipTime + 1.5 > $Sim::Time)
|
||||
return;
|
||||
|
||||
if(%client.ndModeIndex == $NDM::StackSelect || %client.ndModeIndex == $NDM::BoxSelect)
|
||||
{
|
||||
%client.ndToolSchedule = %client.schedule(100, ndUnUseTool);
|
||||
if(
|
||||
%client.ndLastEquipTime + 1.5 > $Sim::Time &&
|
||||
isObject(%client.player) &&
|
||||
getSubStr(%client.player.getMountedImage(0).getName(), 0, 8) $= "ND_Image"
|
||||
) {
|
||||
%client.ndLastEquipTime = "";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if(%client.ndModeIndex == $NDM::StackSelect || %client.ndModeIndex == $NDM::BoxSelect)
|
||||
{
|
||||
//%client.ndToolSchedule = %client.schedule(100, ndUnUseTool);
|
||||
%client.ndUnUseTool();
|
||||
return;
|
||||
}
|
||||
|
||||
parent::serverCmdUnUseTool(%client);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user