mirror of
https://github.com/TeamUlysses/utime.git
synced 2025-03-04 03:22:58 -05:00
[CHANGE] Player names are no longer shown to non-admins in Murder gamemode.
This commit is contained in:
parent
7ad6118a93
commit
4d824a8c4b
@ -128,6 +128,21 @@ function PANEL:ApplySchemeSettings()
|
||||
self.session:SetTextColor( color_black )
|
||||
end
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- Name: ShouldRevealPlayer
|
||||
-----------------------------------------------------------
|
||||
function PANEL:ShouldRevealPlayer( ply )
|
||||
if ply:GetNWBool("disguised", false) then -- TTT disguiser
|
||||
return false
|
||||
end
|
||||
|
||||
if engine.ActiveGamemode() == "murder" and not LocalPlayer():IsAdmin() then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-----------------------------------------------------------
|
||||
-- Name: Think
|
||||
-----------------------------------------------------------
|
||||
@ -140,10 +155,11 @@ function PANEL:Think()
|
||||
end
|
||||
|
||||
if not IsValid( LocalPlayer() ) then return end
|
||||
|
||||
|
||||
local tr = util.GetPlayerTrace( LocalPlayer(), LocalPlayer():GetAimVector() )
|
||||
local trace = util.TraceLine( tr )
|
||||
if trace.Entity and trace.Entity:IsValid() and trace.Entity:IsPlayer() and not trace.Entity:GetNWBool("disguised", false) then -- Last conditional is TTT disguiser
|
||||
local ply = trace.Entity
|
||||
if ply and ply:IsValid() and ply:IsPlayer() and self:ShouldRevealPlayer(ply) then
|
||||
self.TargetSize = self.Large
|
||||
self.playerInfo:SetPlayer( trace.Entity )
|
||||
locktime = CurTime()
|
||||
|
@ -36,10 +36,11 @@ All client config is done in game under "utilities". To disable the welcome mess
|
||||
|
||||
v1.44 - *(00/00/00)*
|
||||
* [FIX] UTime cpanel attempting to build before tool menu is populated.
|
||||
* [CHANGE] Player names are no longer shown to non-admins in Murder gamemode.
|
||||
|
||||
v1.43 - *(05/06/15)*
|
||||
* [ADD] Player names are no longer shown when disguiser is enabled in TTT.
|
||||
* [FIX] Changes brought on by Garry-breakage (Thanks, GGG-KILLER).
|
||||
* [CHANGE] Player names are no longer shown when disguiser is enabled in TTT.
|
||||
|
||||
v1.42 - *(01/27/13)*
|
||||
* [ADD] utime_welcome cvar to disable welcome message.
|
||||
|
@ -1 +0,0 @@
|
||||
1450315264
|
1
utime.build
Normal file
1
utime.build
Normal file
@ -0,0 +1 @@
|
||||
1453642113
|
Loading…
Reference in New Issue
Block a user