[no]Projectile Obituaries and [already done]A_Mushroom

Moderator: Graf Zahl

User avatar
Zeg-Vok
Posts: 233
Joined: Wed Sep 21, 2005 18:04
Location: Up the creek without a paddle

[no]Projectile Obituaries and [already done]A_Mushroom

Post by Zeg-Vok »

Why not have projectiles contain the obituary code rather/along with the monster that spawned it. That way instead of having to use the same obituary for a monster with multiple missile attacks (And some unique player weapons), you could have an Obituary in the missles Decorate code so you could have a wider variety or obituaries.

Also, would it be possible to select which projectiles are spawned by A_Mushroom?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

A_Mushroom can take 2 parameters: The projectile type and an amount. As for the obituaries, I'll change it if ZDoom changes it. I won't do such changes before I get the floating point code.
User avatar
Zeg-Vok
Posts: 233
Joined: Wed Sep 21, 2005 18:04
Location: Up the creek without a paddle

Post by Zeg-Vok »

Graf, by telling me that, you have just saved me possibly Hundreds of lines of code
User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

Re: Projectile Obituaries and A_Mushroom

Post by Enjay »

Zeg-Vok wrote:you could have an Obituary in the missles Decorate code so you could have a wider variety or obituaries.
Possibly, but that one cuts both ways. I have a bunch of different monsters that use a variety of attacks based around the same custom missiles. With your suggestion, I'd have to redefine all of them to use a different missile. Just think of the Baron and Hell knight - same missile, different monster.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

Thanks for reminding me. That makes it a clear 'no'!
User avatar
Zeg-Vok
Posts: 233
Joined: Wed Sep 21, 2005 18:04
Location: Up the creek without a paddle

Post by Zeg-Vok »

I wasnt going to get too deep into that suggestion as I didnt want to make it sound like I was telling anyone what to do. But I never said that the monster obituaries should be removed, as when the projectile has no obituary, it Would(Should?) default back to the monster's obituary like when a monster kills a player with its Melee attack and uses the default obituaries when the Hitobituary isn't present.

Return to “Closed Feature Suggestions”