Thanks
I will try this tomorrow after work.

Paul

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Draco
> Sent: Mon 10 October 2005 22:57
> To: [email protected]
> Subject: Re: [hlcoders] SDK With bots question
>
> --
> [ 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
>



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to