If you have 2 deathmatch spawns, there will be no telefragging done unless all the spots are blocked (I believe). If however you lift the deathmatch spawn spot off the ground to a height greater than the player (lets say DMSpotHeight > FloorZ + 64 map units), the check says its clear because it's based off of the Z height of 64, but the spawn happens on the ground, thus effectively telefragging the player, but the function to check if someone is in the way actually returns false despite the telefrag (which is not supposed to happen).
Therefore, the check should be made on the ground, or deathmatch spawn spots should not be subject to gravity. This was discovered when playing Zandronum online with CTF where an author made the map spawns 64 units off the ground for whatever reason, and ridiculous amounts of telefragging occurs in populated games.
In the map I attached, both spawns are in mid air. If you edit the map to have them at a height of 0, you will never telefrag the other player since the detection mechanism for something blocking the spawn will return true. I assume this is why there was Teleport / Teleport (Z height) / Teleport (Z height + gravity) was introduced.
Map: http://files.drdteam.org/index.php/file ... agtest.zip
Command line parameters: -deathmatch +sv_cheats true
Cheats are so that you don't have to spend forever killing them with a pistol or run out of ammo.
[2.6.1] Bug: DM telefrag spawn check fails when in the air
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
-
- Posts: 36
- Joined: Thu Jan 19, 2012 11:43 am
Re: [2.6.1] Bug: DM telefrag spawn check fails when in the a
Note that ZDoom has a MAPINFO option to make player starts spawn at their actual heights rather than the floor.