Back to the Vavoom Forum Archives


Some progs questions

Sat, 13 Mar 2010 00:37:42


I've got a question for you, I've found some piece of code inside EntityEx.Physics that I have some doubts about, inside the Physics method:
		// Floating item bobbing motion (special1 is height)
			if (Sector->bHasExtrafloors)
				//	Make sure FloorZ is from bottom region.
				Origin.z = ONFLOORZ;
These make weapon (and other) pickups in Korax Arena to be spawned inside the extra floors and make the player unable to pick them up. Is there a reason for this code to be here? I don't quite understand the need of keeping it there.
Mon, 15 Mar 2010 17:58:30

Janis Legzdinsh

Without it floating bob items will try to bob using current FloorZ, and if it's above a 3D floor it's wrong because thing's z value is specified against bottom floor.

Back to the Vavoom Forum Archives