Skip to content

Commit

Permalink
No metadata capturing with survivor bots disabled
Browse files Browse the repository at this point in the history
Issue #57 is related to this
  • Loading branch information
Dadido3 committed Jun 19, 2020
1 parent 8b105ba commit 69ee5ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/d3bot/sv_zs_bot_handler/node_metadata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ end)
local nextNodeMetadataReduce = CurTime()
local nextNodeMetadataIncrease = CurTime()
hook.Add("Think", D3bot.BotHooksId.."NodeMetadataThink", function()
-- If survivor bots are disabled, ignore capturing team metadata
if not D3bot.SurvivorsEnabled then return end

-- Reduce values over time
if nextNodeMetadataReduce < CurTime() then
nextNodeMetadataReduce = CurTime() + 5
Expand Down

0 comments on commit 69ee5ef

Please sign in to comment.