Everyone should know how to bind a button in Contra. Help with advice

One of the main non-obvious and invisible to the ordinary player advantages of the counter strike games is their openness to modification. Almost all files are located on the surface - weapons models, sounds, graphics of shots and explosions - all this can be replaced by banal copying of files. However, let's not discuss today how to make a mod for the game by copying / pasting, but let's talk about such a nice feature, like a console.

how to bind a button
I bet all the oldfags know how to use it even if only because they wrote mp_startmoney 16000 in those glorious times when Contra was played mainly in clubs and it was easy to deal with cheaters by plastic means with plastic surgery. Well, let's not deviate from the topic. The console opens with a tilde and is, in fact, an editor of all the text parameters of the game. That is, any operation to configure the game can be done by quickly typing in the console text, and not rummaging through the windows and wasting your time. Actually, the console itself can save you a lot of time and help you become a true Father. Therefore, we will figure out how to bind the button.

A bind is a function assignment for a key. This is done by writing in the console a command of the form: bind "key name" "command name". Example: the bind "H" command "say they are on B" means when you press the H key, the game automatically sends a message "they are on B" to the chat.

You can assign any command from the console to any key. The main thing is to know the text code of the command itself and the desired key. Many of you have already thought about it, but how do you remember all the key labels? Calm down - nothing to learn. There is one simple and logical way. Go to the keyboard settings and just see how the name of a button assigned to control is written. This is her code.

Next, we deal with commands and options for how to bind a button in css. As I said, you can bind everything to everything. There are only small nuances. We will consider them below:

1) How to tie a button on a chat message. You need to write a command of the form: Bind "button code" "say message text". Now every time you click on the assigned button, an in-band command will be sent to the general chat. Please note that say it is mandatory to write before the message - this clarification tells the game what exactly you want from it. If you want to bind a message for team chat, write say_team.

2) How to bind a button to a command. This is the easiest option. Just write Bind "button code" "command from the console" For example: bind "P" sv_restart 1 restarts the game within 1 second.

how to bind a button in css
3) How to tie up a button to buy weapons.
Actually, this is the secret to the quick purchase of all the Fathers of the cs. Write bind "button" "buy weapon code". Buy in this case is the same refinement as say. Therefore, do not forget it. This item is a bit more complicated, because each weapon has its own code, which you will have to remember. For clarity, I will write all the codes below:

Shotguns

m3 (shotgun)

xm1014 (automatic shotgun)

Automatic machines
mac10 (uzik)
tmp (tmp)
p90 (cock)
mp5navy (mp5)
ump45 (tractor)

Assault rifles
galil (galil)
ak47 (Kalash)
famas
m4a1 (Emka)
aug (Staer)
sg552 (terror staer)
scout (fly swatter)
sg550 (Zigger - fast Conter sniper)
g3sg1 (fast terror terror sniper)
awp (elephant)

Machine gun
m249 (machine gun)

how to bind a button in cop
Guns
glock
usp (usp)
p228 (228 Compact)
elite (terror double pistol)
fiveseven (konterovsky 1-5)
deagle

Cartridges
primammo - "cartridges"
secammo - pistol cartridges

Equipment
flashbang (blind man)
hegrenade (fragmentation)
smokegrenade (smoke exhaust)
vest (bronik)
vesthelm (bronik + helmet)
nvgs (night vision device)
defuser (clearance kit)

Now you know how to bind a button in cop. More frags to you. Good luck

Source: https://habr.com/ru/post/F22729/


All Articles