Topic: Stun Feature not functioning

The stun feature is not functioning properly. We made modifications to the Physics script and the control script but we are unable to figure out how we broke this feature. Any suggestions would be great as we've hit a dead on on figuring this problem out. I've attached a video for interested parties to check out. The problem is not matter how light the hit is the character falls to the floor once hit.

https://youtu.be/xsSkPTJGGJo

Re: Stun Feature not functioning

It seems like every hit is adding at least 1 point on vertical force.
There is a code segment inside ControlsScript.GetHit that checks if the character is over their crumple limit. If they are, pushForce.y is set to 1 so the character instantly falls down:

if (consecutiveCrumple > UFE.config.comboOptions.maxConsecutiveCrumple) {
      isKnockDown = true;
      airHit = true;
      pushForce.y = 1;
}

Look and see if you changed any of those conditions.

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.

Re: Stun Feature not functioning

Mistermind wrote:

It seems like every hit is adding at least 1 point on vertical force.
There is a code segment inside ControlsScript.GetHit that checks if the character is over their crumple limit. If they are, pushForce.y is set to 1 so the character instantly falls down:

if (consecutiveCrumple > UFE.config.comboOptions.maxConsecutiveCrumple) {
      isKnockDown = true;
      airHit = true;
      pushForce.y = 1;
}

Look and see if you changed any of those conditions.


Thanks for the response. I checked the snippet of code that you suggested and it has not been modified. Do you have any other suggestions?

Re: Stun Feature not functioning

Looks like we found the issue...it was in the Physics script. We were able to patch the problem but it only works  if the players transform Y position is at 0.  Just allowing the player Y position to go beyond or below 0
when the player goes beyond or below 0, this is when the player breaks and the stun feature stops working causing the player to immediately fall once they are hit.

PunBB bbcodetest

Re: Stun Feature not functioning

Unfortunately we still have not found a resolution for this issue. Still looking for suggestions.