Talk:Spawning

From DoomWiki.org

Formula[edit]

Where does the 35 in the formula come from? If it does not respawn when the tic count is a multiple of 32, then it should be 31/32 * 6/256 instead. —Preceding unsigned comment added by 24.6.17.207 (talk)

35 converts tics to seconds.  Presumably, a human player trying to backtrack ahead of traffic is thinking in seconds, not tics.  The sentence also says "approximately", so maybe the factor of 31/32 was too near 1 to bother with?    Ryan W (living fossil) 21:15, 1 September 2018 (CDT)
35/32 is another way of expressing 35 * 1/32. The monster does respawn when the tic count is a multiple of 32. I had to read that sentence at least a dozen times until I spotted that, looks like we all read the opposite of what it says instead. --Eris Falling (talk) 21:51, 1 September 2018 (CDT)
I was mainly thinking, if the approximation was for 31/32, then why would 32 even be brought into the formula? I suppose in reality the approximation is because the formula assumes that in a given second, only one tic will be a multiple of 32 - this is not the case, there will be periodic occurrences of 2 such tics in one second. These seconds will of course have a slightly higher chance of spawning a monster. Or it could be because the stated percentage is rounded up from 2.563.... :P --Eris Falling (talk) 22:03, 1 September 2018 (CDT)

Lost Souls and Respawn[edit]

Currently the Technical section states:

"Beginning with v1.666 of Doom and Doom II, lost souls do not respawn because they are not considered monsters by the engine."

This statement appears to imply that Lost Souls do respawn in v1.2, where they have the MF_COUNTKILL flag. Yet despite the flag Lost Souls don't respawn in v1.2. Easy enough to check with WANTON.WAD: go through the only unlocked door (west, on the right), enter the cavern to the right. Only Lost Souls there. Kill them, wait and see. The Lost Soul article claims that the reason for not respawning Lost Souls is that they don't leave behind a corpse. Sounds plausible but can anyone point out the sections in the source code? --Tpoppins (talk) 20:02, 26 November 2023 (CST)

The respawn check is in P_MobjThinker which is only called when there is a corpse to do the thinking. The first thing checked there is MF_COUNTKILL. -- Anonymous 21:44, 5 August 2024 (CDT)