View Single Post
Re: The Bots SteamId?
Old
  (#16)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: The Bots SteamId? - 06-07-2004

Add a field in the bot_t structure

char steamid[32];

once the bot gets attributed a name in BotCreate(), fill up this bot's steamid as well

strcpy (pBot->steamid, "0123456789");

Make sure you give this bot the right steamid that is associated with its name

then for each pfnGetPlayerAuthId() call, do a

RETURN_META (MRES_SUPERCEDE, bots[INDEXENT (edict) - 1].steamid);

in my opinion that should work.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote