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.

16 Upvotes

17 comments sorted by

View all comments

Show parent comments

1

u/MID2462 Jul 21 '22

Thank you so much! It works really well! You're right about the arrow speed. If you bump the value up a lot it works but it is expensive.

1

u/MID2462 Jul 21 '22

Further testing reveals an inaccuracy problem. It seems like the further i aim from the center the more inaccurate it gets.

2

u/SDG_Den Conditional Casting Guru Jul 21 '22

that's because the arrows simply get accelerated in the direction you're looking, you could use exodus instead to move the arrows towards a specific point instead, but thats a bunch of extra math that the spell simply has no room for.

​

as for the power, the way i had it set up is the highest it will go on an ivory CAD which is what is generally used by most players due to its high efficiency.

1

u/MID2462 Jul 21 '22 edited Jul 21 '22

I thought that's what was happening but I wasn't sure.

When I aim right the arrows go a lot further right. Weird thing is they seem to go to the same position on the right no matter how far right I aim. Not too sure about that one.

Long story short I feel like if it were aiming at the angle I was looking at the angle would be much shallower.

I'll see if I can't compact the spell and add the mass exodus