Jump to content
  • 0

Another problems with helper


DuckAzz

Question

Well this time my projectile helper does 15 hits on some really close spot but it's set to hit once.
So which problem can be?

Here's the code of the p1's and Helper's states:


;Gun Shot
[Statedef 1003]
type    = S                      
movetype= A                      
physics = S                                           
velset = 0,0                     
ctrl = 0                         
anim = 1003                      
poweradd = 65                    
sprpriority = 2  [state 1000]
type = playsnd
trigger1 = animelem = 6
value = S400,0 [state 1000]
type = explod
trigger1 = animelem = 6
anim = 1001
ontop = 1
bindtime = -1
postype = p1
pos = 0,0
removeongethit = 1
ignorehitpause = 1 [State 1000, 5] ;Opponent near
type = HitDef
trigger1 = time = 0
attr = S, SA
animtype  = light
damage    = 25, 4
priority  = 5
guardflag = MA
pausetime = 15,15
sparkno = 2
sparkxy = -10,-85
hitsound   = 5,3
guardsound = S6,0
ground.type = Low
ground.slidetime = 25
ground.hittime  = 20
ground.velocity = -12,0
air.velocity = -12,-4   [state 1000]
type = helper
trigger1 = animelem = 6
stateno = 1001
postype = p1
pos = 0,5
helpertype = normal
ignorehitpause = 1
ID = 1001
ownpal = 1 [State 1000, 7]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1  ;Helper For Gun shot
[Statedef 1001]
type    = S
movetype= A
physics = S
juggle  = 4
velset = 0,0
anim = 1002
ctrl = 0
sprpriority = 5 [state 1000]
type = assertspecial
trigger1 = 1
flag = noshadow
ignorehitpause = 1 [State 1210, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA, NA, SA, HA, NT, ST, HT
time = 1 [State 1210, HitBy]
type = HitBy
trigger1 = 1
value = SCA, NP, SP, HP
time = 1 [State 1210, HitOverride]
type = HitOverride
trigger1 = Time <= 0
time = -1
attr = SCA, NP, SP, HP
slot = 0
stateno = 1002 [state 1000]
type = velset
trigger1 = 1
x = 40 [State 1000, 5] ;Opponent near
type = hitdef
trigger1 = time = 0
;projanim = 1005
;projremove = 1
;projremanim = 1006
;projhitanim = 1006
;projremovetime = 555
;velocity = 5,0
;offset = 15,-30
attr = S, SP
animtype  = Hard;core
damage    = 55, 5
priority  = 5
guardflag = MA
pausetime = 0,0
sparkno = 10
sparkxy = -15,-100
hitsound   = 5,2
guardsound = S6,0
ground.type = high
ground.slidetime = 25
ground.hittime  = 25
ground.velocity = -10,0
air.velocity = -5,-3
fall = 0
air.fall = 1
ground.cornerpush.veloff = 0
air.cornerpush.veloff = 0
fall.recover = 0 [state 1000]
type = changestate
trigger1 = movecontact
trigger2 = FrontEdgeBodyDist <= -10
value = 1002
[/code] And here's the command code:
[code]
[State -1, GS]
type = ChangeState
value = 1003
triggerall = numhelper(1001) != 1
triggerall = numhelper(1012) != 1
triggerall = numhelper(1016) != 1
trigger1 = command = "QCF_y"
trigger1 = var(1)
[/code]
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

you should definately space out your coding. at least by 1 line.

otherwise its a mess.

in your helper your hitdef trigger is 1

trigger1 = 1

means INDEFINITELY. or INFINITELY.

Basically your telling your helper to hit as many times as it can as long as the helper is alive.

change it to trigger1 = time = 0

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...