How to get WASD / Omni-directional Input?

Hey Everyone, i’m new to the workshop :slight_smile: so i hope you can help me.

i wanted to build a blink-like-dash and i got it working with 4 Directions (used Throttle of, Event Player, Forward etc.). But as soon as i press A+S, D+S, A+W, D+W and the Dash-Key (Ability 1), my hero gets moved forward instead of a diagonal direction. That makes sense because there is no “amply impulse, Backwards-Left etc.”.

So i was thinking, what if i can get the direction via Vector and then use the Vector-Information as direction for “impulse”. But it seems i can’t find a way to fetch current movement direction into a vector - at least i don’t know how ^^ any ideas?

Throttle Of should give you the input directions of movement even diagonal.

how would i use it to fetch the direction into an vector AND than use it to apple impulse? Sorry im so new to the workshop ^^" i have a little bit of programming experience, but no routine.

For the 4 way dash i used:
If (Throttle Of(Event Player) == Forward:
– Apply Impulse (Event Player, Forward, Distance, To Player, Cancel Contrary Motion)

and Else If for the rest of the directions.

the impulse is controlled by a vector3, forwards return vector3(0, 0, 1). and throttle is a vector3. just input throttle.

1 Like

Thank you! That worked perfectly and wasn’t that hard at all after you explanation ^^ Awesome!

by Random, you don’t know how to modify an reinhardt firestrike projectile to add another hitbox and turn it horizontal by any chance? xD I don’t even get sound displayed. At least a firestrike is fired.

projectiles can not be modified in any way by the workshop. your best bet would be a fake firestrike from create projectile effect + tracking position, facing and damage triggers yourself. (cant use create projectile because it doesn’t support piecing enemies)

but even then you cant rotate it like that so…

1 Like

Thanks for the quick response!

Although your answer saddens me T_T
I wanted to build my perk recommendation for Reinhardt, to try it out. Because i thought 3/4 perks right now don’t really change how i would play him, and i would love perks to double down in his close quarter brawls and give players more skill expression and different ways to play.

I built the dash as an charge replacement. Right now im pretty happy with the stats and how it feels. But it needs testing in real fights and adjusting accordingly. Workshop: 5SBP6

And then i wanted to built a Perk that allows to combo firestrikes like in fighting games.

MASTER THE HAMMER:

  • Flavour: Reinhardt remembers the training with Balderich and uses a less powered Hammer to perform combos with firestrike.

  • Infbox: Reinhardt gets an additional firestrike charge and the ability to combo them in quick succession (Vertical, Horizontal, Cone), but each firestrike does 30-40% less dmg.

  • Comment: Reinhardt is the only actual Melee Character in OW, so it would be fitting if he does combos like in a lot of other brawl/fighting games. If you’re using firestrikes within a 1-2-second timeframe, they now change behaviour. The First Firestrike will always be the common Vertical one. The Second one becomes a horizontal one (with added hitbox) to hit targets in a wider path. The Third one becomes a strike to the ground and hits in a small cone in front of Reinhardt (maybe about the size of Hazard Spike Guard). Optional: It ignites enemies for 2-3seconds.
    Now you have the option to burn your firestrike-charges to suprise the enemy and catch them off-guard or just totally double down in the brawl. Or you can still use them on corners and on range. But i imagine the options give more depth and agency to rein-players. Sadly i didn’t get that working in the workshop. Animation wise i imagine it would look like normal firestrike, than a swing but with firestrike and an overhead shatter - could also be amazing to bait or sneakly shatter i just realized.

I imagine this could be really cool and engaging :frowning:

the quick reply is just because i just so happen to check on the 5 sites i check on daily. just now, yeah the workshop limits are brutal there’s a reason i moved to modding games. after doing the workshop since it released…

i still appreciate you for taking the time! :slight_smile: thanks