YesNoOk
avatar

Char freezes during special move (Read 1190 times)

Started by mugenfan89, March 06, 2021, 10:12:19 pm
Share this topic:
Char freezes during special move
New #1  March 06, 2021, 10:12:19 pm
  • avatar
  • *
    • USA
One of my character usually freezes when he performs a certain special move while I fight against him, however when I usually play with the char the error does not occur, please if anyone know how to fix it them let me know.

Here is the code.

;face to throw
[Statedef 1400];-------------------------------------------------------------------;-------------------------------------------------------------------
type    = S
movetype= A
physics = N
velset = 10,0
ctrl = 0
sprpriority = 0
anim=1400

[State 0, randomatak]
type = PlaySnd
trigger1 = time=0
value = 130,random%3
volumescale = 100
channel = -1

[State 0, PlaySnd]
type = PlaySnd
trigger1 =  time=0
value = F5,153;F=common snd
volumescale = 200

[State 0, FACE_snd_SAW]
type = PlaySnd
trigger1= time =1
value = 20,random%2
volumescale = 100
channel = -1
freqmul = 1.0
loop = 0


[State 0, VelSet]
type = VelSet
trigger1 = animelem=3,=0
x = 6

[State 0, VelSet]
type = VelSet
trigger1 = animelem=4,=0
x = 2

[State 0, VelSet]
type = VelSet
trigger1 = animelem=4,=7
x = 0

[State 800, normal]
type = HitDef
Trigger1 = !movecontact
damage =  (Var(9) = 0)
pausetime = 0,0
attr = S, NT          ;Attributes: Standing, Normal Throw
guardflag = HL
hitflag = AFHL          ;Affect only ground people who are not being hit
priority = 1, Miss    ;Throw has low priority, must be miss or dodge type.
hitsound = -1
sparkno = -1          ;No spark
p2facing = 1       ;Force p2 to face KFM
p1stateno =25
p2stateno =  26
numhits = 0
guard.dist = 0        ;This prevents p2 from going into a guard state if close
fall = 1
fall.recover = 0
kill       = (Var(9) = 0)
fall.kill  = (Var(9) = 0)
fall.damage =(Var(9) = 0)
guard.kill = (Var(9) = 0)

[State 0, iskra]
type = Explod
trigger1 =moveguarded=[1,3]
anim = 1006
ID = 1006
pos = 90,-115
postype = p1;  p2,front,back,left,right
facing = 1-2*(random%2)
vfacing = 1-2*(random%2)
bindtime = 1; -1 forever
random = 25,15
removetime = -2;"-2" odin raz; "-1" forever
scale = .5,.5
sprpriority = 6
ownpal = 1
removeongethit = 0
angle=random/3

[State 0, StateTypeSet]
type = StateTypeSet
trigger1 = moveguarded
trigger2 = animelem=5,>2
movetype = I        ;I,A,H

[State 0, FACE_snd_SAWend]
type = PlaySnd
trigger1 = animtime = 0
value = 60,0
volumescale = 50
channel = -1
freqmul = 1.0
loop = 0

[State 0, ChangeState]
type = ChangeState
trigger1 = moveguarded=4
value =1700
ctrl = 0
;anim =
;ignorehitpause =
;persistent =

[State 0, ChangeState]
type = ChangeState
trigger1 = animtime = 0
value =0
ctrl = 1
;anim =
;ignorehitpause =
;persistent =

; D U me

Last Edit: March 06, 2021, 11:08:20 pm by mugenfan89