Melee Momentum Transfer?

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/
  • Weve updated the Tripwire Privacy Notice under our Policies to be clearer about our use of customer information to come in line with the EU General Data Protection Regulation (GDPR) rules that come into force today (25th May 2018). The following are highlights of our changes:


    We've incorporated the relevant concepts from the GDPR including joining the EU and Swiss Privacy Shield framework. We've added explanations for why and how Tripwire processes customer data and the types of data that we process, as well as information about your data protection rights.



    For more information about our privacy practices, please review the new Privacy Policy found here: https://tripwireinteractive.com/#/privacy-notice

EvilHobo

Grizzled Veteran
Dec 22, 2005
2,613
192
63
Germany, NRW
How could I go about making it such that when you bash someone, it causes them to be pushed back? I saw that momentum is a property of projectiles, but can it be applied to melee attacks, and if so, how?
 

worluk

FNG / Fresh Meat
Nov 21, 2005
2,226
85
0
I doubt that it would work with momentum transfer since nothing actually hits the player imo. You'd be better off to add a certain velocity vector to the playerpawn or similar.
 

worluk

FNG / Fresh Meat
Nov 21, 2005
2,226
85
0
you would have to get the vector of the attacker to the victim and add it up to the velocity vector of the victim (norm the vector and multiply with the length).

And well, you would do that when the hit is calculated. Problem, the pawn would still play the anim it is in at that moment and would be "iceskating".
 

lumberg

FNG / Fresh Meat
Mar 18, 2006
81
0
0
what if you converted the melee attack to a point blank projectile attack ? would that make it easier
 

TT33

FNG / Fresh Meat
Mar 2, 2007
571
159
0
hmm interresting yeah I agree about that I would think when a person is hit with the buttstock of my rifle or knifed in the back a trusty bayonet they would fall to the ground or stumble foward after the attack with a blurred blurred vision perhaps "disoriented"**. - would be interesting if you got this to work

**There was an old game on Unreal called Deusex (1997ish) where if you drunk too much beer/wine did "zime" or got poisoned there was a cool blurred effect and a head spining effect which made it hard to walk or shoot I always thought something like this would have been nice for hand to hand combat or if you got shot in a fatal area but are not dead.
a bit of a handy cap to go with the red parts of the player's body.
 

LogisticEarth

FNG / Fresh Meat
Sep 24, 2007
831
132
0
Pennsylvania, USA
**There was an old game on Unreal called Deusex (1997ish) where if you drunk too much beer/wine did "zime" or got poisoned there was a cool blurred effect and a head spining effect which made it hard to walk or shoot I always thought something like this would have been nice for hand to hand combat or if you got shot in a fatal area but are not dead.
a bit of a handy cap to go with the red parts of the player's body.

Deus Ex is not an "old" game. I refuse to beleive it.:( STALKER has a similar effect if you drink loads of vodka. I always find it fun to get wasted and try and take out the first mission.

God why does being 22 feel so old.

If momentum is too difficult I still think a mod that includes a blurring effect when you get hit would be great. I always am amazed at my trooper being able to shrug off a few bullets, getting wounded in the arms, legs, and groin :)eek:) and still maintaining his rock steady iron sights, ha.
 

TT33

FNG / Fresh Meat
Mar 2, 2007
571
159
0
remember the wave though for Deus ex ( there are stilla few active mods) it was hard to see due to the blurred textures and your"camera" (what you see) waved all around the screen making it difficult to aim