User:Spupy/Scripts
This script will make the Engineer say the "Nice Job" voice command (voicemenu 2 7) when placing a building. The point is to mask building announcements and prevent enemies from finding out what you're building. Pressing F1-F4 brings up blueprints for buildings. Pressing Alt + F1-F4 destroys the current building before bringing up the blueprint. 'f' does that for sentry (useful for the gunslinger, watch out with the normal sentry!)
// silent attack, masks building announcements, next attack is normal alias +m1 +attack alias -m1 -attack alias +silentattack "+attack; alias +m1 +attack; voicemenu 2 7" alias -silentattack "-attack; alias +m1 +attack" alias makesilent "alias +m1 +silentattack" bind mouse1 +m1 // for gunslinger: destroy sentry and bring up the blueprint for placing a new one bind f "destroy 2; build 2; makesilent" // build only alias nsentry "build 2; makesilent" alias ndispenser "build 0; makesilent" alias nentrance "build 1; makesilent" alias nexit "build 3; makesilent" // destroy + build alias quicksentry "destroy 2; build 2; makesilent" alias quickdispenser "destroy 0; build 0; makesilent" alias quickentrance "destroy 1; build 1; makesilent" alias quickexit "destroy 3; build 3; makesilent" // F1-F4 only build, press with Alt to destroy+build alias +togglequickbuild "bind f1 quicksentry; bind f2 quickdispenser; bind f3 quickentrance; bind f4 quickexit" alias -togglequickbuild "bind f1 nsentry; bind f2 ndispenser; bind f3 nentrance; bind f4 nexit" bind alt +togglequickbuild bind f1 "nsentry" bind f2 "ndispenser" bind f3 "nentrance" bind f4 "nexit"