TNT Comedy
Boinciel inspired me to turn my small joke into a Big Joke. Initially just for TNT deaths, then expanded to deaths from any MF2_EXPLOSION
inflictor, then expanded to any death from damage that would knock you back more than 4 times the normal amount for your scale.
Technical details:
- The only actual gameplay change should be that ragdolled corpses can damage TNT (and therefore continue getting knocked around)
-
player->mo->extravalue1
is used as a speed to incrementrollangle
and also generally to check if a dead player is ragdolling. -
player->mo->extravalue2
is used to indicate that the corpse is done ragdolling - it will clip through walls and floors and no longer trigger TNT - By the way, I believe this fixes the old dead players not falling through slopes glitch? Turns out, when the corpse was moving, it would try to step up back onto the floor! maxstep for dead players has been set to 0. Haven't actually tested in the original context from that bug, so may have been unrelated anyway.
Edited by Kays Ishaq