01 Apr 12, 12:35PM
Okey, thx a lot. I will see what i do.
(31 Mar 12, 07:33PM)Bukz Wrote: @Elite, that is possible, but it would be quite inefficient in the current version. The next version of AC it would be a rather simple script to write.
Something like:
[cubescript]onHit = [
if (&& (= $arg1 (player1 cn)) (!= $arg1 $arg2)) [
// loadcrosshair crosshair_hit.png -1
]
]
onAttack = [
// loadcrosshair crosshair_normal.png -1
][/cubescript]
Whereas, in the current version you would need a recursive alias constantly scanning your pstat_weap alias for changes which would indicate a successful hit. As far as I know that method is unreliable/slow compared to SVN's hardcoded onHit/onAttack.