Is it possible to edit the Voice panels that are drawn when the player speaks? If not, is it possible to get their location and player name?
I am looking for a way to to differentiate from All talk voice and team-voice. If I put it in chat, it can be easily spammed
Rubat
(Rubat)
September 24, 2013, 6:59am
#2
Yes, there is. Code for them is stored either in sandbox or base gamemode, you can search for them there and override them in your gamemode or something.
[editline]24th September 2013[/editline]
local PANEL = {}
local PlayerVoicePanels = {}
function PANEL:Init()
self.LabelName = vgui.Create( "DLabel", self )
self.LabelName:SetFont( "GModNotify" )
self.LabelName:Dock( FILL )
self.LabelName:DockMargin( 8, 0, 0, 0 )
self.LabelName:SetTextColor( Color( 255, 255, 255, 255 ) )
self.Avatar = vgui.Create( "AvatarImage", self )
self.Avatar:Dock( LEFT );
self.Avatar:SetSize( 32, 32 )
self.Color = color_transparent
self:SetSize( 250, 32 + 8 )
self:DockPadding( 4, 4, 4, 4 )
self:DockMargin( 2, 2, 2, 2 )
This file has been truncated. show original