![]() |
Re: The Bots SteamId?
Quote:
|
Re: The Bots SteamId?
you shouldn't because 0 or "BOT" means it's a bot and if it's not 0 or "BOT" the game might not know it's a bot and think it's an actual player.. thats what causes the crash.. because something might send a network message to the bot that isn't connected through a network connection..
|
Re: The Bots SteamId?
I don't think that's the reason.
@Krush: HOW did you try that ? |
Re: The Bots SteamId?
Quote:
So I just removed them entirely and made it be BOT. The reason I"m trying to give them fake STEAM IDs is I want killing of them to count towards psychostats. Let me explain what I think could be done: void ServerActivate (edict_t *pEdictList, int edictCount, int clientMax) in there where it's reading the BotNames.txt we could have the line directly under the name be it's Steam ID and shove that into an array. Just like botnames. My only issue is if there are multiple bots on the server when it tries to get the AuthID for a kill or something how do we retreive the ID from that array. Just assume the array is char* szBotIDs[100][32] like the botnames. I've tried doing something with hardcoding in steamIDs for the anmes I have in my BotNames and it worked fine for setting them up at the start but after that everytime it wanted a botid it got the last one it sent in. So I made a function CheckNameID where it just did a compare to find the name of the bot and then set the value we give to the output in the AuthID function to the right value. Only prob with that is getting it to update enough for it to always be right. But like I said I ran out of ideas and just made it BOT for now until someone has an idea. |
Re: The Bots SteamId?
I should add the STEAM ids I made up worked fine in fooling PsychoStats to thinking they are real players, but due to the AuthID not getting sent out right each time none of the players meet ranking criteria except in one case where the bot managed to kill it's own steam id like 30 times. (prob when it was getting stuck on the 1 id.
|
Re: The Bots SteamId?
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. |
Re: The Bots SteamId?
Quote:
|
Re: The Bots SteamId?
What's the (edict) in there cause I'm not sure and the compiler don't know either.
|
Re: The Bots SteamId?
I thought maybe you meant it was the edict_t passed into the function but INDEXENT can't convert it to a int.
|
Re: The Bots SteamId?
Got it all coded in testing now.
|
All times are GMT +2. The time now is 00:10. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.