In deerclopseyeball_sentryward.lua, line 322,
local function OnActiveDirty(inst) if inst._active:value() then local p = LIGHT_PARAMS.ON if TheWorld.ismastersim then inst.Light:Enable(true) end inst.components.lighttweener:StartTween(inst.Light, p.radius, p.intensity, p.falloff, p.colour, p.time) inst.AnimState:SetSymbolBloom("crystal_hand") inst.AnimState:SetSymbolBloom("base_crystal") if PostProcessor == nil or PostProcessor:IsBloomEnabled() then inst.AnimState:SetSymbolMultColour("crystal_hand", unpack(BLOOMED_SYMBOLS_MULTCOLOUR)) inst.AnimState:SetSymbolMultColour("base_crystal", unpack(BLOOMED_SYMBOLS_MULTCOLOUR)) end if not TheNet:IsDedicated() and inst.eyeball == nil then inst.eyeball = CLIENT_CreateEyeball() inst.eyeball.entity:SetParent(inst.entity) inst.highlightchildren = { inst.eyeball } end inst.MiniMapEntity:SetCanUseCache(false) inst.MiniMapEntity:SetDrawOverFogOfWar(true) else local p = LIGHT_PARAMS.OFF inst.components.lighttweener:StartTween(inst.Light, p.radius, p.intensity, p.falloff, p.colour, p.time, TurnLightOffCallback) inst.AnimState:ClearSymbolBloom("crystal_hand") inst.AnimState:ClearSymbolBloom("base_crystal") inst.AnimState:SetSymbolMultColour("crystal_hand", 1, 1, 1, 1) inst.AnimState:SetSymbolMultColour("base_crystal", 1, 1, 1, 1) if inst.eyeball ~= nil then inst.eyeball:Remove() inst.eyeball = nil inst.highlightchildren = nil end inst.MiniMapEntity:SetCanUseCache(true) inst.MiniMapEntity:SetDrawOverFogOfWar(false) end end
`SetCanUseCache(false)` seems not working for player A if the icon is within sight of player A when called that function. I am not sure whether this is a bug of function `SetCanUseCache` itself or this is a bug caused by wrong usage.
1. Player A takes off the eyeball from the deerclopseyeball_sentryward and goes away.
2. player A can still see a "deerclopseyeball_sentryward_disabled.png" icon on the map, which means that the icon is still cached even though the `inst.MiniMapEntity:SetCanUseCache(False)` is called.
3. If the deerclopseyeball_sentryward is within the sight of player B, B can also see the cached icon. If not, the cached icon will be cleared in B's map.
-
1
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now