Here's my proposal. Every comment has a 'Reply' link after it. Clicking on this link adds the standard @UserName: to the comment edit box.
When the referenced comment is hidden, one of two things can happen:
- The comments section is expanded and unshown comments are revealed, or
- A hovering div appears next to the pointer containing the comment that is referenced.
No. 2 is probably easier to implement.