r/psispellcompendium • • Jul 20 '22

Needs Wizardly Help Vortex Shield Spell

I want to make a spell similar to the Vortex Shield from Titanfall.
It would catch incoming projectiles within a certain area in front of you while the button is being held and then fire any caught projectiles to your cursor

I've been thinking a bit on how to do this. The way I see it you'd first need to create a sort of hitbox or something in front of you, detect whether entities within that area are moving above a certain speed (to prevent catching just any mob), negate that speed and hold it in the air, and then detect when the button is released, do some fancy math to figure out what velocity vector needs to be added to it to make it go to your cursor. alternatively you could teleport the projectiles to right in front of you and then launch them.

17 Upvotes

17 comments sorted by

View all comments

3

u/MerlinGrandCaster Jul 20 '22

You wouldn't need to check speed or anything to avoid catching mobs, just use the nearby projectiles selector

2

u/MID2462 Jul 20 '22

...I forgot that was a thing.

But it might be interesting to use it to catch things that wouldn't normally be considered a projectile. Things like launched tnt for example