English [Script] Is there any way to get key pressing

1 reply
Goto Page
To the start Previous 1 Next To the start
Up
_oops
User
Offline Off
I want know is there any way to get key pressing from client in cs2d.

I know that default Lua library does not provide such functionality.

But I do remember user BrunoRZ ( currently never online for recent 2 years ) made script that firing projectiles by pressing key F6 or F7 and other effects by pressing numbers in keyboard ( e.g : 0 ~ 9 )

Actually I thought it's possible to make functions by pressing numbers in cs2d with cs2d hook - cs2d lua hook parse and cs2d command - cs2d cmd slot0 ~ cs2d cmd slot9.
However parse can not handle client's parsing but only server.

So I want know if anyone knows the Lua library related in such things exist or other ways to work.
this game was fun
04.10.17 06:24:34 pm
Up
_Yank
User
Offline Off
It is not possible to achieve that key processing thing you're asking for. The only free keys dedicated to server scripts are the serveraction ones (by default F1, F2 and F3)

You can use cs2d lua cmd menu to map the number keys though (through its invisible mode)
To the start Previous 1 Next To the start