Jump to content

Nurse Spawning Mechanics


Recommended Posts

So there were a few words dropped on this in another thread, but does anyone know the actual, full mechanic about how and when Spider Queens spawn nurses? Cause from testing I have deducted that I have no idea. I had a few thoughts about making a nurse farm, but to see if that's even possible, nevertheless worth it, I would need the mechanics

Link to comment
Share on other sites

local function MakeBaby(inst)
    local angle = (inst.Transform:GetRotation() + 180) * DEGREES
    
    local prefab = "spider"
    if inst.components.combat:HasTarget() and math.random() < 0.45 then
        prefab = math.random() > 0.5 and "spider_warrior" or "spider_healer"
    end

    local spider = inst.components.lootdropper:SpawnLootPrefab(prefab)
    if spider ~= nil then
        local rad = spider:GetPhysicsRadius(0) + inst:GetPhysicsRadius(0) + .25
        local x, y, z = inst.Transform:GetWorldPosition()
        spider.Transform:SetPosition(x + rad * math.cos(angle), 0, z - rad * math.sin(angle))
        spider.sg:GoToState("taunt")
        inst.components.leader:AddFollower(spider)
        if inst.components.combat.target ~= nil then
            spider.components.combat:SetTarget(inst.components.combat.target)
        end
    end
end

No Combat Target:

  • 100% Regular Spider

Combat Target:

  • 55% Regular Spider
  • 22.5% Spider Warrior
  • 22.5% Nurse Spider
Link to comment
Share on other sites

So she merely has to be in combat, and does not need to have low health?

Tried fighting one with a ham bat. Fight itself really hasn't gotten more difficult. Same process, when she spawns a spider, you lure it a bit away. When she spawns a warrior or nurse, you lure that one a bit further away. So dealing with a nurse is effectively the same as dealing with a Warrior, but if she's alone it's simpler as you can stunlock the nurses. The hardest part of the fight is still the beginning, if she has a full house of 8 spiders at the start. With a ham bat, clearing those is easy, you just gotta hope and get lucky with her not spawning any special ones on you while you're dealing with em

Link to comment
Share on other sites

1 hour ago, Viktor234 said:

local function MakeBaby(inst)
    local angle = (inst.Transform:GetRotation() + 180) * DEGREES
    
    local prefab = "spider"
    if inst.components.combat:HasTarget() and math.random() < 0.45 then
        prefab = math.random() > 0.5 and "spider_warrior" or "spider_healer"
    end

    local spider = inst.components.lootdropper:SpawnLootPrefab(prefab)
    if spider ~= nil then
        local rad = spider:GetPhysicsRadius(0) + inst:GetPhysicsRadius(0) + .25
        local x, y, z = inst.Transform:GetWorldPosition()
        spider.Transform:SetPosition(x + rad * math.cos(angle), 0, z - rad * math.sin(angle))
        spider.sg:GoToState("taunt")
        inst.components.leader:AddFollower(spider)
        if inst.components.combat.target ~= nil then
            spider.components.combat:SetTarget(inst.components.combat.target)
        end
    end
end

 

I only really know Griftlands code, but I can read enough of this to know

this function is just named "MakeBaby". That is funny to me.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...