Topic: Corner push problem

On the ground, the corner push operates at a normal value. However, when the opponent is hit in the air, the corner push operates at an abnormal value.

https://www.youtube.com/watch?v=Js3foNhLKVc

Share

Thumbs up +1 Thumbs down

Re: Corner push problem

Source version is required for this one.
Under ControlsScript.cs (line 2675 & 2676) change the code from this:

myPhysicsScript.AddForce(
     new FPVector(hit._pushForce.x + (opControlsScript.Physics.airTime * opInfo.physics._friction), 0, 0), -GetDirection(), true);

To this:

myPhysicsScript.AddForce(new FPVector(hit._pushForce.x, 0, 0), -GetDirection(), true);

Im not entirely sure why I coded it that way. I'll revise and refactor this code segment on the next update.

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

3 (edited by dkr1445 2023-09-05 08:34:10)

Re: Corner push problem

It seems the mechanism of the corner push works only when attacking an enemy 'on the wall', and when an enemy close to the wall gets stuck in the wall due to a hitback, the remaining hitback does not seem to be applied as a corner push.

I want to redefine the corner push mechanism separately, but I think I need information on the references to implement it. I'd like to refer to the information for coding such as boundaries (if the character touch the wall) and hitback variables.

Share

Thumbs up Thumbs down