Skip to content

Commit

Permalink
exp: add menu item to toggle in-game entity trace
Browse files Browse the repository at this point in the history
fix #285
  • Loading branch information
alexey-lysiuk committed Dec 24, 2024
1 parent db62070 commit 8c4232e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Misc/qs_pak/scripts/expmode_edicts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ local window <const> = expmode.window
local ghost <const> = player.ghost
local setpos <const> = player.setpos
local traceentity <const> = player.traceentity
local IngameEntityTrace <const> = player.ingameentitytrace

local localize <const> = text.localize
local toascii <const> = text.toascii
Expand Down Expand Up @@ -625,10 +626,18 @@ addaction(function ()
expmode.edicts.nearbyentity()
end

imSeparator()

if imMenuItem('Trace Entity\u{85}') then
expmode.edicts.traceentity()
end

local ingametrace = IngameEntityTrace()

if imMenuItem('In-game Entity Trace', nil, ingametrace) then
IngameEntityTrace(not ingametrace)
end

imEndMenu()
end
end)

0 comments on commit 8c4232e

Please sign in to comment.