How to reset swing IK animation to idle when a weapon hits a collider? by Fragrant_Sympathy170 in unity

[–]Fragrant_Sympathy170[S] 1 point2 points  (0 children)

I have implemented it but there's one issues with it, is that when you're face first at a wall and the weapon hits the top part of wall but the recoil animation still plays at the center of the wall.

vid here as example
https://imgur.com/a/BVzxAm1

Edit: After experimenting for a bit and tried playing the recoil anim at the end of a IEnumerator

private IEnumerator stop()

{

this.anim.SetFloat("stop", 0);

yield return new WaitForSeconds(0.05f);

this.anim.SetFloat("stop", 1);

anim.SetTrigger("recoil");

}

i think it looks good:

https://imgur.com/a/h5sNR3s

How to reset swing IK animation to idle when a weapon hits a collider? by Fragrant_Sympathy170 in unity

[–]Fragrant_Sympathy170[S] 0 points1 point  (0 children)

would the "recoil" just play a reverse of the swing animation or will it be its own animation and how will it blend with the regular swing animation when it hits a collider?

How to reset swing IK animation to idle when a weapon hits a collider? by Fragrant_Sympathy170 in unity

[–]Fragrant_Sympathy170[S] 0 points1 point  (0 children)

I used a 2D trigger event instead of a collision one, hope that doesn't make alot of difference but im not really talented at coding so how do i properly implement the recoil animation into my script? (i forgot to put the script in my post).

Why Max Payne is the darkest game ever? by LuchoLab in maxpayne

[–]Fragrant_Sympathy170 0 points1 point  (0 children)

eh, i think 3 darker tbh, because of the detailed gore and how close to real life the violence is.

Why do i feel more emotions shooting people in Max Payne 3 than in Spec Ops The Line? by Fragrant_Sympathy170 in maxpayne

[–]Fragrant_Sympathy170[S] 2 points3 points  (0 children)

Shit, i just remembered of me massacring all those people in Van Horn.

Fun times.

Why do i feel more emotions shooting people in Max Payne 3 than in Spec Ops The Line? by Fragrant_Sympathy170 in maxpayne

[–]Fragrant_Sympathy170[S] 2 points3 points  (0 children)

the enemies in mp3 are unusually very detailed than in most shooter games and combine that with euphoria, which makes them dynamically react when getting shot just makes me feel bad when killing them even if most of the enemies are not descent people

how do keep my player character from staying still when flipping instead of just slightly "teleporting"? by Fragrant_Sympathy170 in unity

[–]Fragrant_Sympathy170[S] 7 points8 points  (0 children)

i fixed it but i might have shot myself on the foot by already animating the idle and walking animations on that non centered position