Blockland Forums > General Discussion
Super bow
(1/2) > >>
MARBLE MAN:
I was looking back at old blockland when i stumbled upon this:
//function BowItem::onUse(%this, %player, %InvPosition)
//{
//   //check for quiver
//   //if you dont have it, regular bow
//   //if you do, super bow
//
//   %client = %player.client;
//
//   %mountPoint = %this.image.mountPoint;
//   %mountedImage = %player.getMountedImage(%mountPoint);
//
//
//   if(%mountedImage)
//   {
//      if(%mountedImage == bowImage.getId() || %mountedImage == superbowImage.getId())
//      {
//         //some kind of bow mounted so, unmount it
//         %player.unMountImage(%mountPoint);
//         messageClient(%client, 'MsgHilightInv', '', -1);
//         %player.currWeaponSlot = -1;
//      }
//      else
//      {
//         //something other than bow mounted, so do bow selection and mount
//         if(%player.getMountedImage($BackSlot))
//         {
//            if(%player.getMountedImage($BackSlot) == quiverImage.getId())
//            {
//               %player.mountimage(superBowImage, $RightHandSlot, 1, %skin);
//               messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//               %player.currWeaponSlot = %invPosition;
//            }
//            else
//            {
//               %player.mountimage(bowImage, $RightHandSlot, 1, %skin);
//               messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//               %player.currWeaponSlot = %invPosition;
//            }
//         }
//         else
//         {
//            %player.mountimage(bowImage, $RightHandSlot, 1, %skin);
//            messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//            %player.currWeaponSlot = %invPosition;
//         }
//      }
//      
//   }
//   else
//   {
//      //nothing mounted so do bow selection and mount
//      //something other than bow mounted, so do bow selection and mount
//      if(%player.getMountedImage($BackSlot))
//      {
//         if(%player.getMountedImage($BackSlot) == quiverImage.getId())
//         {
//            %player.mountimage(superBowImage, $RightHandSlot, 1, %skin);
//            messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//            %player.currWeaponSlot = %invPosition;
//         }
//         else
//         {
//            %player.mountimage(bowImage, $RightHandSlot, 1, %skin);
//            messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//            %player.currWeaponSlot = %invPosition;
//         }
//      }
//      else
//      {
//         %player.mountimage(bowImage, $RightHandSlot, 1, %skin);
//         messageClient(%client, 'MsgHilightInv', '', %InvPosition);
//         %player.currWeaponSlot = %invPosition;
//      }
//   }
//}
Dglider:
Interesting, have you been able to find the superbow anywhere else?
Space Guy:
This was used in Blockland v0002, I think the Bow (and other weapons in the original RTB mod) had a slightly faster firing rate when you had a quiver on. Most of that is to do with the original Blockland/Torque engine item select methods (Press a number to use and the same number to put away instead of the scroll bar)
lordician:
So that's where the myth of the quiver and bow came from..
Kniaz:
Yep, what Space Guy said.
If you look at the armor and helmet you'll notice they buff your health, too.
Navigation
Message Index
Next page

Go to full version