Re: The Bots SteamId?
Works fine except if the bot spawns with bot when it spawns the game reads it's id as BOT
-added Well i updated to the latest code and added my stuff in the only problme is the authid part is stubbed out, and even if i uncomment it the steamid is always BOT -added now i got it back to using my steamids bot when the bot is disconnected or spawns with the bot (only 2 cases found so far) it's making it's ID BOT -added i'm going to guess the disconnect part is because we delete the bots info before it calls the AuthID function? not sure about the bomb though. |
Re: The Bots SteamId?
Try to use EDIT function to re-edit Your latest post. In this case You will not be a multi-poster...:D
|
Re: The Bots SteamId?
OK i found it
Code:
const char *pfnGetPlayerAuthId (edict_t *e) so what i think to do is this Code:
const char *pfnGetPlayerAuthId (edict_t *e) -added right now Im testing it on my server with a full load of bots. I don't think there should be a problem since that function shouldn't be called on anyone but a bot. -added it fixes the bomb problem but the dsconnect is now getting UNKNOWN when it shows the console kick and just <> (nothing in the id) on the drop -added this is what the logs look like Code:
L 07/05/2004 - 22:57:45: Kick: "[AGR][43]E3<22><UNKNOWN><>" was kicked by "Console" |
Re: The Bots SteamId?
that'll make it stop every call even for players..
and FL_FAKECLIENT check does work.. I used it to change the authid of the bots to all sorts of things :D |
Re: The Bots SteamId?
Quote:
How do I fix the part that has the bots not getting the correct STEAM ID when they spawn with bomb or when they disconnect then? (bomb is the main one) -added Somehow when it calls to get the AuthID when they spawn with the bomb or they disconnect it is getting the ID as BOT still look, i'm including the logs above it showing they do ahve the ids i gave them Code:
L 07/06/2004 - 00:14:35: "[AGR][62]Jesus<3><STEAMID_0:0:0000008><>" entered the game |
Re: The Bots SteamId?
-update
well I'm stumped, although i know it's this check Code:
if (e->v.flags & FL_FAKECLIENT) |
Re: The Bots SteamId?
Try intercepting pfnGetPlayerWONId, maybe for the bomb person they use that..
|
Re: The Bots SteamId?
Quote:
Can't figure out why the bomb one is getting false as the condition -added and if it was the WONId then the id wouldn't show up as BOT it'd show as 0 since Wonid is expecting a number |
Re: The Bots SteamId?
try this
Code:
const char *pfnGetPlayerAuthId (edict_t *e) this shouldn't affect humans.. |
Re: The Bots SteamId?
replace
Code:
if (e->v.flags & FL_FAKECLIENT) Code:
if (bots[ENTINDEX (e) - 1].is_used) |
All times are GMT +2. The time now is 10:39. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.