Jump to content

Nurse Spiders are missing sounds when healing


loganpea
  • Pending

They have unused sounds in the game files. This is what they're supposed to sound like when they heal:

It could be implemented in the heal state in sgspider.lua like this:
    State{
        name = "heal",
        tags = {"attack", "busy"},

        onenter = function(inst, target)
            inst.Physics:Stop()
            inst.AnimState:PlayAnimation("heal")
	  --inst.SoundEmitter:PlaySound("webber1/creatures/spider_cannonfodder/heal") --This line is missing
        end,

        timeline=
        {
            TimeEvent(30*FRAMES, function(inst)

                -- DANY
                --inst.SoundEmitter:PlaySound("SPIDER SMOKE SOUND") --replace this with "webber1/creatures/spider_cannonfodder/heal_fartcloud"

                inst:DoHeal()
            end ),
        },

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

 


Steps to Reproduce

Run this command in game to test, just in case
local v = c_spawn("spider_healer") v:DoTaskInTime(0, function() v:StopBrain() end) v:DoPeriodicTask(2, function() v.sg:GoToState("heal") end)

  • Haha 1



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...