13 May 12, 10:07AM
there are plenty of scripts to count headshots already, in the current version it is not such an efficient and reliable script, in the next version it is much better, a dumb version of it looks like:
[cubescript]onKill = [
if (&& (= $arg1 (player1 cn)) (!= $arg1 $arg2)) [
if (&& (= $arg3 5) $arg4) [
// place headshot code here
]
]
][/cubescript]
And it's only dumb because the code doesn't check if you are headshotting a teammate, it triggers no matter what. :)
[cubescript]onKill = [
if (&& (= $arg1 (player1 cn)) (!= $arg1 $arg2)) [
if (&& (= $arg3 5) $arg4) [
// place headshot code here
]
]
][/cubescript]
And it's only dumb because the code doesn't check if you are headshotting a teammate, it triggers no matter what. :)