Difference between revisions of "General Class Scripts"
(new script added.) |
|||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 96: | Line 96: | ||
// ----- | // ----- | ||
| − | alias demo_n "say_team Now playing demo!" | + | alias demo_n "say_team Now playing demo!; u_all" |
| − | alias engy_n "say_team Now playing engy" | + | alias engy_n "say_team Now playing engy; u_all" |
| − | alias hw_n "say_team Now playing hw!" | + | alias hw_n "say_team Now playing hw!; u_all" |
| − | alias med_n "say_team Now playing medic!" | + | alias med_n "say_team Now playing medic!; u_all" |
| − | alias pyro_n "say_team Now playing pyro!" | + | alias pyro_n "say_team Now playing pyro!; u_all" |
| − | alias scout_n "say_team Now playing scout!" | + | alias scout_n "say_team Now playing scout!; u_all" |
| − | alias sniper_n "say_team Now playing sniper!" | + | alias sniper_n "say_team Now playing sniper!; u_all" |
| − | alias solly_n "say_team Now playing solly!" | + | alias solly_n "say_team Now playing solly!; u_all" |
| − | alias spy_n "say_team Now playing spy!" | + | alias spy_n "say_team Now playing spy!; u_all" |
alias namebind "bind KP_END scout_n; bind KP_DOWNARROW sniper_n; bind KP_PGDN solly_n; | alias namebind "bind KP_END scout_n; bind KP_DOWNARROW sniper_n; bind KP_PGDN solly_n; | ||
| Line 113: | Line 113: | ||
echo 6) HWGuy; echo 7) Pyro; echo 8) Spy; echo 9) Engineer" | echo 6) HWGuy; echo 7) Pyro; echo 8) Spy; echo 9) Engineer" | ||
| − | alias | + | alias u_all "unbind KP_END; unbind KP_DOWNARROW; unbind KP_PGDN; unbind KP_LEFTARROW; |
unbind KP_5; unbind KP_RIGHTARROW; unbind KP_HOME; unbind KP_UPARROW; unbind KP_PGDN" | unbind KP_5; unbind KP_RIGHTARROW; unbind KP_HOME; unbind KP_UPARROW; unbind KP_PGDN" | ||
bind KP_ENTER "namebind" | bind KP_ENTER "namebind" | ||
| − | + | </pre></code>}} | |
| − | |||
==Quick Weapon Switch== | ==Quick Weapon Switch== | ||
| Line 188: | 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''' | ||
| + | First, open NotePad and create a .cfg file. | ||
| + | Name it autoexec.cfg | ||
| + | Save it to your Fortress Forever CFG directory. | ||
| + | This is the file you will be using. | ||
| + | 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_heavy crowbar/shotgun/supershotgun/ac | ||
| + | cl_spawnweapon_pyro crowbar/shotgun/flamethrower/ic | ||
| + | cl_spawnweapon_spy knife/tranqgun/supershotgun/nailgun | ||
| + | cl_spawnweapon_engineer spanner/railgun/supershotgun | ||
| + | cl_spawnweapon_civilian umbrella</pre>}} | ||
Latest revision as of 15:58, 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 First, open NotePad and create a .cfg file. Name it autoexec.cfg Save it to your Fortress Forever CFG directory. This is the file you will be using. 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.
|