<i>This post was originally made by <b>danij</b> on the dengDevs blog. It was posted under the categories: Engine, Games.</i>
Currently there is only one degenmobj_t per sector which is used for playing all sector based sounds and the z height of these sector sound origins is always 0. The result is that when using 3D sound - sounds emitted from a moving plane will always play at the height of the sound origin as set during level setup.
I've now added two more degenmobjs to each sector (floorsoundorg & ceilingsoundorg). I've now got to update the Net Delta so that the sounds are played from the correct origin client-side.
I can see two options here:
* Implement two new delta types: DT_SECTOR_FLOOR_SOUND & DT_SECTOR_CEILING_SOUND (these would confuse old clients).
* Use the existing DT_SECTOR_SOUND delta type and OR-in additional flags to denote which origin to use (would be backward compatible).