Simulating Cornerpush

Started by Doggiedoo, August 26, 2008, 09:17:27 AM

Previous topic - Next topic

Doggiedoo

Looking for help on replicating cornerpush upon projectile contect, for the recently released Leo.

As a workaround for p2stateno causing hitdefs to miss against hitoverrides, I'm using a projectile to do the actual hit and a blank hitdef to keep his moves reversable*. This means simulating pausetime and cornerpush, but I'm not sure of the exact formula for cornerpush friction. Is it dependant on standing/crouching friction, or any other factors?

Thanks in advance.


*well, only against reversals with invincibility, but it still helps.  ;P

Bastard Mami

The mugen cornerpush is rather lame. take the hitvel that is applyed to p2 and apply it to you, using a friction of 0.7.

Doggiedoo

Thanks! That friction isn't cumulative with normal standing friction, is it?

Bastard Mami


PotS

Quote from: Doggiedoo on August 26, 2008, 09:17:27 AM
As a workaround for p2stateno causing hitdefs to miss against hitoverrides
Replacing p2stateno with TargetState on movehit=1 also fixes that.
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.

Doggiedoo

Is it possible to make that work safely in simul mode? Until now, I'm unsure how to targetstate the right enemy when one blocks and the other gets hit in the same frame, only both or neither. Given the reach of Leo's weapons, this could happen quite often. Would help tremendously with guard breaking in simul mode, too.

Bastard Mami

does a blocking character become a target ?

Doggiedoo

Yep. It's how all my characters guard crush.

PotS

I wonder if it's possible to drop only a target that isn't getting hit/guarding with TargetDrop, might make some tests later.
You can help with Ikemen GO's development by trying out the latest development build and reporting any bugs on GitHub.
My Mugen and Ikemen content can also be found here.

Bastard Mami

probably some workaround using the target's Id and some triggers detecting thier states.

Doggiedoo

#10
Turns out blank hitdef + projectile w/ p2stateno glitches against any reversal which also uses p2stateno. :( Not 100% certain what's happening, but it appears that p2 (that gets hit by the projectile while reversing p1's attack) tries to do a SelfState instead of a ChangeState. E.g, projectile w/ p2stateno = 5706 hits p2 in the same frame p2 reverses p1, p2 will look for 5706 within it's own states instead of p1's states, usually resulting in an invalid statechange.

EDIT: Gonna try targetstate, with the custom states doing a selfstate to prevstate if gethitvar(guarded) as a safety net. May cause some triggers to fire twice, but that'll hopefully be rare enough to be worth it.