-
Notifications
You must be signed in to change notification settings - Fork 0
/
killspree.cfg
28 lines (23 loc) · 675 Bytes
/
killspree.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
spree_onfrag = [
fragnum = (getvar $arg1 nodie)
fragnum = (+ $fragnum 1)
setvar $arg1 nodie $fragnum
spreecmd = (format "killspree_%1" $fragnum)
if (identexists $spreecmd) [
say (format (getalias $spreecmd) (getname $arg1) $arg2)
]
]
spree_reset = [ setvar $arg1 nodie 0 ]
spree_resetall = [
all = (clientlist)
looplist cn $all [ spree_reset $cn ]
]
addhandler onfrag spree_onfrag
addhandler ondeath spree_reset
addhandler onsuicide spree_reset
addhandler onmapchange spree_resetall
killspree_5 = "%1 is on a killing spree"
killspree_10 = "%1 is on a rampage"
killspree_15 = "%1 is dominating"
killspree_20 = "%1 is unstoppable"
killspree_25 = "%1 is godlike"