With [url]https://wiki.garrysmod.com/page/Category:AvatarImage[/url] yes I know but....
How do I actually do the drawing part? In a PlayerSay hook?
ENT:Draw does not work, if client wont run it and else ill get an error.
This is my current code to spawn the entity:
[code]
local coin = ents.Create( "prop_physics" )
coin:SetModel( "models/thiefdroid/coin.mdl" )
coin:SetPos( ply:GetEyeTrace().HitPos + Vector(0,0,0) )
coin:SetName("coin")
coin:SetOwner( ply )
coin:SetAngles(Angle(0,0,table.Random(spawnside)))
coin:SetSolid( SOLID_NONE )
coin:Spawn()
[/code]
Basically im trying to make the players steam avatars appear on opposite sides of the coin.
[QUOTE=Thiefdroid;52117971]With [url]https://wiki.garrysmod.com/page/Category:AvatarImage[/url] yes I know but....
How do I actually do the drawing part? In a PlayerSay hook?
ENT:Draw does not work, if client wont run it and else ill get an error.
This is my current code to spawn the entity:
[code]
local coin = ents.Create( "prop_physics" )
coin:SetModel( "models/thiefdroid/coin.mdl" )
coin:SetPos( ply:GetEyeTrace().HitPos + Vector(0,0,0) )
coin:SetName("coin")
coin:SetOwner( ply )
coin:SetAngles(Angle(0,0,table.Random(spawnside)))
coin:SetSolid( SOLID_NONE )
coin:Spawn()
[/code]
Basically im trying to make the players steam avatars appear on opposite sides of the coin.[/QUOTE]
I would try to do something fancy with 3d2d, but I'm not sure how you would make it circular at first thought.
Making them circular is easy, but I dont know how I would get them there in the first place.
The player avatar is a panel item meaning you can not call it like you think...
At the moment I can't link it but google gmod 3d2d library there is a github repo by matt that will help you how to get derma to 3d2d then you can call normal panels to be 3d2d!
[editline]17th April 2017[/editline]
I lied I can pull the link haha [url]https://github.com/HandsomeMatt/3d2d-vgui[/url]
It is the first thing that comes up when you google what I told you to google lol
Look into that maybe that can give you some ideas
You could also directly fetch their avatar off of the Steam servers and make a material from it.
[QUOTE=TFA;52118856]You could also directly fetch their avatar off of the Steam servers and make a material from it.[/QUOTE]
cough cough
[url]https://github.com/bull29/b_draw-lib/blob/master/lua/autorun/client/b-draw_lib.lua#L48[/url]
Sorry, you need to Log In to post a reply to this thread.