r285 Item placement on 3D floors
Posted: Sat Jan 03, 2009 17:52
I suspect this is where the problem comes from:
So, for example, an item that was previously set at 136 units above the ground to land on a 3D floor with floor height 128 will now spawn 136 units above the 3D floor and potentially mess up the item positioning.
Even an item with Z height 0 will now be moved up to spawn on the 3D floor.
Look at the test example attached. In older versions, the two shotguns spawned above the 3D platforms land on the walkway. In r285, one lands on top of the shawn2 platform above the walkway. The shotgun nearest the player should spawn under the walkway, but it gets moved up on to it.
For a real example, my Burghead mod now has everything that is supposed to be in the house sitting on the roof.
Any existing WADs that placed things on or under 3D floors are now broken. Previously, an item had to be given a Z height relative to the play sector floor that placed it at, or above, where the 3D floor height would be once it was drawn. Now, however, the item gets spawned at the set Z height above the 3D floor.fixed: 3D floors need to be spawned before the things. This was the reason why checking
for the floor height did not work and which required a hack in P_ZMovement to prevent
actors from falling through 3D floors. Now that this is working I could also fix some
other things, most importantly floor and ceiling huggers which until now ignored 3D floors.
So, for example, an item that was previously set at 136 units above the ground to land on a 3D floor with floor height 128 will now spawn 136 units above the 3D floor and potentially mess up the item positioning.
Even an item with Z height 0 will now be moved up to spawn on the 3D floor.
Look at the test example attached. In older versions, the two shotguns spawned above the 3D platforms land on the walkway. In r285, one lands on top of the shawn2 platform above the walkway. The shotgun nearest the player should spawn under the walkway, but it gets moved up on to it.
For a real example, my Burghead mod now has everything that is supposed to be in the house sitting on the roof.
