Bot avatar in scoreboard
Just add this code after pfnCreateFakeClient() call (after bot entity created):
Code:
const unsigned int k_unSteamUserDesktopInstance = 1; |
Re: Bot avatar in scoreboard
Nice hacking. :)
Question: If I don't have Steam account for the Dedicated server(which is common) what avatar will appear? Perhaps some random if the RANDOM_LONG() hit valid Steam ID? |
Re: Bot avatar in scoreboard
Quote:
Quote:
About random steam ID: There is too small probability to get a valid steam ID from random value.... |
Re: Bot avatar in scoreboard
Ok but I can't get one thing... Is the valid steam ID requred to get avatar on a bot? If not what and from where the bot will get it's avatar?
|
Re: Bot avatar in scoreboard
Bot has no his own steam ID and of course avatar, his uses ID or some real client and takes his avatar. Clients sees avatar, which is loaded for Steam ID of a bot or client, if bot "*sid" value undefined or invalid, his avatar is empty, in other case bot will get avatar of a real client from his Steam ID.
|
Re: Bot avatar in scoreboard
Got it now. :)
|
Re: Bot avatar in scoreboard
SORRY!!!
I forgot that the class CSteamID has no alignment! So you need to write before declaration "union SteamID_t": Code:
#pragma pack (push, 1) Code:
#pragma pack (pop) Code:
#pragma pack (push, 1) // Structures must be packed (byte-aligned) |
Re: Bot avatars in scoreboard
Wow nice found, should be add into podbot.
|
All times are GMT +2. The time now is 23:06. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.