Thanks to DES|Bukz for spending nearly two hours helping me (ok, he did all the hard work :D) wicked sweet script.
Auto whois everyone when you connect to a server, and auto whois new players as they connect:
Useful for logging purposes: I made a folder called logs and use this launcher for example:
and I end up with timestamped log files of all the standard output named the date and time I started the client.
EDIT: I added automatic demo recording. It only works if you are connected and have finished a match (you don't have to have played the entire thing however).
Auto whois everyone when you connect to a server, and auto whois new players as they connect:
[SELECT ALL] Code:
autogetdemo = 0
if (checkalias whoisdall) [] [
whoisdall = 0
]
checkplayers = [
if (strstr (at $conline 0) "connected") [
whois (findcn (at $conline 1))
conline [ ]
] []
if (= $connected 0) [whoisdall = 0] []
sleep 0 [checkplayers]
]
if (strstr $mapstartalways checkplayers) [] [
add2alias mapstartalways [
if (&& (= $connected 1) (= $whoisdall 0)) [
whoisdall = 1
loop e 21 [whois $e]
] []
if (&& (= $connected 1) (= $autogetdemo 1)) [
getdemo
autogetdemo = 0
] []
checkplayers
]
]
if (strstr $start_intermission autogetdemo) [] [
add2alias start_intermission [autogetdemo = 1]
]
Useful for logging purposes: I made a folder called logs and use this launcher for example:
[SELECT ALL] Code:
assaultcube -T > ~/.assaultcube_v1.1/logs/$(date +%d.%m.%y_%H%M%S)\.log
EDIT: I added automatic demo recording. It only works if you are connected and have finished a match (you don't have to have played the entire thing however).