T-Rizzle12 / Custom-Gmod-Bot

Originally a personal gmod bot that I decided to make public.
Apache License 2.0
6 stars 2 forks source link

Set a profile picture for the bot #58

Open strubium opened 3 months ago

strubium commented 3 months ago

20240730223336_1

As you can see, the bot uses the default player profile picture. Being able to config this would be awesome! Loving the addon!

T-Rizzle12 commented 3 months ago

I checked how the game sets profile pictures internally and it uses an AvatarImage object internally. I will experiment around with this, hopefully, it will be as simple as overriding the image used.......

T-Rizzle12 commented 3 months ago

Ok, slight issue, the binding to set the fallback image doesn't exist. I checked the Source 2013 SDK and there is a fallback defined in the code, but I would need to ask the Gmod Devs to bind it......so I can access it in Lua.

T-Rizzle12 commented 3 days ago

Ok, I was messing around with the AvatarImage object I found a way of partially doing this. I can set the profile picture to any player on the server. Although this is cool, it would be better to have a proper way of overriding the image......