Heavy scripts
From TF2 Wiki
|
Contents |
Machine Mode
- This script turns the player into a simple machine of death by causing him to fire continuously (without holding the left mouse button) and crouch. It is useful for a heavy being fed by a dispenser, as the dispenser will give him an unlimited ammo supply. If you want to be a machine for your team but you don't want to be glued to your computer for the entire time, then use this script to enable using Machine Mode. Use SHIFT+Insert to turn Machine Mode on and use SHIFT+Delete to turn it off.
- The player crouches in order to mantain a low profile, making him less of a target (especially to enemy snipers). However, the HWG cannot walk while crouched and spinning his gun (or shooting) at the same time. To enable walking but not crouching, remove "+duck" and "-duck" from the script.
- Posted by H4l0gen
//--------------------------------------------------
// Machine Mode Toggle
// When machine mode is on, the player will attack without pressing MOUSE1.
// SHIFT+INS will turn on machine mode; SHIFT+DEL will turn it off.
// Whatever INS and DEL generally do ("unbind" means they do nothing)
alias keymod_ins_general "unbind INS"
alias keymod_del_general "unbind DEL"
// Toggle machine mode
alias heavy_machinemodeon "+duck; +attack"
alias heavy_machinemodeoff "-attack; -duck"
// Toggle binds
alias +heavy_enablemachinemode "bind INS heavy_machinemodeon; bind DEL heavy_machinemodeoff"
alias -heavy_enablemachinemode "keymod_ins_general; keymod_del_general"
// Bind the keys
alias +keymod_shift "+heavy_enablemachinemode"
alias -keymod_shift "-heavy_enablemachinemode"
bind SHIFT +keymod_shift;
keymod_ins_general;
keymod_del_general;
Auto-Minigun Spin Script
- Press your right mouse button to start up the automatic spinning, and press your middle mouse button to stop it.
- Based off of the Auto Medigun script by Essobie.
- Posted by nickpelone
//Auto Minigun Spinup alias +autominigun "-attack2; use tf_weapon_minigun" alias -autominigun "+attack2" alias stopautominigun "-attack2" bind "MOUSE2" "+autominigun" //Right click to start up the minigun. bind "MOUSE3" "stopautominigun" // Middle click to stop the minigun from spinning.
Improved Auto-Minigun Spin Script
- Click the right mouse button to toggle the minigun spinning.
- Based off of nickpelone's script (see above)
//Minigun auto-spin by Metroid48 alias +togglespinning "+spin" alias -togglespinning "-spin" alias toggle "stop" alias start "alias toggle stop; alias -togglespinning -spin" alias stop "alias toggle start; alias -togglespinning -nspin" alias +spin "use tf_weapon_minigun" alias -spin "+attack2;toggle" alias -nspin "-attack2;toggle" bind "MOUSE1" "+attack" bind "MOUSE2" "+togglespinning"
Automatic Chaingun
This is the best script I could come up with for the chain gun. When you are not attacking or spinning the gun, pressing mouse1 attacks until you press mouse1 again, briefly pressing mouse2 spins the gun up. When the gun is spinning, pressing mouse1 attacks and pressing mouse2 stops it spinning. When you are firing, pressing mouse1 stops all fire and pressing mouse2 reverts to spinning. Pressing mouse3 at any time resets everything to default, so you have to press this if you die while spinning or firing. In case that was confusing, the main point is that you don't have to hold down any buttons ever, just click once. Enjoy!
- Posted by Viperesque
//Automatic Chaingun by Viperesque alias "+gunn" "+attack" alias "-gunn" "bind mouse1 +slowdown; wait; bind mouse2 +spinup2" alias "+stop" "-attack2; wait; bind mouse1 +gunn" alias "-stop" "bind mouse2 +spinup" alias "reset" "-attack2; wait; bind mouse1 +gunn; wait; bind mouse2 +spinup" alias "+spinup2" "-attack; wait; +attack2; wait; bind mouse1 +gunnem" alias "-spinup2" "bind mouse2 reset" alias "+slowdown" "-attack" alias "-slowdown" "bind mouse1 +gunn; wait; bind mouse2 "+spinup" alias "+gunnem" "+attack; wait; -attack2; wait; bind mouse2 +spinup2" alias "-gunnem" "bind mouse1 +slowdown" alias "+spinup" "+attack2; wait; bind mouse1 +gunnem" alias "-spinup" "bind mouse2 +stop" bind mouse1 "+gunn" bind mouse2 "+spinup" bind mouse3 "-attack; wait; -attack2; wait; bind mouse1 +gunn; wait; bind mouse2 +spinup"
