View Single Post
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 12-22-2006 , 07:21   Re: CSDM 2.1d beta
Reply With Quote #57

Quote:
buyzones, hostages, bombzones, rescue points etc
No, no, no... I was talking about healthkit, battery etc.

Quote:
This is not a big issue...
You know, my imho is that i hate those falling items As for your imho i think you should block dynamic disabling item mode or require/force a map restart. item_mode already takes too much memory.

Quote:
You mean the entity is above the ground instead exsctly on the ground?
Yes, of course. Bounding boxes set during item spawn blocks item to be falled on the ground. Very strange that this examples works properly in HLDM:
Code:
void CItem::Spawn( void )
{
	pev->movetype = MOVETYPE_TOSS;
	pev->solid = SOLID_TRIGGER;
	UTIL_SetOrigin( pev, pev->origin );
	UTIL_SetSize(pev, Vector(-16, -16, 0), Vector(16, 16, 16));
	SetTouch(ItemTouch);

	if (DROP_TO_FLOOR(ENT(pev)) == 0)
	{
		ALERT(at_error, "Item %s fell out of level at %f,%f,%f", STRING( pev->classname ), pev->origin.x, pev->origin.y, pev->origin.z);
		UTIL_Remove( this );
		return;
	}
}
Simon Logic is offline
Send a message via Skype™ to Simon Logic