Goonstation Forums
Prismatic Spray [New Wizard Spell] - Printable Version

+- Goonstation Forums (https://forum.ss13.co)
+-- Forum: Discussion (https://forum.ss13.co/forumdisplay.php?fid=6)
+--- Forum: Patches (https://forum.ss13.co/forumdisplay.php?fid=30)
+---- Forum: Implemented (https://forum.ss13.co/forumdisplay.php?fid=31)
+---- Thread: Prismatic Spray [New Wizard Spell] (/showthread.php?tid=10316)



Prismatic Spray [New Wizard Spell] - Noah Buttes - 04-10-2018

What it is:

A spell made to imitate 5th Edition DnD's spell Prismatic Spray.

What it does:

It sprays out 12 randomly generated projectiles, created by leveraging pre-existing artifact bullet code, in a cone with an opening of approximately 53.15 degrees, which is roughly what the cone AOE in DnD 5e corresponds to.

It's an extremely high variance spell and is not reliable as a primary damage dealer, but can definitely save your hide in a pinch. It currently has a cooldown equivalent to the modern fireball cooldown of 35 seconds.

There's also an admin exclusive version that sprays out any and all types of projectiles in the game in a 360 degree radius.


Why I did it:
I dunno.

Things it needs:
Voice lines for male, female, and necromancer wizmen.
A sprite for the ability icon.

Things it doesn't need:
Functional code.


Demonstration video using varediting to bypass cooldown restrictions and chapel usage restrictions:





Compare:
https://github.com/goonstation/goonstation-2016/compare/goonstation-2016-byond510...NoahButtes:prismaticspray

Diff:
https://github.com/goonstation/goonstation-2016/compare/goonstation-2016-byond510...NoahButtes:prismaticspray.diff

Patch:
https://github.com/goonstation/goonstation-2016/compare/goonstation-2016-byond510...NoahButtes:prismaticspray.patch

EDIT:
New icons thanks to Kubius!
Code refactor that does the following:
Code:
removes some rare runtimes, makes things much more efficient, handles edge cases such as the target being on the same tile as the caster, and handles mage staves/arcanepower

New feature: standing on the same tile as the target for your cone will now make your projectiles spew out in all directions. This should allow for more strategy as it provides the spell with more flexibility for use as a defensive crowd control tool.

To compensate, the cooldown has been increased by 5 seconds.

Also, the spell now runs the check for random *before* using a for loop. I have no fucking clue why I wrote the checks inside the for loop. As a result, the spell is marginally smoother!

EDIT 2:

Chaplains and wizards with spellpower (have a staff or a specific bioholder trait) are now completely safe from the projectiles generated by prismatic spray.

In the future, if you want to protect chaplains and spellpowered wizards from specific projectiles, set the is_wizardly var in the datum for that projectile to 1.


RE: Prismatic Spray [New Wizard Spell] - Grifflez - 04-10-2018

Vital question: Is the incanation "Projectul Infernus"


RE: Prismatic Spray [New Wizard Spell] - Noah Buttes - 04-10-2018

Here's a demonstration of the admin version:



(04-10-2018, 09:26 PM)Grifflez Wrote: Vital question: Is the incanation "Projectul Infernus"

It can be!


RE: Prismatic Spray [New Wizard Spell] - elan_oots - 04-10-2018

Can you make the projectiles go in a cone centered on the targeted location, as opposed to the nearest cardinal direction?


RE: Prismatic Spray [New Wizard Spell] - Noah Buttes - 04-10-2018

(04-10-2018, 09:40 PM)elan_oots Wrote: Can you make the projectiles go in a cone centered on the targeted location, as opposed to the nearest cardinal direction?

That's what it does, it just so happens that all the hallways are in cardinal directions. i wanted to show it off.


RE: Prismatic Spray [New Wizard Spell] - Noah Buttes - 04-11-2018

UPDATE:
New version pushed via git desktop, check main post for details


RE: Prismatic Spray [New Wizard Spell] - Rocket - 04-12-2018

the more wizard spells the better, there are so many from https://www.dnd-spells.com/spells that could be implemented


RE: Prismatic Spray [New Wizard Spell] - New525 - 04-12-2018

This is a very cool spell


RE: Prismatic Spray [New Wizard Spell] - elan_oots - 04-15-2018

Look at 40 seconds in the first video, you fire it almost diagonally from you but it still goes straight up the hallway. Do my eyes deceive me, or is there something else at play?


RE: Prismatic Spray [New Wizard Spell] - Noah Buttes - 04-16-2018

(04-15-2018, 10:31 PM)elan_oots Wrote: Look at 40 seconds in the first video, you fire it almost diagonally from you but it still goes straight up the hallway. Do my eyes deceive me,  or is there something else at play?

Huh.

I'm going to say that's probably a recording/video error because I'm pretty sure I fired that one straight up the hallway.


RE: Prismatic Spray [New Wizard Spell] - cyberTripping - 04-16-2018

(04-16-2018, 08:21 AM)Noah Buttes Wrote:
(04-15-2018, 10:31 PM)elan_oots Wrote: Look at 40 seconds in the first video, you fire it almost diagonally from you but it still goes straight up the hallway. Do my eyes deceive me,  or is there something else at play?

Huh.

I'm going to say that's probably a recording/video error because I'm pretty sure I fired that one straight up the hallway.

Looking at the rest of the video that seems to be the case. Your mouse is offset to the right in the recording.


RE: Prismatic Spray [New Wizard Spell] - Noah Buttes - 04-16-2018

(04-16-2018, 06:31 PM)cyberTripping Wrote:
(04-16-2018, 08:21 AM)Noah Buttes Wrote:
(04-15-2018, 10:31 PM)elan_oots Wrote: Look at 40 seconds in the first video, you fire it almost diagonally from you but it still goes straight up the hallway. Do my eyes deceive me,  or is there something else at play?

Huh.

I'm going to say that's probably a recording/video error because I'm pretty sure I fired that one straight up the hallway.

Looking at the rest of the video that seems to be the case. Your mouse is offset to the right in the recording.

Gosh darn OBS.


RE: Prismatic Spray [New Wizard Spell] - NateTheSquid - 04-17-2018

(04-16-2018, 07:00 PM)Noah Buttes Wrote: Gosh darn OBS.
anyone else have a weird thing where OBS makes all their computers noises super quiet? the mic records at a normal volume but whenever OBS is open, everything plays back really quiet. my computer sounds (like in the recording settings) are set to max. its annoying


RE: Prismatic Spray [New Wizard Spell] - Noah Buttes - 04-18-2018

UPDATE:

Chaplains and wizards with spellpower (i.e. they have a staff or a specific bioholder trait) are now completely safe from the projectiles generated by prismatic spray.

In the future, if you want to protect chaplains and spellpowered wizards from specific projectiles, set the is_wizardly var in the datum for that projectile to 1.


RE: Prismatic Spray [New Wizard Spell] - Recusor - 04-18-2018

very good to know, thanks!