Jump to content

OnMissOther event does not trigger with hippopotamoose's leap attack


_zwb
  • DLC VERSION - IMPORTANT!: Hamlet Pending

It just doesn't, but other AOE like deerclops' ice spike does.

 

You can fix it with this code:

    State{

        name = "leap_attack_pst",
        tags = {"busy"},
        
        onenter = function(inst, target)
            if not inst:GetIsOnWater(Vector3(inst.Transform:GetWorldPosition()) ) then
                inst.components.groundpounder:GroundPound()
                inst.SoundEmitter:PlaySound("dontstarve_DLC001/creatures/bearger/groundpound", nil, 0.5)

                -- first ground pound has a delay of 0s, the rest is "inst.components.groundpounder.ringDelay"
                inst:DoTaskInTime(math.max(inst.components.groundpounder.numRings - 1, 0) * inst.components.groundpounder.ringDelay, function()
                    if not inst.components.groundpounder or not next(inst.components.groundpounder.ignoreEnts) then
                        inst:PushEvent("onmissother")
                    end
                end)
            end

            SpawnWaves(inst, 12, 360, 4)

            inst.components.locomotor:Stop()
            inst.AnimState:PlayAnimation("jump_atk_pst")
        end,

        events=
        {
            EventHandler("animover", function(inst) inst.sg:GoToState("taunt") end),
        },
    },

 


Steps to Reproduce

The above.




User Feedback


There are no comments to display.



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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...