CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.34k stars 4.14k forks source link

We should be able to cast non wall-ignoring spells like Jolt onto different z-levels. Like onto flying wasps for instance. #48293

Open ifffrt opened 3 years ago

ifffrt commented 3 years ago

Is your feature request related to a problem? Please describe.

Now that flying wasps can attack you while flying just above your head and fuck you up real good, we should be able to cast non-wall-ignoring spells like Jolt, Windstrike and Lightning Bolt (as opposed to spells like Ionization) at an angle, so that it can now hit enemies that are not on the same z-level as you. This is way better than having to aim with your gun, since area-of-effect spells are much harder to miss.

Describe the solution you'd like

We should be able to shoot area-of-effect spells at an angle, freely aiming at a monster above (or below) you. This should ideally cross multiple z-levels as well, such as hitting a wasp at the z-level directly above you and incidentally hitting another wasp that was 2 z-level above you that just happened to line up perfectly.

Describe alternatives you've considered

None. I mean, why should shooting our spells upwards and downwards be impossible irl (if magic existed)?

actual-nh commented 3 years ago

This should depend on whether fov_3d is enabled. Without it, no attacks either way should be going on (see #42845 and PR to fix it). With it, yes, this would be desirable.

Termineitor244 commented 3 years ago

Wait, isn't this already a thing? One of my characters is currently hiding in the upper floors of a school, and it has fired multiple spells (AOE and not AOE) to the lower floor, killing several zombies, several times. I do have fov_3d enabled...

ifffrt commented 3 years ago

Which spells did you use? Some spells are already able to fire at different z-level. The difference is they must also be spells that can be cast through walls.

actual-nh commented 3 years ago

Which spells did you use? Some spells are already able to fire at different z-level. The difference is they must also be spells that can be cast through walls.

Is it possible that (assuming fov_3d is on) a floor is getting in the way of spells that can't be cast through walls?

Termineitor244 commented 3 years ago

Which spells did you use? Some spells are already able to fire at different z-level. The difference is they must also be spells that can be cast through walls.

Oh, my bad, the spells were Gravity Well, Ice Spike and Point Flare, all of them are able to be cast through walls, I noticed until now that you explicitly stated a problem with non-wall-ignoring spells, let me confirm with those spells... Aaaaaaaaaaaaaaaaand confirmed, it seems the "air" is considered a wall or something, since whenever I cast one of the spells OP mentioned, to a lower level, it seems like it worked, but I check the horde and nobody was hurt, no deaths either.

This occurs whether I shoot from a hole in the second and third floors, or if I shoot from a broken window to the ground with nothing in between, just air, it seems like you cast the spell in your current Z-level, since the sparks from the Lightning Bolt appear not in the ground, but in the air above my objective

actual-nh commented 3 years ago

Ping: @KorGgenT?