Seagulls can poop on the jeep (sdk)

  • Thread starter Thread starter jsc230
  • Start date Start date
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
 
haha! nice find. realistic seagull poops is what i really look for in a game
 
yes this happened to me when i was playing Singleplayer :D
 

Attachments

  • d2_coast_0100132.jpg
    d2_coast_0100132.jpg
    92.8 KB · Views: 317
  • d2_coast_0100142.jpg
    d2_coast_0100142.jpg
    94.8 KB · Views: 276
only metal gear solid 2 has done it better, but this is pretty nice
 

Similar threads

Back
Top