dlls/weapons.cpp
//=========================================================
// Sets up movetype, size, solidtype for a new weapon.
//=========================================================
Sets up movetype, size, solidtype for a new weapon.
Sets up movetype size solidtype for a new weapon .
void CBasePlayerItem::FallInit()
{
	pev->movetype = MOVETYPE_BOUNCE;
	pev->friction = 0.45f;
	pev->solid = SOLID_BBOX;
	pev->takedamage = DAMAGE_YES;
	UTIL_SetOrigin(pev, pev->origin);
	UTIL_SetSize(pev, Vector(0, 0, 0), Vector(0, 0, 0)); 
	SetTouch(&CBasePlayerItem::DefaultTouch);
	SetThink(&CBasePlayerItem::FallThink);
	pev->nextthink = gpGlobals->time + 0.1;
}
void CBasePlayerItem :: FallInit ( ) { pev -> movetype = MOVETYPE_BOUNCE ; pev -> friction = 0.45f ; pev -> solid = SOLID_BBOX ; pev -> takedamage = DAMAGE_YES ; UTIL_SetOrigin ( pev , pev -> origin ) ; UTIL_SetSize ( pev , Vector ( 0 , 0 , 0 ) , Vector ( 0 , 0 , 0 ) ) ; SetTouch ( & CBasePlayerItem :: DefaultTouch ) ; SetThink ( & CBasePlayerItem :: FallThink ) ; pev -> nextthink = gpGlobals -> time + 0.1 ; }
Sets up movetype, size, solidtype for a new weapon.
Sets up movetype size solidtype for a new weapon .
//pointsize until it lands on the ground.