We can also bind a key to execute multiple commands. Since we want to bind x to the SMG, we will substitute x for and weaponbank 3 for. We'll start by binding the x-key to select the primary weapon (typically the SMG) (weaponbank 3). We'll discuss this later, but you can go to some of the examples section and look at the crouch toggle and the demo recording script to see what in-game messages I give myself when the script is activated.īinding a key to perform a single action is the easiest place to start. You can also use the Echo command (more on this later) to give yourself in-game messages when a script has been activated. RTCW will not execute anything that follows a pair of double-backslashes (//). It will help better organize scripts in your configuration and if you want to give your scripts to other people, it makes it pretty clear what it does. I put all of my scripts into an autoexec.cfg.Īs you write scripts, use //comments to help annotate what your script does. The reason is that RTCW overwrites the wolf_mp.cfg file every time you start a game or change settings and therefore will delete any scripts and comments you add. Facilitate config customization for multiple mods or classes (e.g., Engineer vs Medic)Īfter reading through this basic explanation of script writing you should be comfortable with writing your own basic scripts. Execute multiple functions with one keystroke (e.g., demo recording)ģ. Improve control flexibility (e.g., multiple weapon binds)Ģ. I've added scripts to my basic configuration for three main reasons:ġ. Once you learn the basics, it's easy.įirst, why write scripts and what do they do for you? I want to help you understand how to write scripts so that you can make your own. ![]() What I'll try to do here is a little different. ![]() For many of them, using them in RTCW is just a matter of modifying the script a little. "Where do I find a dual weapon bind?" Where can I find a crouch script?" There are plenty of sites that offer ready-made scripts just waiting for you to copy and paste into your autoexec. I see script-related questions all the time.
0 Comments
Leave a Reply. |