Goliath86 / CorePatch

ArmA 2/ArmA2: OA CorePatch
9 stars 3 forks source link

Binocular + Launcher server CTD #3

Open icomrade opened 7 years ago

icomrade commented 7 years ago

Animation AwopPercMstpSoptWbinDnon_AwopPknlMstpSoptWbinDnon_lnr appears to cause server CTD when repeatedly issued by client - repro instructions can be provided if requested.

This issue appears to be caused by a blank animation file i.e. file = ""; - as inherited or defined, which may suggest other CfgMoves are affected by this bug as well.

RPT when using broken animation contains repeated: No collision shape found in noname then CTD on server side.

There is no appropriate AwopPercMstpSoptWbinDnon_AwopPknlMstpSoptWbinDnon_lnr.rtm or AwopPercMstpSoptWbinDnon_AwopPpneMstpSoptWbinDnon_lnr.rtm

Tested fix:

class CfgMovesBasic;
class CfgMovesMaleSdr: CfgMovesBasic
{
    class States
    {
        class TransAnimBase_noIK;
        class AwopPercMstpSoptWbinDnon_AwopPknlMstpSoptWbinDnon_lnr: TransAnimBase_noIK
        {
            rightHandIKCurve[] = {};
            leftHandIKCurve[] = {};
            ConnectTo[] = {"AwopPknlMstpSoptWbinDnon_lnr",0.02};
            InterpolateTo[] = {"AwopPknlMstpSoptWbinDnon_AwopPercMstpSoptWbinDnon_lnr",0.02};
            actions = "BinocKneelLnrActions";
            rightHandIKEnd = 0;
            rightHandIKBeg = 0;
            leftHandIKEnd = 0;
            leftHandIKBeg = 0;
            canPullTrigger = 0;
            file = "\ca\Anims\Characters\data\Anim\Sdr\wop\erc\stp\opt\bin\AwopPercMstpSoptWbinDnon_AwopPknlMstpSoptWbinDnon_una"; //either this or the below file can be used, both switch from binoculars/launcher to primary
            //file = "\ca\Anims\Characters\data\Anim\Sdr\wop\erc\stp\opt\bin\AwopPercMstpSoptWbinDnon_AwopPknlMstpSoptWbinDnon_rifle";
        };
    };
};