--
[ Picked text/plain from multipart/alternative ]
void Bot_HandleRespawn( CSDKBot *pBot, CUserCmd &cmd )
{
// Wait for Reinforcement wave
if ( !pBot->IsAlive() )
{
// Try hitting my buttons occasionally
if ( random->RandomInt( 0, 100 ) > 80 )
{
// Respawn the bot
if ( random->RandomInt( 0, 1 ) == 0 )
{
cmd.buttons |= IN_JUMP;
}
else
{
cmd.buttons = 0;
}
}
}
}-- Draco -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

