;---------------------------------------------------------------------------
; Override common states (use same number to override) :
;---------------------------------------------------------------------------

;---------------------------------------------------------------------------
; States that are always executed (use statedef -2)
;---------------------------------------------------------------------------
[Statedef -2]

[State -2, Remove Arms]
type = RemoveExplod
trigger1 = StateNo != 800
trigger1 = StateNo != 1000
trigger1 = StateNo != 3000
trigger1 = StateNo != 4000
id = 801

[State -2, Remove Arms]
type = RemoveExplod
trigger1 = StateNo != 802
id = 803

[State -2, Remove Arms]
type = RemoveExplod
trigger1 = StateNo != 805
id = 807

[State -2, Remove Arms]
type = RemoveExplod
trigger1 = StateNo != 805
id = 808



;---------------------------------------------------------------------------
; States that are executed when in self's state file (use statedef -3)
;---------------------------------------------------------------------------
[Statedef -3]
[State -3, Hit1]
type = PlaySnd
triggerall = random < 300
triggerall = Alive
triggerall = Time = 0
triggerall = Var(0) = [0,50]
trigger1 = Stateno = 5000
trigger2 = Stateno = 5010
value = 5000, 0
channel = 1
lowpriority = 1

[State -3, Hit2]
type = PlaySnd
triggerall = random < 300
triggerall = Alive
triggerall = Time = 0
triggerall = Var(0) = [50,100]
trigger1 = stateno = 5020
trigger2 = stateno = 5030
trigger3 = stateno = 5050
trigger4 = stateno = 5070
trigger5 = stateno = 5080
value = 5000, 1
channel = 1
lowpriority = 1
;-------------------

;This controller plays a sound everytime the player lands from a jump, or
;from a back-dash.
[State -3, Landing Sound]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 52 ;Jump land
trigger2 = stateno = 106 ;Run-back land
value = 0, 0
