(18 Jan 13, 03:52AM)Roflcopter Wrote: onHit wouldn't provide an easy way to group bullets together would it?
Nope.
But, you could possibly do something like:
[cubescript]this_group_damage = 0
add2bind mouse1 [
this_group_damage = 0
onrelease [
if $this_group_damage [
say %Damage: $this_group_damage
]
]
]
checkinit onHit [
if (&& (= $arg1 (player1 cn)) (!= $arg1 $arg2)) [ // local player damaged someone other than themself
if (curmodeattr team) [
if (!= (player1 team) (player $arg2 team)) [ // don't count team damage
+= this_group_damage $arg3
]
] [ += this_group_damage $arg3 ]
]
][/cubescript]