[Statedef 3000] ; FATALITY BOOBS!
type    = S
movetype= A
physics = S
anim = 3000
ctrl = 0

[State 0, shao]
type = PlaySnd
trigger1 = time = 1
value = F5,4
channel = -1

[State 9130, SetFatal]
type = Varset
trigger1 = animelem = 6
V = 4
value = 10

[State 0, zahvat]
type = HitDef
trigger1 = 1
attr = S, NT
hitflag = MAFD
guardflag = A
sparkno = -1
p2stateno = 3001
p1stateno = 3002
p2getp1state = 1
  p2facing= 1

[State 0, ChangeState]
type = ChangeState
trigger1 = animtime = 0
value =0
ctrl = 0



[Statedef 3001] ; FATALITY BOOBS! поведение жкртвы
type    = S
movetype= A
physics = N
ctrl = 0

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = time =0
value = 21238
elem = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time =20
value = S4,1
channel = -1


[State 0, PosAdd]
type = PosAdd
trigger1 = time= 40
trigger2 = time= 90
x = -2
y = 5








[Statedef 3002] ; FATALITY BOOBS! выжимаем анимация
type    = S
movetype= A
physics = S
anim = 3001
ctrl = 0

[State 50001, Bind 2-4]
type = TargetBind
trigger1 = animelem = 1
trigger1 = time = 0
pos = 10,-30;70, -12

[State 2, blood]
type = Helper
trigger1 = time = 20
trigger2 = time = 60
trigger3 = time = 80
trigger4 = time = 120
ID = 29
stateno = 28
pos = 10, -40
postype = p1
ignorehitpause = 1


[State 2, blood]
type = Helper
trigger1 = time = 120
ID = 29
stateno = 6900
pos = 10, -40
postype = p1
ignorehitpause = 1

[State 2, blood]
type = Helper
trigger1 = time = 120
ID = 29
stateno = 7442
pos = 10, -110
postype = p2
ignorehitpause = 1

[State 0, shuruh]
type = PlaySnd
trigger1 = time = 1
trigger2 = time = 40
;trigger3 = time = 80
value = S3000,0
volume = 100
channel = -1

[State 0, shuruh]
type = PlaySnd
trigger1 = time = 70
trigger2 = time = 110
value = F5,16
volume = 100
channel = -1


[State 0, EnvShake]
type = EnvShake
trigger1 = time = 0
time = 50
freq = 180

[State 0, EnvShake]
type = EnvShake
trigger1 = time = 50
trigger2 = time = 120
time = 80
freq = 100

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = time = 120
value = 3002

[State 1200, toasty]
type = Explod
trigger1 = anim = 3002
trigger1 = animelem =30, =1
anim = F28
pos = 0,254
postype = right
ontop = 1
sprpriority = 15
Bindtime = -1

[State 10211, toasty]
type = Playsnd
trigger1 = anim = 3002
trigger1 = animelem =30, =1
value = F5,39
volumescale = 150

[State 0, HitDef]
type = HitDef
trigger1 = anim = 3002
attr = S,NA        ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
hitflag = MAF        ;HLAFD+-
guardflag = MA         ;HLA
p2stateno=6007;3001
sparkno=-1
damage= 400000,400009
hitsound   = 5,17
p2getp1state = 0

[State 0, Explod]
type = Explod
trigger1 = time=190
anim = 3010
pos = var(22)/2,80
postype = left;  p2,front,back,left,right
facing = 1;1-2*(random%2)
vfacing = 1
bindtime = 1; -1 forever
removetime = -1;"-2" odin raz; "-1" forever
pausemovetime = 0
scale = .7,.7
sprpriority =7
ontop = 0
ownpal = 0
removeongethit = 0

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time=215
value = 3001,0;F=common snd
volumescale = 100
channel = -1
freqmul = 1.0
loop = 0
pan = 0
;lowpriority = -1
;abspan = 
;ignorehitpause = 
;persistent = 



[State 200, 7]
type = changestate
trigger1 = anim = 3002
trigger1 = time = 260
value = 0
ctrl = 1

;-------------------------------------------------------------------
[Statedef 3100] ; FATALITY trap!
type    = S
movetype= A
physics = S
anim = 0
ctrl = 0

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = time = 40
value = 3100

[State 0, trigger]
type = Explod
trigger1 = time = 0
anim = 3101
postype = p1
pos = 50,25
vel = 0 ,0
sprpriority = 3
ontop = 1
ownpal = 1

[State 0, PlaySnd]
type = PlaySnd
trigger1 = time = 45
value = F5,1

[State 9130, SetFatal]
type = Varset
trigger1 = animelem = 6
V = 4
value = 1

[State 0, kolonna]
type = Helper
trigger1 = anim =3100
trigger1 = animelem = 5, =1
trigger1 = numhelper(3101) = 0
helpertype = normal ;player
id = 3101
stateno = 3101
pos = 0,0
postype = p2    ;p2,front,back,left,right
ownpal = 1
ontop=2

[State 200, 7]
type = changestate
;trigger1 = fvar(12)<=0
;trigger1 = p2stateno = 6007
trigger1 = animtime= 0
trigger1 = anim= 3100
value = 0
ctrl = 1


;------------------ FAT helper kolonna!
[Statedef 3101]
type    = S
movetype= A
physics = N
ctrl=0
anim = 3103

[State 2, blood]
type = Helper
trigger1 =animelem = 6
ID = 29
stateno = 7444
pos = 0, -0
postype = p2
ignorehitpause = 1

[State 2, blood]
type = Helper
trigger1 = animelem = 6
ID = 29
stateno = 7441
pos = 0, -0
postype = p2
ignorehitpause = 1

[State 0, HitDef]
type = HitDef
trigger1 = animelem = 2
attr = S,NA        ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
hitflag = MAF        ;HLAFD+-
guardflag = MA         ;HLA
p2stateno=6007
sparkno=-1
damage= 400000,400009
hitsound   = 5,17


[State 0, EnvShake]
type = EnvShake
trigger1 = animelem = 3
time = 10
freq = 160
ampl = 10





[Statedef 3400]; fatality gun! 
type    = S
movetype= A
physics = S
juggle  = 0
velset = 0,0
ctrl = 0

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = time = 0
value = 1611

[State 240, 1.5]
type = Playsnd
trigger1 = AnimElem = 10
value = 12,0

[State 0, gilza]
type = Explod
trigger1 = AnimElem = 10
anim = 1605
ID = 1605
pos = 23, -97
postype = p1  ;p2,front,back,left,right
vel = -1,-5
removetime = 65
ontop = 1
ownpal = 1
scale =.7,.7
accel = 0,.2

[State 0, smok]
type = Explod
trigger1 = AnimElem = 10
anim = 1602
ID = 1602
pos = 40, -97
postype = p1  ;p2,front,back,left,right
vel = 0,-.5
removetime = -2
ontop = 1
ownpal = 1
scale =1,1

[State 0, fire]
type = Explod
trigger1 = AnimElem = 10
anim = 1603
ID = 1603
pos = 45, -97
postype = p1  ;p2,front,back,left,right
vel = 0,0
removetime = -2
ontop = 1
ownpal = 1
scale =1,1

[State 2, blood]
type = Helper
trigger1 = movehit
ID = 29
stateno = 29
pos = 0, -100
postype = p2
persistent = 0
ignorehitpause = 1

[State 2, blood]
type = Helper
trigger1 = movehit
ID = 29
stateno = 7470
pos = 0, -100
postype = p2
persistent = 0
ignorehitpause = 1

[State 2, blood]
type = Helper
trigger1 = movehit
ID = 29
stateno = 7475
pos = 0, -100
postype = p2
persistent = 0
ignorehitpause = 1


[State 800, fatality]
type = HitDef
trigger1 = p2stateno = 9010
triggerall = p2statetype != A
Trigger1 = animelem = 1
;p1stateno = 1080       ;On success, KFM changes to state 810
p2stateno = 6004
pausetime = 0,0
attr = S, NT          ;Attributes: Standing, Normal Throw
hitflag = CM          ;Affect only ground people who are not being hit
priority = 1, Miss    ;Throw has low priority, must be miss or dodge type.
damage = 100000
sparkno = -1          ;No spark
hitsound = 5,16
p2facing = 1
pausetime = 10,10



[State 0, ChangeState]
type = ChangeState
trigger1 =  animtime = 0
value = 0
ctrl = 1



;-------------------------------------------------------
[Statedef 3700]   ;friendship
type    = S
movetype= A
physics = S
anim = 0
ctrl = 0

[State 0, ChangeAnim]
type = ChangeAnim
trigger1 = time = 1;60
value = 3700

[State 0, PlaySnd]
type = PlaySnd
trigger1 = anim = 3700
trigger1 = animelem = 10, =20
value = 3700,0
volume = 100
channel = -1

[State 0, light]
type = Explod
trigger1 = anim = 3700
trigger1 = animelem = 10, =20
anim = 3702
postype = p1
pos = 5,0
vel = 0 ,0
ontop = 0
ownpal = 1
sprpriority = -3

[State 0, foto]
type = Explod
trigger1 = anim = 3700
trigger1 = animelem = 10, =40
anim = 3701
postype = left
pos = 155,210
vel = 0 ,0
sprpriority = 3
ontop = 1
ownpal = 1



[State 3102, golpearalpl2]
type = HitDef
trigger1 = 1
attr = S, NA
sparkno = -1
guard.sparkno = -1
damage = 111111,1111111
hitonce = 1
numhits  = 0

[State 200, 7]
type = changestate
trigger1 = animtime = 0
trigger1 = anim = 3700
value = 0
ctrl = 1

