YesNoOk
avatar

How to make my character unable to flinch from attacks or take any damage (Read 6188 times)

Started by Loves Pachirisu, November 16, 2015, 04:14:51 am
Share this topic:
How to make my character unable to flinch from attacks or take any damage
#1  November 16, 2015, 04:14:51 am
  • ***
  • Mega Man Classic
  • pachirisu is sexy af
    • Canada
    • anoobtroll@gmail.com
For source game reasons, I want to make one of my WIP characters to not take any damage or any flinching damage whatsoever. BUT... if their name is Zero or X then they will take HALF of the usual damage but not flinch.

Sooo how can I make this possible?
Pokecommunity account (Will start learning about romhacking): http://www.pokecommunity.com/member.php?u=553303

Why are there some people here trying to go into their ways into trying to ruin my Mugen hobby here and make me look like bad?



https://www.youtube.com/watch?v=3_TMrr6eqQc
Re: How to make my character unable to flinch from attacks or take any damage
#2  November 16, 2015, 05:28:33 am
  • *****
  • Shame on you!
    • USA
Look into how Apocalypse works by N64Mario. Basically you'd have your character have no hit boxes. Then youd have a helper on top of your character that can take the punches and damage.
vVv Gouken718 vVv
Re: How to make my character unable to flinch from attacks or take any damage
#3  November 16, 2015, 05:52:12 am
  • ***
  • Mega Man Classic
  • pachirisu is sexy af
    • Canada
    • anoobtroll@gmail.com
What if I want tbem to react to projectiles? (as in looking like theyre deflecting them away)
Pokecommunity account (Will start learning about romhacking): http://www.pokecommunity.com/member.php?u=553303

Why are there some people here trying to go into their ways into trying to ruin my Mugen hobby here and make me look like bad?



https://www.youtube.com/watch?v=3_TMrr6eqQc
Re: How to make my character unable to flinch from attacks or take any damage
#4  November 16, 2015, 05:56:24 am
  • ******
  • Video Game Veteran
  • Can you do it? SUREYOUCAN!
    • USA
    • gcnmario.free.fr
Do u mean how attacking Omega Zero in the source games sometimes flinches, but other times does not?

Use HitOverride.

"You must defeat my flaming
dragon punch to stand a chance."
Re: How to make my character unable to flinch from attacks or take any damage
#5  November 16, 2015, 12:58:47 pm
  • ***
  • Mega Man Classic
  • pachirisu is sexy af
    • Canada
    • anoobtroll@gmail.com
Pokecommunity account (Will start learning about romhacking): http://www.pokecommunity.com/member.php?u=553303

Why are there some people here trying to go into their ways into trying to ruin my Mugen hobby here and make me look like bad?



https://www.youtube.com/watch?v=3_TMrr6eqQc
Last Edit: November 16, 2015, 01:04:14 pm by Mega Man Classic
Re: How to make my character unable to flinch from attacks or take any damage
#6  November 16, 2015, 10:23:10 pm
  • *****
  • Shame on you!
    • USA
vVv Gouken718 vVv
Re: How to make my character unable to flinch from attacks or take any damage
#7  November 17, 2015, 12:59:01 am
  • ***
  • Mega Man Classic
  • pachirisu is sexy af
    • Canada
    • anoobtroll@gmail.com
http://mugenguild.com/forum/topics/hitoverride-sctrl-170151.0.html
and
http://mugenguild.com/forum/topics/nothitby-sctrls-170075.0.html
is what you need.
You may be able to skip using the helper and just use a hitoverride and a nothitby. You may want them in statedef -2 seeing as the character can be in multiple states and still have the effect.

I used hittoverride, nothing happened... Not even an animation played. Zero just stood there lifting his head up and down.

[State -2, HitOverride]
type = HitOverride
trigger1 = 1
attr = SCA,AP        ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
slot = 0
stateno = 70
time = 9999999
forceair = 0
;ignorehitpause =
;persistent =

;---------------------------------------------------------------------------
; Nice try. (Animation for deflecting a helper/projectile)
[Statedef 70]
type    = U
movetype= A
physics = N
juggle  = 2
velset = 0,0
ctrl = 0
anim = 1
poweradd = 0
sprpriority = 2



[State 0, ReversalDef]
type = ReversalDef
trigger1 = movecontact
reversal.attr = SCA,AP           ;SCA,NA,SA,HA,NP,SP,HP,NT,ST,HT
pausetime = 0,0
sparkno = S1500
;sparkxy = 0,0 ;offset
hitsound = S1,0
p2stateno = 71
;ignorehitpause =
;persistent =
[State 20, 1]
type = VelSet
trigger1 = command = "holdfwd"
x = const(velocity.walk.fwd.x)

[State 20, 2]
type = VelSet
trigger1 = command = "holdback"
x = const(velocity.walk.back.x)


[State 200, PlaySnd]
type = PlaySnd
trigger1 = !time
value = s0, 1


[State 200, ChangeState]
type = changestate
trigger1 = animtime = 0
value = 0
;---------------------------------------------------------------------------
; Nice try. (reversaldef)
[Statedef 71]
type    = U
movetype= A
physics = N
juggle  = 2
velset = 0,0
ctrl = 0
anim = 71
poweradd = 0
sprpriority = 2

[State 0, BindToRoot]
type = BindToRoot
trigger1 = 1
time = 1
;facing = 0
pos = 0,0
;ignorehitpause =
;persistent =

[State 0, VelSet]
type = VelSet
trigger1 = time = 0
x = -5
y = -7
;ignorehitpause =
;persistent =


[State 200, PlaySnd]
type = PlaySnd
trigger1 = !time
value = s0, 1


[State 200, ChangeState]
type = destroyself
trigger1 = time = 150
;------------------------------
Pokecommunity account (Will start learning about romhacking): http://www.pokecommunity.com/member.php?u=553303

Why are there some people here trying to go into their ways into trying to ruin my Mugen hobby here and make me look like bad?



https://www.youtube.com/watch?v=3_TMrr6eqQc
Re: How to make my character unable to flinch from attacks or take any damage
#8  November 17, 2015, 01:26:28 am
  • *****
  • Shame on you!
    • USA
because your trigger = 1
time = 9999999
should be 1 or another very small number.
also you might want to exclude the hitoverride in statedef 70 because you're already there. You could include a copy of it in the state. This might/should cut down the workload for mugen.

Reversaldef should probably include ignorehitpause

Make sure you're using debug to watch what states/animations are active. Ctrl+D. You can also use Ctrl+C to watch the hitboxes change colors to get more info.
vVv Gouken718 vVv
Re: How to make my character unable to flinch from attacks or take any damage
New #9  November 17, 2015, 01:39:07 am
  • ***
  • Mega Man Classic
  • pachirisu is sexy af
    • Canada
    • anoobtroll@gmail.com
because your trigger = 1
time = 9999999
should be 1 or another very small number.
also you might want to exclude the hitoverride in statedef 70 because you're already there. You could include a copy of it in the state. This might/should cut down the workload for mugen.

Reversaldef should probably include ignorehitpause

Make sure you're using debug to watch what states/animations are active. Ctrl+D. You can also use Ctrl+C to watch the hitboxes change colors to get more info.

There's no hitoverride in statedef 70. Unless you mean at -2 having a statedef 70, if so I don't know what you are talking about since Zero hasn't been doing that animation at all but was in his stance instead.

Also the animation works, but the other character's projectile just dissapears..?
Pokecommunity account (Will start learning about romhacking): http://www.pokecommunity.com/member.php?u=553303

Why are there some people here trying to go into their ways into trying to ruin my Mugen hobby here and make me look like bad?



https://www.youtube.com/watch?v=3_TMrr6eqQc
Last Edit: November 17, 2015, 01:53:38 am by Mega Man Classic