Talk:Damaging floor

Radiation suit penetration
FYI: The code for 20% damage reads "P_Random<5" but the actual chance of this being true is 6/256 rather than 5/256. This is because the random number table has two 0's, no 1's, two 2's, one 3, and one 4 for a total of six values less than 5. radius 02:46, 7 Mar 2005 (GMT)

Is this comment about the suit penetration not occurring in vanilla doom actually correct? Examining the source to prboom 2.2.6 reveals that it still has the behavior from the original Doom source code. The call to P_Random means that any 1.9 demo featuring a player walking through slime while wearing a radiation suit should go out of sync. Prboom is renowned for its demo backwards compatibility. Fraggle 11:13, 9 Mar 2005 (GMT)

In my little test level, ZDoom behaved as expected from the source code (very occasional 20% damage), but using doom.exe and doom95.exe I never got any damage while wearing the suit. (Maybe the latter have the P_Random call but don't do the damage correctly? Just speculating...) radius 04:48, 10 Mar 2005 (GMT)