ZDoom / gzdoom

GZDoom is a feature centric port for all Doom engine games, based on ZDoom, adding an OpenGL renderer and powerful scripting capabilities
http://zdoom.org
GNU General Public License v3.0
2.33k stars 526 forks source link

[BUG] MBF21: Player takes RadiusDamage from projectile in same splash group #2576

Open mdecalza opened 1 month ago

mdecalza commented 1 month ago

GZDoom version

GitHub version 4.12.2

Which game are you running with GZDoom?

Doom 2

What Operating System are you using?

None

Please describe your specific OS version

Windows 10 Home

Relevant hardware info

No response

Have you checked that no other similar issue already exists?

A clear and concise description of what the bug is.

In GZDoom g4.12.2, the player takes damage when firing the shotgun replacement in this wad: intercep3_res.wad

The custom projectiles and the player each have the same splash group in the Dehacked file, so they shouldn't hurt the player: splash group = 0

Oddly, the splash damage doesn't take effect on projectile spawn, but if the player catches up to the projectile or stands near as it hits a wall, they will take unintended splash damage. Enemies on the other hand take very little splash damage from the fireballs. In other MBF21 ports (Woof! and DSDA), the monsters take all the splash damage while the player is immune as intended.

Steps to reproduce the behaviour.

Explain how to reproduce

  1. Load GZDoom with intercep3_res.wad.
  2. Boot up any map and type IDFA.
  3. Switch to the shotgun. It now fires fireball projectiles.
  4. Fire the shotgun at a wall or run towards the projectile (using turbo helps).
  5. The player will take splash damage as the projectile calls the MBF21 RadiusDamage function.

Following the same steps in Woof! & DSDA-Doom, the player takes zero splash damage, as expected.

Your configuration

<script src="https://gist.github.com/mdecalza/31609e6c305ac4a76aee9722021a2464.js"></script>

Provide a Log

No response

coelckers commented 1 month ago

Your file link goes to a private file, Please make the link public.

mdecalza commented 1 month ago

Fixed. Pasted for convenience.