Difference between revisions of "General Class Scripts"
(Added three new scripts/binds for helping players with selecting weapons, spawning with weapons, and discarding ammo. Nothing is a cheat.) |
|||
Line 187: | Line 187: | ||
alias quick2 "slot5; wait; alias quickweapon quick1" | alias quick2 "slot5; wait; alias quickweapon quick1" | ||
alias quickweapon quick1</pre></code>}} | alias quickweapon quick1</pre></code>}} | ||
+ | |||
+ | |||
+ | ==Empty Number Keys Fix== | ||
+ | Script by [http://forums.fortress-forever.com/member.php?u=14805 Gibz] | ||
+ | |||
+ | '''Description''' | ||
+ | Not much of a script at all, but still pretty useful. | ||
+ | This makes it so that you do not have number keys that do nothing. For instance, as a Soldier, you have no weapon in slot4. Pressing 4 does nothing as a Soldier, and you have to press 5 to select your RPG. With these binds, pressing 4 will select your RPG, instead of 5. | ||
+ | |||
+ | {{Scripts | Description=Number keys to not skip slots | Script=Put this code in your [[Userconfig_default|userconfig.cfg]] | ||
+ | <code><pre>//Number keys default | ||
+ | bind "1" "slot1" | ||
+ | bind "2" "slot2" | ||
+ | bind "3" "slot3" | ||
+ | bind "4" "slot4" | ||
+ | bind "5" "slot5" | ||
+ | bind "6" "slot6"</pre></code> | ||
+ | |||
+ | |||
+ | Put this code in your [[Scout_default|scout.cfg]] | ||
+ | <code><pre>//Number key binds | ||
+ | bind "3" slot4" | ||
+ | bind "4" slot5"</pre></code> | ||
+ | |||
+ | Put this code in your [[Soldier_default|soldier.cfg]] | ||
+ | <code><pre>//Number key binds | ||
+ | bind "4" "slot5"</pre></code> | ||
+ | |||
+ | Put this code in your [[Demoman_default|demoman.cfg]] | ||
+ | <code><pre>//Number key binds | ||
+ | bind "3" "slot4" | ||
+ | bind "4" "slot5" | ||
+ | bind "5" "slot6"</pre></code> | ||
+ | |||
+ | Put this code in your [[Hwguy_default|hwguy.cfg]] | ||
+ | <code><pre>//Number key binds | ||
+ | bind "4" "slot5"</pre></code> | ||
+ | |||
+ | Put this code in your [[Pyro_default|pyro.cfg]] | ||
+ | <code><pre>//Number key binds | ||
+ | bind "3" "slot4" | ||
+ | bind "4" "slot5"</pre></code>}} | ||
+ | |||
+ | |||
+ | ==Discard On Jump== | ||
+ | Script by [http://forums.fortress-forever.com/member.php?u=14805 Gibz] | ||
+ | |||
+ | '''Description''' | ||
+ | This causes you to discard your extra ammo whenever you jump, only while playing as Scout or Medic. | ||
+ | |||
+ | {{Scripts | Description=Discard on jump | Script=Put this code in your [[Userconfig_default|userconfig.cfg]] | ||
+ | <code><pre>bind "space" "+jump"</pre></code> | ||
+ | |||
+ | Put this code in your [[Scout_default|scout.cfg]] | ||
+ | <code><pre>//Discard on jump | ||
+ | bind "space" "+jump;discard"</pre></code> | ||
+ | |||
+ | Put this code in your [[Medic_default|medic.cfg]] | ||
+ | <code><pre>//Discard on jump | ||
+ | bind "space" "+jump;discard"</pre></code>}} | ||
+ | |||
+ | ==Spawn with a specific weapon== | ||
+ | Script by [http://forums.fortress-forever.com/member.php?u=14805 Gibz] | ||
+ | |||
+ | '''Description''' | ||
+ | This allows you to choose what weapon you want to spawn with selected. Say I want to always spawn with my Super Shotgun equipped whenever I spawn as an Engineer. I would add the command for it (cl_spawnweapon_engineer supershotgun) into my autoexec.cfg file and it would always spawn me with my Super Shotgun equipped, whenever I play as an Engineer. | ||
+ | Below is a list of every possible weapon you can specify. | ||
+ | |||
+ | {{Scripts | Description=Spawn with specified weapons selected | Script=Put this code in your [[Autoexec_default|autoexec.cfg]] | ||
+ | <code><pre>//Spawn weapons | ||
+ | cl_spawnweapon_scout crowbar/shotgun/nailgun | ||
+ | cl_spawnweapon_sniper crowbar/autorifle/sniperrifle/nailgun | ||
+ | cl_spawnweapon_soldier crowbar/shotgun/supershotgun/rpg | ||
+ | cl_spawnweapon_demoman crowbar/shotgun/grenadelauncher/pipelauncher | ||
+ | cl_spawnweapon_medic medkit/shotgun/supershotgun/supernailgun | ||
+ | cl_spawnweapon_pyro crowbar/shotgun/flamethrower/ic | ||
+ | cl_spawnweapon_spy knife/tranqgun/supershotgun/nailgun | ||
+ | cl_spawnweapon_engineer spanner/railgun/supershotgun</code></pre>}} | ||
+ | '''Alternatively:''' You may specify which slot number, rather than the weapon name itself. |
Revision as of 15:53, 12 July 2009
Below you will find general scripts that can / should be used by one or more classes. Instructions for where to place these scripts can be found with the associated script, however generally you will want to place these scripts into your userconfig.cfg.
Name Announcement 1
Script by Dr.Satan
Instructions
For this script you will need to place each script in the specified <classname>.cfg
To change the key, replace the following line with your desired key:
bind "rightarrow" "<class_n>"
An example using the "f" key:
bind "f" "scout_n"
File:Note.png Note: For this particular script you will need to change this line in each of the classname.cfg's.
|
Name Announcement 2
Script by Dr.Satan
Instructions
For this script you will need to place the following code into your userconfig.cfg
To use the script press enter on the keypad and then the coresponding key for each class.
|
Quick Weapon Switch
Script by Dr.Satan
Instructions For this script you will need to place each script in the specified <classname>.cfg
|
Empty Number Keys Fix
Script by Gibz
Description Not much of a script at all, but still pretty useful. This makes it so that you do not have number keys that do nothing. For instance, as a Soldier, you have no weapon in slot4. Pressing 4 does nothing as a Soldier, and you have to press 5 to select your RPG. With these binds, pressing 4 will select your RPG, instead of 5.
|
Discard On Jump
Script by Gibz
Description This causes you to discard your extra ammo whenever you jump, only while playing as Scout or Medic.
|
Spawn with a specific weapon
Script by Gibz
Description This allows you to choose what weapon you want to spawn with selected. Say I want to always spawn with my Super Shotgun equipped whenever I spawn as an Engineer. I would add the command for it (cl_spawnweapon_engineer supershotgun) into my autoexec.cfg file and it would always spawn me with my Super Shotgun equipped, whenever I play as an Engineer. Below is a list of every possible weapon you can specify.
|
Alternatively: You may specify which slot number, rather than the weapon name itself.