Shockwave Ctrl+Click Pickup & Shift+Click Rotate

paswrd

Administrator
Staff member
Apr 18, 2017
64
2
31

Find Room Interface Class in hh_room and add the following code to the bottom of eventProcActiveObj.

Code:
if (the controlDown and tIsController) then
 
    if pSelectedType = "active" then
      ttype = "stuff"
    else if pSelectedType = "item" then
      ttype = "item"
    end if
 
    me.hideInterface(#hide)
    return me.getComponent().getRoomConnection().send("ADDSTRIPITEM", "new" && ttype && pSelectedObj)
 
 
  end if

  if (the shiftDown and tIsController) then
    me.getComponent().getActiveObject(pSelectedObj).rotate()
  end if

You will need to comment out this line:
Code:
if the shiftDown then
    --return me.outputObjectInfo(tSprID, "active", the rollover)
  end if
Comment out the return statement otherwise, it hits this part of the code first, causing it to capture the shift event. You can comment it out or simply remove that piece.

This will allow you to use CTRL+Click to pickup items and Shift+Click to rotate furniture.

Special thanks to Webbanditten for this addition from his v14 client.