Headshot Message Script - Mirror #1
Headshot Message Script - Mirror #2
Automatically say a custom message when you headshot an enemy. Change the message on-the-fly via a menu. :)
Made for, tested on, and will only work on AC 1.1.0.2 or greater.
Enjoy!
Edit:
NOTE: You must bind the following to MOUSE1 (place it in your autoexec.cfg) for the script to work properly:
This prevents the script from spamming, but if you get more than 1 headshot every 5 seconds, and want this script to say the message after every one, you may want/have to lower this sleep's value.
Auto say sorry to teamates upon teamkill:
Using the same principle as my previous script, I've created a script that will automatically say sorry for you whenever you teamkill.
Either put this into a new .cfg named whatever, and put within the /scripts folder you made when installing my last script, or just paste the whole thing into your autoexec.cfg :p
Will allow you to change what is said on-the-fly via a menu. Now there are no more excuses for not apoligizing to your teammates for your trigger-happiness! :)
NOTE: Your MOUSE1 bind will have to be edited a bit if you use both of these scripts in this post, to accomodate both scripts. It should look like this:
Made for, tested on, and will only work on AC 1.1.0.2 or greater.
Enjoy!
Headshot Message Script - Mirror #2
Automatically say a custom message when you headshot an enemy. Change the message on-the-fly via a menu. :)
Made for, tested on, and will only work on AC 1.1.0.2 or greater.
Enjoy!
Edit:
NOTE: You must bind the following to MOUSE1 (place it in your autoexec.cfg) for the script to work properly:
[SELECT ALL] Code:
bind "MOUSE1" [attack; sleep 5000 [hsmsg = 0]]
This prevents the script from spamming, but if you get more than 1 headshot every 5 seconds, and want this script to say the message after every one, you may want/have to lower this sleep's value.
Auto say sorry to teamates upon teamkill:
Using the same principle as my previous script, I've created a script that will automatically say sorry for you whenever you teamkill.
Either put this into a new .cfg named whatever, and put within the /scripts folder you made when installing my last script, or just paste the whole thing into your autoexec.cfg :p
[SELECT ALL] Code:
add2alias mapstartalways [sleep 1000 [tkchk]]
tkmsg = 0
tkchk = [
if (= $connected 1) [ // Only apoligize to real people :p
if (= $tkmsg 0) [
if (= (strstr $conline "you fragged teammate") 1) [
say (concatword % $srymsg); tkmsg = 1] [
if (= (strstr $conline "you gibbed teammate") 1) [
say (concatword % $srymsg); tkmsg = 1] [
if (= (strstr $conline "you knifed teammate") 1) [
say (concatword % $srymsg); tkmsg = 1] [
if (= (strstr $conline "you splattered teammate") 1) [
say (concatword % $srymsg); tkmsg = 1] []]]]] []
sleep 50 [tkchk]] []
]
bind "MOUSE1" [attack; sleep 5000 [tkmsg = 0]]
newmenu "srymsg"
menuitemtextinput "Teamkill say message: " "" "srymsg = $arg1"
[SELECT ALL] Code:
/showmenu srymsg
Will allow you to change what is said on-the-fly via a menu. Now there are no more excuses for not apoligizing to your teammates for your trigger-happiness! :)
NOTE: Your MOUSE1 bind will have to be edited a bit if you use both of these scripts in this post, to accomodate both scripts. It should look like this:
[SELECT ALL] Code:
bind "MOUSE1" [attack; sleep 5000 [hsmsg = 0; tkmsg = 0]]
Made for, tested on, and will only work on AC 1.1.0.2 or greater.
Enjoy!