I need to figure out how to detect when 2 players kill each other consecutively 5 or more times.
for example:
Bob kills Joe - counter: 1 // starting a counter between Bob and Joe
Joe kills Bob - counter: 2
Bob kills Joe - counter: 3
Joe kills Bob - counter: 4
Bob kills Joe - counter: 5 // counter reached to 5... Bob and Joe are now enemies...
but if Bob kills Joe twice consecutively then the counter resets. so:
Joe kills Bob - counter: 1
Bob Kills Joe - counter: 2
Bob Kills Joe - counter: 0
(or if Joe kills Bob twice consecutively, the counter would reset).
also, if Bob kills someone else after having a consecutive fight with Joe, then reset the counter:
Joe kills Bob - counter: 1
Bob kills Joe - counter: 2
Joe kills Bob - counter: 3
Bob kills Adam - counter: 0
(or if Joe kills some else after having a consecutive fight with Bob)
Basically, I need to figure out how to detect consecutive kills back and forth between someone by using the player_death event under the following circumstances above. I feel like this is super simple, but it's getting passed me and I'm way overthinking it! Rubber duck isn't helping me for once
__________________