View Single Post
Re: Lets get this stuff rolling!
Old
  (#7)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: Lets get this stuff rolling! - 13-12-2004

See the phrase "to the specified client" in that comment.

The server sends a string to the client. The client executes that command. So if the command is something that happens locally on the client, it will happen on the client (like starting/stoppping the CD). If the command is something that isnt' executed on the client (like a "kill" command), it will be sent back to the server and received in the server's ClientCommand() function (where the client's edict is passed in as a parameter).

Since fake clients don't have a client, you can't send commands to them and thus can't have them come back to the server's ClientCommand() function. That was why I had to create a FakeClientCommand() for the HPB bot.

botman
  
Reply With Quote