Code: Select all
Steps to reproduce:
1. Start ZDoom with the example WAD loaded.
2. "sv_itemrespawn 1" in the console.
3. Pick up the chaingun.
4. The chaingun will respawn into the floor.
unknownna wrote:* The chaingun still respawns into the wrong position. But this also happens offline and in GZDoom 323. If you reconnect, it corrects itself. Most servers have sv_weaponstay set to 1 anyway.
Torr Samaho wrote:This sounds like there is an underlying ZDoom problem that needs to be fixed (or at least understood) first. I'm not even sure if the behavior of items that are exactly on a linedef is defined, i.e. in which of the two adjacent sectors is the item supposed to be?
unknownna wrote:Offline:
* When the z-position is 16, the thing uses the higher floor value as its base.
* When the z-position is 0, the thing uses the higher floor value as its base.
Online:
* When the z-position is 16, the thing uses the lower floor value as its base.
* When the z-position is 0, the thing uses the higher floor value as its base.
Torr Samaho wrote:First let me say that as far as I can say the only difference between the online and offline behavior is where the client displays the weapon. The actual position on the server should be the same online and offline. Actually, the client even spawns the weapon at the correct position, but it thinks that it is in the lower sector and thus on the client the weapon falls down to the lower sector's height.
Furthermore, the offline behavior for the initial spawn and respawning is different even in ZDoom and I'm pretty sure that this ZDoom problem also causes the client side display problem. So it's not really a good idea to find a solution for the client side display problem without resolving the ZDoom issue first.
Torr Samaho wrote:Can somebody check if this also happens in the latest ZDoom version and if so, make a bug report over there?
unknownna wrote:* The chaingun doesn't respawn into the floor in ZDaemon 1.08.08b.
* The chaingun doesn't respawn into the floor in Odamex 0.5.3.
* The chaingun respawns into the floor in GZDoom 323.
* The chaingun respawns into the floor in ZDoom 2.5.0.
* The chaingun respawns into the floor in ZDoom SVN build 3263.