SpellMissiles layer

Discuss coding questions, pull requests, and implementation details.
Post Reply
User avatar
pango
Posts: 3347
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

SpellMissiles layer

Post by pango »

While trying to understand why spell missiles can be stopped by a mere arrow, I noticed that:
  • objects on the SpellMissiles layer do not collide with one another (good);
  • arrows are on this layer;
  • the spell missiles I sent are not, they're on the Default layer for some reason:
Spell Missile layer.jpg
Spell Missile layer.jpg (99.8 KiB) Viewed 1429 times
That looks like a bug, the prefabs are on the SpellMissiles layer, but instantiating doesn't preserve that info...

Edit: the cloned Magic Missile seems on the right layer, the attached DaggerfallBillboard is not, mmmh
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
pango
Posts: 3347
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: SpellMissiles layer

Post by pango »

Okay, both spell missiles billboards and arrow models didn't inherit the layer from their parent.
I submitted a PR
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

User avatar
Hazelnut
Posts: 3015
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: SpellMissiles layer

Post by Hazelnut »

Nice work! :)
See my mod code for examples of how to change various aspects of DFU: https://github.com/ajrb/dfunity-mods

User avatar
Baler
Posts: 225
Joined: Thu May 23, 2019 1:39 am
Location: Earth

Re: SpellMissiles layer

Post by Baler »

From a visual standpoint this fix is a big deal! Thank You!!

User avatar
pango
Posts: 3347
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

Re: SpellMissiles layer

Post by pango »

I was mostly concerned by gameplay effects; It's hard to justify an arrow and a spell simply annihilating each other (or even 2 spells for that matter)...

It means you could protect against powerful spells with just a bow and some arrows (and good reflexes).
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Post Reply