View Single Post
Detecting new round (bug?)..
Old
  (#1)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Detecting new round (bug?).. - 29-12-2003

I was wondering if anything changed to round detection since the realbot metamod plugin does not detect rounds as it should. THe code remained the same, perhaps i missed something here:

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)
	{
        UTIL_ClientPrintAll( HUD_PRINTNOTIFY, "New round\n");
		// New round started.
		Game.SetNewRound(true);
        Game.SetRoundTime(gpGlobals->time);		
	}

   RETURN_META_VALUE (MRES_IGNORED, NULL);
}
note, i added the util_clientprintall to see at console if anything happens.

I saw as well in CS 1.6 as in CS 1.5 the round-detection failed. In my version without metamod this worked okay. Perhaps the info_map_paramaters are initialized by metamod itself or whatever?

Gtg now, i hope someone has a quick answer


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