15 Jan 12, 11:21PM
This is a script to help you watch demos, it will change the crosshair and load the hitsound when a player hits another one. If you are folowing (ghost) cn 4, type /hit 4.
[SELECT ALL] Code:
//change mycrosshair if you're not using star.png
//activate the script typing "/hit cn" while watching a demo
mycrosshair = "star.png"
alias hit [last_pweap = 0; pl = $arg1; hit_]
alias hit_ [if (watchingdemo) [
tmp_num = -1
new_pweap = 0
loop i 20 [tmp_num = (+ $tmp_num 2); new_pweap = (+ $new_pweap (at (pstat_weap $pl) $tmp_num))]
if (< $last_pweap $new_pweap) [crossh]
last_pweap = $new_pweap
sleep 0 [hit_]
]]
alias crossh [
sound 47; loadcrosshair x-dot.png; sleep 70 [loadcrosshair $mycrosshair]
]