Lets have a KoF features discussion

Started by Cyanide, December 04, 2008, 08:52:29 AM

Previous topic - Next topic

Cyanide

Unlike mukai, my current wip requires me to go a little more indepth. As such i'm finding some interesting stuff out. I'm sure MANY of you know this already, in fact i know some of you do. But lots of this isn't really common knowledge, and it'd be nice to get it out there.

Here's a starter, add what you wish

Messing with 2k2
Some moves outside of max mode can be canceled. These occur in a specific frame and seem to have a very narrow window. The frame involved will always be the last tick of a hit. For lights, it appears to allow hit 1, for hard, it's hit 2.

I need to do some more fiddling to set that in stone.

Max mode seems to change things. You can cancel at any point in any basic. Doesn't need to be that tick. If it IS that frame, you don't get a flash effect. If it's at a MAX only time, your character will flash white.

For special>special they seem to abide by the same rules as basic>special outside of max mode. It's a defined point in the attack. Command after that, doesn't seem to let you cancel. You will always flash white at this point. Some specials do not seem to let you cancel. I cannot cancel De-Cide even with mayhem macro'd and button mashing.

Would anyone care to add to this, or elaborate on a different feature?

Spoiler (click to show)
Course this topic may also go the way of the dodo's. Mine often do ;P


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Jesuszilla

Regarding MAX Mode, yeah, free cancels are only for certain specials.


I can't recall any specials that are able to cancel into other specials. Follow-ups don't count.

K.O.D

Kyo has a weird max mode bug(?), sometimes his Aragami cancels into the Dokugami by QCF + HP but sometimes it can also lead to an aragami followup instead of dokugami, I have no idea what triggers apply.

Cyanide

Quote
I can't recall any specials that are able to cancel into other specials. Follow-ups don't count.
I can regularly cancel Outrage heavy into mayhem or decide. I can also cancel matures QCB+P into her QCB+K. Haven't fiddled with many others.

Another one is throws. I noticed this when i picked up OrochiKOF_97's vice (i wanted to look at what he'd done with her) I did wonder why Blackend hit at the wierdest times.

In KoF throws are seen as instantaneous. There is very rarely any startup anim for entering the throw except in supers. Basic throws just put you there. However if all you do is add a hitbox then the character can pull you in from miles away if it manages to contact with a kick, or a punch, even when you're at a rather unthrowable distance.

KoF's throws seem to work on the internal "push" box rather than the clsn2's. If someone is too far off you shouldn't be able to throw them, even if a blue clsn enter's your hit area. It ought to be the body box instead. This is why you can throw/command throw, someone out of the evasion. The push box is still there to be picked up.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

c001357


Bastard Mami

Just how far back do you want to go ? 97, 98, 94, 2002,99 ?

Cyanide

Doesn't matter, if there's a feature, describe it.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Elix

#7
Cyanide
Concerning cancelling moves. You're right partially. I can give more detail as I've been studying this a whole year while working on my Kyo.
For basic attacks and command moves there's a general rule. They can be cancelled usually on the 2nd tick of attack frame. In other words, right after the 1st tick of attack frame. There are exceptions such as some crouching weak attacks, which can be cancelled only on the 3rd tick of the attack frame. This is done intentionally to avoid extreme combos while low-poking, as I presume. Anyhow, cancelling window for all basic and command moves is ONE frame. And it doesn't matter whether you hit your opponent or not, you may cancel basic/command attacks into specials/DMs without touching your opponent. The reason why it is so much easier to cancel an attack when you hit your opponent is... hitpause + command buffer.
For specials there's also a rule, which might be a little harder to notice at first. You may cancel (chain) specials into another specials (chain combo) while attack frames persist, i.e. as long as CLSN1 is active. My observations and tests tell me that the last frame when special can be cancelled is the 1st tick of the frame which goes after the last attack frame (Read this again until you understand). :) Of course, there might be some exceptions and additional conditions (like that special must hit the opponent to be cancelled - Ex Kyo). But most of the time, when you need to make custom chain specials you may follow this rule, which makes perfect sense btw.

Regarding throws I have my own methods too. Well noted that "KoF's throws seem to work on the internal "push" box rather than the clsn2's". To be more precise, your "push" box ("width" in mugen terms) must be in contact with P2's center. Also, you can't grapple jumping opponent (so leave out states 40 and 52) and guarding (states [120,155]). This is what my throw controller looks like:
[State -1, Hatsugane]; close to opponent, f + Y or b + Y
type = ChangeState
value = 800
triggerall = !var(0); <- AI var
triggerall = ctrl; <- this's obvious
triggerall = StateType = S; <- you must at least stand
triggerall = P2StateNo != 40 && P2StateNo != 52; <- can't grapple jumping opponent
triggerall = P2StateNo != [120,155]; <- can't grapple guarding opponent
triggerall = P2MoveType != H; <- can't grapple an opponent which is currently being hit
triggerall = P2StateType = S || P2StateType = C; <- no grappling of aiborne or down opponents
triggerall = P2BodyDist X = [-(const(size.ground.front)+const(size.ground.back)),0]; <- valid distance between you and P2 for throw to activate
trigger1 = Helper(52087),var(5) && (Helper(52087),var(11) || Helper(52087),var(12)); <- your command for a throw here
This is pretty much a repost of what I've said earlier in this topic. Anyone interested might look there. Or would it be better to post it all here?

Bastard Mami

It's better to post there.

generaly speaking I use a trigger of animelemno(-1)= hitframe in mugen.

Cyanide

Quote(Read this again until you understand)
Quiet you, that makes perfect sense. And is better explained than what i was trying to get at.

My testing was done by setting up a macro so i could whack the key quickly and be pretty sure i was getting the cancel as soon as it was possible. Current testing, based on what you've just said in fact seems to say it's any time within the attacking frame, not just that tick. I can get a cancel on tick 1 or tick 4 (well if the move HAS 4 ticks to the frame)

QuoteRegarding throws I have my own methods too. Well noted that "KoF's throws seem to work on the internal "push" box rather than the clsn2's". To be more precise, your "push" box ("width" in mugen terms) must be in contact with P2's center. Also, you can't grapple jumping opponent (so leave out states 40 and 52) and guarding (states [120,155]). This is what my throw controller looks like:
Does the "in contact with p2's center" bit take into account command throws which have more variable range to them? Command throws are affected by essentially the same rules, with the exception that they have a whiff animation. If it's going to hit, it does. During the throw animation, unless there is a startup frame before p2 is hit, there should not be a clsn1 involved in the throw animation.

Here's one too many people screw up.

KoF's evade is NOT total invulnerability. During the entirety of it your character may be thrown. KoF seems to define throws as anything that shows up the throw hitspark. Things like Clark Tackle don't seem to count. In addition, right near the end there is a small window of oppurtunity where you can be hit by anything. I forget if that's near the start too.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Vans

#10
- Something almost nobody gets right: Rolling out of a run increases the roll velocity by 2.
- The guard.velocity of the CD attack is different from ALL the others.
- Guard.velocity of the jumping hard basics should be the same as the ground.velocity used in the standing ones (usually between -10 and -12). This applies to the CD attack as well, except it uses -14.90625 as the guard.velocity in KOF.
- The guard meter acts just like the regular life meter and its full value is the same.

walt

Quote from: Vans on December 08, 2008, 03:08:21 AM- The guard meter acts just like the regular life meter and its full value is the same.
So you get guard crushed if you guard attacks that add up for the full value of your lifebar?

Vans

Sort of, some moves have a really high guard crush value while others use the normal damage value.

Elix

#13
Quote from: Vans on December 08, 2008, 03:08:21 AM
- The guard meter acts just like the regular life meter and its full value is the same.
KOF XI has different values for life and guard meters. 104 is maximum life, 144 - maximum guard, iirc. I am still to find out the dependance between attacks and their stun meter values.

Vans

#14
Seems to be arbitrary to be honest, save for what I said above the values make no damn sense at all.

Elix

What? You say "The guard meter acts just like the regular life meter and its full value is the same." Its (guard meter's) full value (numerical value) is the same (as life meter's). This is how I get what you've written there. And which part of my answer do you find to be arbitrary?

Vans

I meant the actual values "dealt" by the attacks in that last line. :P

Bastard Mami

In most kofs, there might always be exceptions in certain versions of kof.

Elix

Quote from: Vans on December 09, 2008, 11:27:47 PM
I meant the actual values "dealt" by the attacks in that last line. :P
That explains it better. Thanks.

Bastard Mami

#19
When I say general I mean "for most kof versions besides weird spinoffs and after 97" otherwise I will try and mention the year.
(general)
Throws can't hit oponents that are on guarding states.

the next is along explanation on an aproximate implementation of kof's juggle system, as long as you don't have striker this should work ok.

Spoiler (click to show)
Quote from: Rosa Gigantea on July 09, 2008, 07:16:38 PM
Ok, first you have to pay special attention to air recovery and whether it is allowed or not, if my memory serves me right you will use a fall.recover value of 6 ticks. All basic attacks allow for air recovery, all dir +button or special attacks don't; projectiles have to be handled case by case.

You will need to edit the air recovery states so they are automatic, no extra velocities are applyed and you don't recover control while in the air, in kof you won't recover control until you land, while air recovering you can be hit by anything, it's just a matter of juggling.

Juggling is a more complex matter, I will explain the basics first, note that this is not the exact way it works, as helpers in some kof versions create some exceptions, but I am pretty sure it aproximates it rather well.

To juggle someone in kof you have to launch him in the air; The amount of juggle points you get depends on two factors, the first one is which attack you used to launch the oponent and the second one is if you got a counter hit. The juggle points will decrease automatically one unit per tick and once they reach 0 most attacks can't juggle. Also, juggle wise, you have 3 types of attacks; attacks that require at least one juggle point to juggle (the majority), attacks that can't juggle (mostly the launchers) and attacks that will always juggle (normally just one per char, though there are chars that don't have those types of attacks and there are chars that have more than one).

The way i found to code this in mugen is the next.

1. Make all your attacks require 10 juggle points.

[Statedef 210]
Type          = S
MoveType      = A
Physics       = S
Ctrl          = 0
PowerAdd       = 0
Juggle        = 10
FaceP2          = 1
HitDefPersist       = 0
MoveHitPersist       = 0
HitCountPersist    = 0
SprPriority       = 2


2. In your cns file give your character only 8 juggle points.

;___________________________________________________
;
[Data]
;___________________________________________________

Life          = 1000
Power          = 3000
Attack          = 90
Defence       = 80
Fall.Defence_Up    = 0
Liedown.Time       = 10
AirJuggle       = 8
SparkNo       = 0,7
Guard.SparkNo       = 0,20
KO.Echo       = 0
Volume          = 0
IntPersistIndex    = 0
FloatPersistIndex    = 0

a) what you have achieved now is that your character can juggle properly if p3 launches p2, but he won't be able to juggle at all if he launches p2, no problem, there is more to this code, but first.
* mugen has a bug in which you can't even do ground combos if you don't have juggle points, so you want to put in st-2 an assertspecial with nojugglecheck if enemynear, statetype !=A; to allow for regular ground combos.


;___________________________________________________
;
;to allow ground combos

[State -2, ground combos]
type       = AssertSpecial
triggerall    = NumTarget
trigger1    = Target,StateType != A
flag          = NoJuggleCheck



3. make sure to have  section of the cns for st-2 and juggling system, as you can put most of the juggle code in there to make it easier to edit amongst several characters.

4 After we have taken care of the bug we reserve a var to act as the juggle points , in this case var16, since kof always counts down on the juggle points as long as you have some, we decrease one unit per tick.

;___________________________________________________
;
;    Kof Style Juggle System
;___________________________________________________

[State -2, juggle decreasing]
type = varSet
trigger1 = var(16)>0
var(16) = var(16)-1
ignorehitpause = 0

5. Now, we have to set the juggle points depending on which attack is hitting the oponent and counter conditions, I suggest to use several sctrls instead of trying to optimize and make the code hard to read, Though using a simple ifelse expression for counter hit checking should be pretty easy to understand, my counter hit check var is var(15), if it is 1 I got a counter hit.

;___________________________________________________

[State -2, juggle set basics]
type       = varSet
triggerall    = movehit = 1
trigger1    = stateno = [200,999]
var(16)       = ifelse(var(15) = 1,6,0)

Basic attacks normally do not let you juggle afterwards, but if you get a counter hit you are allowed to juggle for about 6 ticks.


[State -2, juggle set CD]
type       = varSet
triggerall    = movehit = 1
trigger1    = stateno = 1350
trigger2    = stateno = 1360
var(16) = ifelse(var(15) = 1,60,0)

In this case I check for both standing and jumping CD, since both give you the same juggling points, no juggle if you hit normally, and a second if you get a counter hit (actually the 60 ticks value here is wrong, you can either try to count ticks in the game or play around with the value until you get the proper feeling/value)


[State -2, juggle set powercharge98 ]
type = varSet
triggerall = movehit = 1
trigger1 = stateno = 4300
trigger2 = stateno = 4310
var(16) = ifelse(var(15) = 1,120,12)

This is a very interesting case, pretty similar to the B shikikai case, in kof98 terry's power charge can only be followed up by a jumping attack or a cancelled raising tackle, but if you get a counter hit you can even do a ground attack or power geyser as a follow up (again, play with the actual values to get a proper feeling).

[State -2, juggle set powercharge97 ]
type = varSet
triggerall = movehit = 1
trigger1 = stateno = 4400
trigger2 = stateno = 4410
var(16) = 120

And this is a simple launcher case, like kyo's D shikikai you can always juggle with pretty much everything after this move hits, regardless of getting a counter or not.

Note that it does not matter if the juggle var last until-after the p2 hits the ground, after all it will be reset once you launch p2 again.

6. Now that we have set our juggle points properly, we just need to add the juggle checks, depending on the attack being used we have three categories so this is just a list.

;___________________________________________________
;
;juggle checking rutine, there is some stuff that never juggles

;___________________________________________________
;
;to allow ground combos

[State -2, ground combos]
type       = AssertSpecial
triggerall    = NumTarget
trigger1    = Target,StateType != A
flag          = NoJuggleCheck

See the note in point 2a.


[State -2, juggle checking regular stuff]
type       = AssertSpecial
triggerall    = var(16) > 0
trigger1    = stateno = [200,999]
trigger2    = stateno = 1350
trigger3    = stateno = 1360
flag          = NoJuggleCheck

This is a list that includes pretty much most attacks.

[State -2, juggle checking always juggle]
type       = AssertSpecial
trigger1    = stateno = 1500
flag          = NoJuggleCheck

1500 would be a move that always juggle, somethignlike oswald or kula's ldms in kof xi, beni's sdm in kof2001, mary rpd follow up in kof 97 amongst other stuff.

stuff that never juggles is simply off the list.


7. About projectiles. I suggest using helper projectiles, so you can add code to them. in the juggle check code you can use helper(X), redirection to set the juggle points and in the helper's code add parent,var(16) > 0 triggers to allow juggling. I am skipping coding that step explicitly because that is rather simple if you understand the previous code and should be seen as an exercise.

I hope I did not forget anything.

This code is provided to be free of use and I take no legal responsability of what is done with it; if you manage to kill yourself using this code I am not to be held responsible.