Skip to content

Commit

Permalink
update when detes searched
Browse files Browse the repository at this point in the history
  • Loading branch information
TimGoll committed Oct 10, 2023
1 parent fd69a0c commit 2f81fdb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/terrortown/lang/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1987,3 +1987,4 @@ L.target_credits_on_search = "Search to receive unspent credits"
L.corpse_hint_no_inspect_details = "Only public policing roles can find information on this body."
L.corpse_hint_inspect_only_details = "Only public policing roles can confirm the body."
L.corpse_hint_spec = "Press [{usekey}] to view corpse UI"
L.corpse_hint_public_policing_searched = "Press [{usekey}] to view search results from public policing role"
7 changes: 6 additions & 1 deletion lua/ttt2/libraries/targetid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,12 @@ function targetid.HUDDrawTargetIDRagdolls(tData)
if client:IsSpec() then
tData:SetSubtitle(ParT("corpse_hint_spec", key_params))
elseif bodysearch.GetInspectConfirmMode() == 2 and not roleDataClient.isPolicingRole and not roleDataClient.isPublicRole then
tData:SetSubtitle(ParT("corpse_hint_no_inspect", key_params))
-- a detective added search results, this should change the targetID
if ent.bodySearchResult and ent.bodySearchResult.isPublicPolicingSearch then
tData:SetSubtitle(ParT("corpse_hint_public_policing_searched", key_params))
else
tData:SetSubtitle(ParT("corpse_hint_no_inspect", key_params))
end
tData:AddDescriptionLine(TryT("corpse_hint_no_inspect_details"))
elseif bodysearch.GetInspectConfirmMode() == 1 and not roleDataClient.isPolicingRole and not roleDataClient.isPublicRole then
tData:SetSubtitle(ParT("corpse_hint_inspect_only", key_params))
Expand Down

0 comments on commit 2f81fdb

Please sign in to comment.