Skip to content

Commit

Permalink
refactor: comment out debug text
Browse files Browse the repository at this point in the history
  • Loading branch information
igromanru committed Oct 21, 2024
1 parent 51fb72c commit 9472061
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions scripts/CommandsManager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1469,19 +1469,20 @@ CreateCommand({ "deleteobject", "removeobject" }, "Delete Object Trace", "Delete
RegisterProcessConsoleExecPreHook(function(Context, Command, Parameters, OutputDevice, Executor)
local context = Context:get()
-- local executor = Executor:get()
if DebugMode then
LogDebug("[ProcessConsoleExec]:")
LogDebug("Context: " .. context:GetFullName())
LogDebug("Context.Class: " .. context:GetClass():GetFullName())
LogDebug("Command: " .. Command)
LogDebug("Parameters: " .. #Parameters)
for i = 1, #Parameters, 1 do
LogDebug(" " .. i .. ": " .. Parameters[i])
end
-- if executor:IsValid() then
-- LogDebug("Executor: " .. executor:GetClass():GetFullName())
-- end
end

-- if DebugMode then
-- LogDebug("[ProcessConsoleExec]:")
-- LogDebug("Context: " .. context:GetFullName())
-- LogDebug("Context.Class: " .. context:GetClass():GetFullName())
-- LogDebug("Command: " .. Command)
-- LogDebug("Parameters: " .. #Parameters)
-- for i = 1, #Parameters, 1 do
-- LogDebug(" " .. i .. ": " .. Parameters[i])
-- end
-- -- if executor:IsValid() then
-- -- LogDebug("Executor: " .. executor:GetClass():GetFullName())
-- -- end
-- end

local IsDedicatedServer = AFUtils.IsDedicatedServer()
if (IsDedicatedServer and not context:IsA(AFUtils.GetClassAbiotic_Survival_GameMode_C())) or (not IsDedicatedServer and not context:IsA(AFUtils.GetClassAbioticGameViewportClient())) then
Expand Down

0 comments on commit 9472061

Please sign in to comment.