Issues with the DMG_CANHURTSELF damagetype
Found a few bugs regarding the damagetype DMG_CANHURTSELF
.
-
Hurting yourself with
DMG_CANHURTSELF
gives you points in Match and CTF:The 50-point penalty for dying still applies, which is why I don't get the usual 100 points added for killing a player.
-
If
friendlyfire
is enabled in a team gamemode (ex. CTF), the player can't kill themselves. You can't kill teammates withfriendlyfire
enabled either (which is intentional according to the code comments), but not being able to do the same to yourself seems unintended when you can do so withfriendlyfire
off. -
If
friendlyfire
is enabled, you can hurt your teammates withDMG_CANHURTSELF
. Interestingly, you still can't kill them, but if they have no shield or rings, they will spill 1 ring.
The test script below replaces A_RingExplode
with a version that uses DMG_CANHURTSELF
when damaging nearby objects. For best test results, use the Explosion/Bomb Ring.