View Single Post
NEW STEAM: Failure on detecting round, how do YOU do it?
Old
  (#1)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default NEW STEAM: Failure on detecting round, how do YOU do it? - 13-02-2004

Here is my sollution, probably many use it as i believe i got this from the forums when i just started RB

Code:
edict_t* pfnFindEntityByString(edict_t *pEdictStartSearchAfter, const char *pszField, const char *pszValue)
{
 // Counter-Strike - New Round Started
 if (strcmp(pszValue,"info_map_parameters") == 0) {
		
  // New round started.
  Game.SetNewRound(true);
		Game.SetRoundTime(gpGlobals->time);  
 }
   RETURN_META_VALUE (MRES_IGNORED, NULL);
}
I think the 'new optimized shit code from cs dll' does not do this anymore at round start.

Perhaps an engine message gets sent ALL THE TIME (also on dedicated server) so we can use that as a sollution?


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