Forum

> > CS2D > Scripts > Hudtext under the mouse
Forums overviewCS2D overview Scripts overviewLog in to reply

English Hudtext under the mouse

3 replies
To the start Previous 1 Next To the start

old Hudtext under the mouse

Promaster
User Off Offline

Quote
I wonder if there is possible to make a code that makes a hud text under the mouse. If there is possible, can you explain how the code would work?

old Re: Hudtext under the mouse

Rainoth
Moderator Off Offline

Quote
You would use cs2d lua cmd reqcld and cs2d lua hook clientdata to get player's cursor position on screen and the put hudtxt on that position. You'd have to use ms100 hook at least for it to look decently smooth, though. That's how you do it. I can't guarantee it wouldn't lag.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview