View Single Post
Re: I don't like this!
Old
  (#25)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: I don't like this! - 30-12-2004

i tried some more, and for a moment i thought i could get it working (compiling). But nope, it does not want to work:

Code:
	  CUserCmd cmd; // create command
	  bf_read *buf = NULL;	 // the buffer
	  bf_write *write_buf = NULL; // write buf?
	  cmd.Reset();
	  // Write it into buf
	  WriteUsercmd( write_buf, &cmd, &cmd ); // 
	  
	  // put cmd into buf somehow
	  
	  gameclients->ProcessUsercmds(clients[iClients].pEdict, buf, 1, 1, -1, false, false);
the WriteUserCmd cannot be compiled with the server plugin. So, in other words, i cannot seem to fill the buffer; unless i write some own magical function to compress it so HL2 understands it. This seems to be a tough one though.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote