Ticket #3179: ghostbusters.patch

File ghostbusters.patch, 1.6 KB (added by Itms, 5 years ago)
  • binaries/data/mods/public/simulation/components/Visibility.js

     
    5656 */
    5757Visibility.prototype.GetVisibility = function(player, isVisible, isExplored)
    5858{
     59    // Placement previews and corpses:
     60    // For the owner only, mock the "RetainInFog" behavior
    5961    if (this.preview)
    6062    {
    61         // For the owner only, mock the "RetainInFog" behaviour
    62 
    6363        let cmpOwnership = Engine.QueryInterface(this.entity, IID_Ownership);
    6464        if (cmpOwnership && cmpOwnership.GetOwner() == player && isExplored)
    6565            return isVisible ? VIS_VISIBLE : VIS_FOGGED;
  • source/ps/TemplateLoader.cpp

     
    419419        if (out.GetChild("Entity").GetChild("VisualActor").IsOk())
    420420            CParamNode::LoadXMLString(out, "<Entity><VisualActor><SilhouetteDisplay>false</SilhouetteDisplay></VisualActor></Entity>");
    421421
    422         // Corpses should remain visible in fog-of-war
    423         CParamNode::LoadXMLString(out, "<Entity><Visibility><RetainInFog>true</RetainInFog><AlwaysVisible>false</AlwaysVisible><Preview>false</Preview></Visibility></Entity>");
     422        // Corpses should remain visible in fog-of-war (for the owner only)
     423        CParamNode::LoadXMLString(out, "<Entity><Visibility><RetainInFog>false</RetainInFog><AlwaysVisible>false</AlwaysVisible><Preview>true</Preview></Visibility></Entity>");
    424424    }
    425425}
    426426