Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Snippet/Binds] Using class binds in vanilla servers

Featured Replies

Опубликовано:

This is not a mod at all, just some kind of advanced binds.

 

Well, it's quite annoying IMO to change class while being ingame through the menu (as i need to press 3 buttons total, 1x keyboard 2x mouse....).

That's why i made some binds so that you just need to press one button, instead of three to change to your desired class.

 

Video:

 

 

Copy-paste the commands into your players/config_m2.cfg. (or into the ingame console with / infront...)

1) Binding class

a) custom classes

bind 6 "openscriptmenu changeclass custom1" //changes to custom class 1 , duh

- you can use custom1 - custom10

 

You may also add a text (which will show up in your killfeed area) by adding ;awesometexthere after the custom1.

E.g. this is what i have:

bind 6 "openscriptmenu changeclass custom3;^7[^0scope^7]"
bind 7 "openscriptmenu changeclass custom4;^7[^0ak47^7]"
bind 8 "openscriptmenu changeclass custom5;^7[^0mp5k^7]"

B) default classes

If you want to bind default classes:

bind 9 "openscriptmenu changeclass class0;^7[^0def_famas^7]"
bind 0 "openscriptmenu changeclass class1;^7[^0def_ump45^7]"

- use class0 - class4

 

2) Bind team change (to balance teams)

You can also bind this, to be able to balance teams by pressing just one button:

bind B "openscriptmenu team_marinesopfor autoassign"

 

NOTE: You have to manually choose team and class once on connect through menu.

 

Hopefully this comes in handy for some.

Опубликовано:
is there a way to make the client leave the lobby/server like: bind L "openscriptmenu exec_leave_game" ?

/bind L "+exec disconnect"

exec is not nessessary. just

bind KEY "disconnect"

is enough.

And if you know the IPs of your favorite gameservers u can use this command:

bind KEY "disconnect; wait 100; connect IP:Port

I use this to join trough my servers just by clicking the keys F9 to F11

Опубликовано:
  • Автор
is there a way i can do this in a mod? say if a client press's 2 it auto leaves and connects to a predfined IP?

 

Yes it'd very easy, but only using .menu files and that's not an option as of now on public servers...

Опубликовано:
is there a way i can do this in a mod? say if a client press's 2 it auto leaves and connects to a predfined IP?

 

Yes it'd very easy, but only using .menu files and that's not an option as of now on public servers...

 

 

so something like

self notifyOnPlayerCommand( "connect IP:Port", "+actionslot 1" );

 

would most likely not work?

Опубликовано:
is there a way i can do this in a mod? say if a client press's 2 it auto leaves and connects to a predfined IP?

 

Yes it'd very easy, but only using .menu files and that's not an option as of now on public servers...

 

 

so something like

self notifyOnPlayerCommand( "connect IP:Port", "+actionslot 1" );

 

would most likely not work?

 

 

just as a thought typing connect IP while in a server auto leaves and connects to the one in question so perhaps something like that could some-how be sent to the clients console? :)

Опубликовано:
  • Автор
could some-how be sent to the clients console?

 

That's the reason why .menu files are necessary to implement that 'redirection' thingy you requested. It's not possible with 'just' .gsc scripting.

Опубликовано:
  • Автор
banz, can you make this compatible with your promod so I don't have to bind for your mod and public matches?

 

Yup, done. It will be in promodlive_v3.2c. So you will be able to bind up to 10 custom classes and 5 default classes...

Also added a 'nade toggle'-bind to it (flash / smoke), but that won't work in vanilla...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.