Hello there!
I made a lightning gun. It works great but if I kill another player/bot with this weapon, the death message is "%o was railed by %k.". I already wrote a obituary which says "%o was electroduced by %k's lightning gun." but this seems to be ignored by weapons, that uses A_RailAttack commands.
I have attached the weapon here. Start a deathmatch with this gun and see what I mean.
[2.8.1] Bug : Obituaries doesn't work on railguns
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
-
- Posts: 36
- Joined: Thu Oct 06, 2016 7:58 am
- Location: Germany
[2.8.1] Bug : Obituaries doesn't work on railguns
You do not have the required permissions to view the files attached to this post.
-
- Posts: 1774
- Joined: Sat Oct 17, 2009 9:40 am
Re: [2.8.1] Bug : Obituaries doesn't work on railguns
I've checked this, the regression starts with zdoom r3646.
-
- Lead GZDoom+Raze Developer
- Posts: 49183
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [2.8.1] Bug : Obituaries doesn't work on railguns
And the changelog gives a clear reason for that:
The thing is, it's an either-or proposition, you cannot have both working at the same time.
The reason was, if I am not mistaken that secondary damage of another type would not display the proper message.ClientObituary() now only looks up the obituary message from the killing player's weapon if the damage type was 'Melee' or 'Hitscan'.
The thing is, it's an either-or proposition, you cannot have both working at the same time.