elevator13
01-18-2009, 07:33 AM
This script makes it so that you can laugh while shooting. It features an improvement over most other laugh scripts to reduce sound clipping. A quick list:
*Automatic/burst firing laughs are smooth (minimized annoying sound clipping, or not hearing any laughter until done firing)
*Pistol/shotgun laughter is also smoothed out (never fire 3 shells from your autoshotty just to hear one laugh at the end!)
-I didn't make a "nice toggle"; if you wish to disable it, you'll have to bind the key used for firing (default MOUSE1) to +attack. Anyone who wishes to make this toggleable and repost it (credit, please) is welcome to do so.
Copy-paste this into autoexec.cfg (this will override whatever you have bound to MOUSE1):
<div class="quote">
//LAUGH WHILE SHOOTING SCRIPT
//Made by elevator13
alias doNothing ""
alias doLaugh "vocalize PlayerLaugh; wait 150; lswhatdo"
alias lswhatdo "doLaugh"
alias laughshootcore "+attack; alias lswhatdo doLaugh; lswhatdo"
alias +laughshoot "laughshootcore"
alias -laughshoot "-attack; alias lswhatdo doNothing; alias +laughshoot +attack; wait 150; alias +laughshoot laughshootcore"
bind MOUSE1 +laughshoot
</div>
The two values for the wait commands should be kept the same; if you experience a lot of sound clipping, change them to around 200. Also note that this script automatically binds to MOUSE1, you can either remove the line or bind another key to +laughshoot (e.g. bind "g" "+laughshoot")
*Automatic/burst firing laughs are smooth (minimized annoying sound clipping, or not hearing any laughter until done firing)
*Pistol/shotgun laughter is also smoothed out (never fire 3 shells from your autoshotty just to hear one laugh at the end!)
-I didn't make a "nice toggle"; if you wish to disable it, you'll have to bind the key used for firing (default MOUSE1) to +attack. Anyone who wishes to make this toggleable and repost it (credit, please) is welcome to do so.
Copy-paste this into autoexec.cfg (this will override whatever you have bound to MOUSE1):
<div class="quote">
//LAUGH WHILE SHOOTING SCRIPT
//Made by elevator13
alias doNothing ""
alias doLaugh "vocalize PlayerLaugh; wait 150; lswhatdo"
alias lswhatdo "doLaugh"
alias laughshootcore "+attack; alias lswhatdo doLaugh; lswhatdo"
alias +laughshoot "laughshootcore"
alias -laughshoot "-attack; alias lswhatdo doNothing; alias +laughshoot +attack; wait 150; alias +laughshoot laughshootcore"
bind MOUSE1 +laughshoot
</div>
The two values for the wait commands should be kept the same; if you experience a lot of sound clipping, change them to around 200. Also note that this script automatically binds to MOUSE1, you can either remove the line or bind another key to +laughshoot (e.g. bind "g" "+laughshoot")