YesNoOk
avatar

Cirio Mr. Karate Hien Shippuu Kyaku problem (Read 25701 times)

Started by tehdevil, May 03, 2018, 06:18:07 am
Share this topic:
Cirio Mr. Karate Hien Shippuu Kyaku problem
#1  May 03, 2018, 06:18:07 am
  • avatar
  • ****
Hi, I came across this Mr. Karate created by Cirio's problem which the character can be found here: http://cirio.piiym.net/ it was his strong version of Hien Shippuu Kyaku where he can't connect the 2nd hit on his opponent like this:

it only work when it is a mirror match:

Here is the code of the move of this character:
Code:
;Hien Shippuu Kyaku (Strong)
[Statedef 1510]
type = S
movetype = A
physics = S
anim = 1510
ctrl = 0
velset = 0, 0
poweradd = 142
juggle = 0

[State 2810, snd1]
type = PlaySnd
trigger1 = Time = 2
value = 3,4
channel = 0

[State 2801,1]
type = ChangeState
trigger1 = AnimTime = 0
value = 1511

;Hien Shippuu Kyaku Air
[Statedef 1511]
type = A
movetype = A
physics = N
anim = 1511
velset = 8, 0

[State 2000, eff]
type = PlaySnd
trigger1 = time = 0
value = 200,8
channel = 2

[State 1110,0]
type = Posadd
trigger1 = Time = 0
trigger2 = Time = 2
trigger3 = Time = 3
trigger4 = Time = 4
trigger5 = Time = 6
y = -1

[State 1110,0]
type = Posadd
trigger1 = Time = 15
trigger2 = Time = 17
trigger3 = Time = 18
trigger4 = Time = 20
trigger5 = Time = 23
y = 1


[State 2820,1]
type = HitDef
trigger1 = (p2stateno != [5020,5040]) 
trigger1 = p2stateno != [154,155]
trigger1 = animelem = 2
attr = A, SA
animtype = Hard
hitflag = MA
guardflag = M
damage = 50, 10
hitsound = S250,0
guardsound = S201, 2
sparkno = S1041
guard.sparkno = S1042
sparkxy = 17,-68
pausetime = 10,12
guard.pausetime = 11,15
ground.type = Low
ground.slidetime = 17
ground.hittime = 17
ground.velocity = -4,-9
air.velocity = -4,-6
guard.velocity = -9
fall.recovertime = 35
guard.slidetime = 16
guard.hittime = 11
getpower = 50,40
givepower = 30,10
yaccel = .55
fall.yvelocity = -3.4
fall = 1

[State 2820,2]
type = ChangeState
trigger1 = MoveContact = 1
value = 1513

[State 2820,3]
type = ChangeState
trigger1 = AnimTime = 0
trigger1 = MoveContact = 0
value = 1512
<- I exercise and dance like that regularly!
Last Edit: April 27, 2019, 12:08:59 pm by tehdevil
Re: Cirio Mr. Karate Hien Shippuu Kyaku problem
#2  May 03, 2018, 09:02:39 am
  • *****
  • Shame on you!
    • USA
Use Ctrl+C to see the collision boxes. Make sure they don't connect.
You'll want to adjust the Y velocities set in the hitdef. You could also adjust the Animation so the hit box extends a little higher. Up to you.
vVv Wheat Stage Released vVv
Re: Cirio Mr. Karate Hien Shippuu Kyaku problem
#3  April 27, 2019, 12:08:47 pm
  • avatar
  • ****
Hi, sorry to revive this, but I found a way to fix the problem, it was this piece of code that cause the problem:

Code:
;Hien Shippuu Kyaku Air
[Statedef 1511]
type = A
movetype = A
physics = N
anim = 1511
velset = 8, 0

[State 2000, eff]
type = PlaySnd
trigger1 = time = 0
value = 200,8
channel = 2

[State 1110,0]
type = Posadd
trigger1 = Time = 0
trigger2 = Time = 2
trigger3 = Time = 3
trigger4 = Time = 4
trigger5 = Time = 6
y = -1

[State 1110,0]
type = Posadd
trigger1 = Time = 15
trigger2 = Time = 17
trigger3 = Time = 18
trigger4 = Time = 20
trigger5 = Time = 23
y = 1


[State 2820,1]
type = HitDef
trigger1 = (p2stateno != [5020,5040]) 
trigger1 = p2stateno != [154,155]
trigger1 = animelem = 2
attr = A, SA
animtype = Hard
hitflag = MA
guardflag = M
damage = 50, 10
hitsound = S250,0
guardsound = S201, 2
sparkno = S1041
guard.sparkno = S1042
sparkxy = 17,-68
pausetime = 10,12
guard.pausetime = 11,15
ground.type = Low
ground.slidetime = 17
ground.hittime = 17
ground.velocity = -4,-9
air.velocity = -4,-6
guard.velocity = -9
fall.recovertime = 35
guard.slidetime = 16
guard.hittime = 11
getpower = 50,40
givepower = 30,10
yaccel = .55
fall.yvelocity = -3.4
fall = 1

[State 2820,2]
type = ChangeState
trigger1 = MoveContact = 1
value = 1513

[State 2820,3]
type = ChangeState
trigger1 = AnimTime = 0
trigger1 = MoveContact = 0
value = 1512

so I need to look at this block of code:

Code:
[State 2820,1]
type = HitDef
trigger1 = (p2stateno != [5020,5040]) 
trigger1 = p2stateno != [154,155]
trigger1 = animelem = 2
attr = A, SA
animtype = Hard
hitflag = MA
guardflag = M
damage = 50, 10
hitsound = S250,0
guardsound = S201, 2
sparkno = S1041
guard.sparkno = S1042
sparkxy = 17,-68
pausetime = 10,12
guard.pausetime = 11,15
ground.type = Low
ground.slidetime = 17
ground.hittime = 17
ground.velocity = -4,-9
air.velocity = -4,-6
guard.velocity = -9
fall.recovertime = 35
guard.slidetime = 16
guard.hittime = 11
getpower = 50,40
givepower = 30,10
yaccel = .55
fall.yvelocity = -3.4
fall = 1

all I need to do is to change this line:
Code:
ground.type = Low
to this:
Code:
ground.type = Trip
and it works. This same applies to Jerzy's Mr. Karate and GoD_Ryu's Mr. Karate as well since they modify Cirio's Mr. Karate for their version.
<- I exercise and dance like that regularly!