Page MenuHomeFeedback Tracker

Totem Flag - Lower Bug. (Known and recognized by BI in 1.17)
New, NormalPublic

Description

This is a fix I tested that allowed the return to lower the flag. Just by removing this snippet of code. It most likely is not a proper fix. However it allows it to work so maybe it will allow towards a proper fix. Thanks

Below by the // is comment on what I removed.

modded class ActionLowerFlag: ActionContinuousBase
{
    void ActionLowerFlag()
    {
        m_CallbackClass = ActionManipulateFlagCB;
        m_CommandUID = DayZPlayerConstants.CMD_ACTIONFB_LOWER_FLAG;
        m_FullBody = true;
        m_StanceMask = DayZPlayerConstants.STANCEMASK_ERECT;
        m_Text = "#lower_flag";
    }
    
    override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
    {
        TerritoryFlag totem = TerritoryFlag.Cast( target.GetObject() );
        if (!totem)
        {
            return false;
        }
        
        float state = totem.GetAnimationPhase("flag_mast");
        if ( totem.FindAttachmentBySlotName("Material_FPole_Flag") && state < 1) //Removed >> && !player.GetFlagTendencyRaise() 
        {
            return true;
        }
        return false;
    }
};

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Gameplay
Steps To Reproduce

Not sure what to put here. The code snippet in the description allows you to again lower the flag.

Event Timeline

BlueFlameWolf updated the task description. (Show Details)
BlueFlameWolf edited Steps To Reproduce. (Show Details)

fixing this should be included in a hotfix, flags being unable to be lowered breaks many servers that use territory mods. People can spam flag poles and grief the entire map (you can't dismantle raised flags) if the hosts aren't able to make a fix themselves.

inkihh added a subscriber: inkihh.Apr 25 2022, 12:46 PM
tluth added a subscriber: tluth.Apr 25 2022, 1:55 PM