Page MenuHomeFeedback Tracker

Cannot call super.PerformReaction inside modded SCR_AIDangerReaction_WeaponFired
Assigned, NormalPublic

Description

See code for repro steps. This was introduced with the recent experimental update.

Details

Severity
Block
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
General
Steps To Reproduce
[BaseContainerProps()]
modded class SCR_AIDangerReaction_WeaponFired
{
    bool Suppressors_ShouldIgnore(notnull SCR_AIUtilityComponent utility, AIDangerEvent dangerEvent)
    {
        return true; // for testing
    };
    
    override bool PerformReaction(notnull SCR_AIUtilityComponent utility, notnull SCR_AIThreatSystem threatSystem, AIDangerEvent dangerEvent)
    {
        if (Suppressors_ShouldIgnore(utility, dangerEvent))
            return false; 
        
        bool res = super.PerformReaction(utility, threatSystem, dangerEvent);
        return res;
    };
};
Additional Information

Event Timeline

Geez changed the task status from New to Assigned.May 3 2023, 10:52 AM

An update from @MarioE - the compiler is trying to use an incorrect overload. Two overloads return void, while the one I intend on calling does not.