J
jsc230
Guest
So in the file vehicle_jeep.cpp there are lines that refer to seagulls pooping on the car.
void CPropJeep::AddSeagullPoop( const Vector &vecOrigin )
{
// Drop some poop decals!
int iDecals = RandomInt( 1,2 );
for ( int i = 0; i < iDecals; i++ )
{
Vector vecPoop = vecOrigin;
// get circular gaussian spread
float x, y, z;
do
{
x = random->RandomFloat(-0.5,0.5) + random->RandomFloat(-0.5,0.5);
y = random->RandomFloat(-0.5,0.5) + random->RandomFloat(-0.5,0.5);
z = x*x+y*y;
} while (z > 1);
vecPoop += Vector( x * 90, y * 90, 128 );
trace_t tr;
UTIL_TraceLine( vecPoop, vecPoop - Vector(0,0,512), MASK_SHOT, m_hSeagull, COLLISION_GROUP_NONE, &tr );
UTIL_DecalTrace( &tr, "BirdPoop" );
}
m_bHasPoop = true;
}
Nice attention to detail valve!
Joe
void CPropJeep::AddSeagullPoop( const Vector &vecOrigin )
{
// Drop some poop decals!
int iDecals = RandomInt( 1,2 );
for ( int i = 0; i < iDecals; i++ )
{
Vector vecPoop = vecOrigin;
// get circular gaussian spread
float x, y, z;
do
{
x = random->RandomFloat(-0.5,0.5) + random->RandomFloat(-0.5,0.5);
y = random->RandomFloat(-0.5,0.5) + random->RandomFloat(-0.5,0.5);
z = x*x+y*y;
} while (z > 1);
vecPoop += Vector( x * 90, y * 90, 128 );
trace_t tr;
UTIL_TraceLine( vecPoop, vecPoop - Vector(0,0,512), MASK_SHOT, m_hSeagull, COLLISION_GROUP_NONE, &tr );
UTIL_DecalTrace( &tr, "BirdPoop" );
}
m_bHasPoop = true;
}
Nice attention to detail valve!
Joe