Forum

> > CS2D > Scripts > Triple Bind
Forums overviewCS2D overview Scripts overviewLog in to reply

English Triple Bind

3 replies
To the start Previous 1 Next To the start

old Triple Bind

Mami Tomoe
User Off Offline

Quote
Is it possible to make a bind that will do 3 things (or more)?

I have a script to make 2 things out of one key but it wont work for more ...

old Re: Triple Bind

GeoB99
Moderator Off Offline

Quote
Binding keys is a local client side setting while the Lua scripts is server sided. That means it is not possible to bind a key with a functionality of a script for security purposes except binding a key to execute a specific script. With that say, only F2, F3 and F4 keys are supported for lua script functions such as opening a menu, etc. Plus it's not possible to bind a key with more things neither to prevent further problems.

old Re: Triple Bind

Cure Pikachu
User Off Offline

Quote
@user GeoB99: He probably meant an autoexec.cfg script (most buy scripts fall under this category).
@OT: All instructions within that one bind will be executed in one swift motion - an instruction will not wait for the previous to finish before starting. And it's designed like that because:
thread cs2d 'wait' function for bind has written
user -D1aMoNd_: If you add a "wait" command, everyone would 1-click awp shot. Bad idea
user were50: Yea I agree. This would make snipers really cheap o.o Then after the shot they would also add a part to zoom out. I think DC thought about this and thats why he's not adding it.
user DC: yes, it allows you to automate certain processes too much which is pretty unfair (nearly like cheating). that's the main reason why I don't implement a wait command.

We also have threads like these already, such as thread cs2d Bind turret build .
Final answer: Yes, but only with certain commands, such as server-sided commands like cs2d cmd setmaxhealth and cs2d cmd setmoney . Doing something like this however
1
bind "u" "m4a1; deagle; hegren"
is not possible, at least for me. That code above only buys the M4A1 and that's it - it ignores the remaining 2 commands.
edited 4×, last 17.12.15 05:59:31 pm

old Re: Triple Bind

Pagyra
User Off Offline

Quote
For correct binds - there are dependent on what player actions catches with hooks at server-side with lua script - so in a simpler form, it can be represented so: you can use a bind of specific chat symbols or words or mouse movement or any other actions - which can be previously scripted as hook at server side so server has ability to perceive this action as a condition for execution of lua script.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview