Skip to content

Commit

Permalink
Merge pull request #988 from zerfgog/patch-1
Browse files Browse the repository at this point in the history
TTT: Change unknown weapon name from "MASSIVE PHASER ARRAY" to "Unkno…
  • Loading branch information
svdm committed Jun 10, 2015
2 parents 349d56e + 741ac63 commit 0d0c6a1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions garrysmod/gamemodes/terrortown/gamemode/cl_hudpickup.lua
Expand Up @@ -15,10 +15,9 @@ local pickupclr = {
}

function GM:HUDWeaponPickedUp( wep )
local client = LocalPlayer()
if (not IsValid(client)) or (not client:Alive()) then return end
if (not IsValid(wep)) or (not LocalPlayer():Alive()) then return end

local name = LANG.TryTranslation(wep.GetPrintName and wep:GetPrintName() or "MASSIVE PHASER ARRAY")
local name = LANG.TryTranslation(wep.GetPrintName and wep:GetPrintName() or wep:GetClass() or "Unknown Weapon Name")

local pickup = {}
pickup.time = CurTime()
Expand Down Expand Up @@ -49,7 +48,7 @@ end

function GM:HUDItemPickedUp( itemname )

if not LocalPlayer():Alive() then return end
if (not LocalPlayer():Alive()) then return end

local pickup = {}
pickup.time = CurTime()
Expand Down Expand Up @@ -79,7 +78,7 @@ function GM:HUDItemPickedUp( itemname )
end

function GM:HUDAmmoPickedUp( itemname, amount )
if (not IsValid(LocalPlayer())) or (not LocalPlayer():Alive()) then return end
if (not LocalPlayer():Alive()) then return end

local itemname_trans = LANG.TryTranslation(string.lower("ammo_" .. itemname))

Expand Down Expand Up @@ -126,7 +125,7 @@ end


function GM:HUDDrawPickupHistory()
if (self.PickupHistory == nil) then return end
if (not self.PickupHistory) then return end

local x, y = ScrW() - self.PickupHistoryWide - 20, self.PickupHistoryTop
local tall = 0
Expand Down

0 comments on commit 0d0c6a1

Please sign in to comment.