Jump to content

Stop Deerclops from Despawning


Recommended Posts

Alright, I've noticed a clear problem with Deerclops. The fight can go pretty well, but if we can't finish the fight, Deerclops will despawn the second it goes offscreen and out of sight of any player, returning the next day with full health. Is it too much to ask that it acts like other mobs and not despawn like that? It's a pain to teach my friend to kill it when he loses hope after it heals.

Alright, I've noticed a clear problem with Deerclops. The fight can go pretty well, but if we can't finish the fight, Deerclops will despawn the second it goes offscreen and out of sight of any player, returning the next day with full health. Is it too much to ask that it acts like other mobs and not despawn like that? It's a pain to teach my friend to kill it when he loses hope after it heals.

 

You clearly aren't doing a good enough job, then. In my world (Since I either play alone or I'm the only one brave enough to take on the behemoth) I've figured out you can win without losing ANY hp just by hitting him twice, running, then running back, hitting him twice, running, etc.

1. Klei wants to let it leave after a while. The deerclops is not intending to follow you until one of you are dead.

 

SteamLibrary\steamapps\common\Don't Starve Together Beta\data\scripts\brains\deerclopsbrain.lua

function DeerclopsBrain:OnStart()    local root =        PriorityNode(        {            AttackWall(self.inst),            ChaseAndAttack(self.inst, CHASE_TIME, CHASE_DIST),            DoAction(self.inst, function() return BaseDestroy(self.inst) end, "DestroyBase", true),            WhileNode(function() return self.inst:WantsToLeave() end, "Trying To Leave",                Wander(self.inst, GetHomePos, 30)),            Wander(self.inst, GetWanderPos, 30, {minwwwalktime = 10}),        },1)        self.bt = BT(self.inst, root)end

I am not sure, how the deerclops will be removed from the world, but I guess the following:

- the wandering code will be executed

- when he reaches his destination (around his spawning) and waits there around 1 second (not sure about that), he will put to sleep

- this will trigger an event, which make him to be removed from the world. see below code

 

SteamLibrary\steamapps\common\Don't Starve Together Beta\data\scripts\prefabs\deerclops.lua

local function OnEntitySleep(inst)    if inst:WantsToLeave() then        inst.structuresDestroyed = 0 -- reset this for the stored version        TheWorld:PushEvent("storehassler", inst)        inst:Remove()    endend

When he gets removed, the following method will be triggered. There it will be decided, that the giant reappears in around 3.75 days.

 

SteamLibrary\steamapps\common\Don't Starve Together Beta\data\scripts\components\deerclopsspawner.lua

local function TryStartAttacks(killed)    if AllowedToAttack() then        if _activehassler == nil and _attacksperwinter > 0 and _timetoattack == nil then            -- Shorten the time used for winter to account for the time deerclops spends stomping around            -- Then add one to _attacksperwinter to shift the attacks so the last attack isn't right when the season changes to spring            local attackdelay = (TheWorld.state.winterlength - 1) * TUNING.TOTAL_DAY_TIME / (_attacksperwinter + 1)            if killed == true then                attackdelay = attackdelay * HASSLER_KILLED_DELAY_MULT            end

2. Thing is, the SAME giant, as long it didn't got killed, will appear with the same amount of health. This I also experienced by myself. Therefore, you don't need to worry losing him. On the first winter he will appear twice.

You clearly aren't doing a good enough job, then. In my world (Since I either play alone or I'm the only one brave enough to take on the behemoth) I've figured out you can win without losing ANY hp just by hitting him twice, running, then running back, hitting him twice, running, etc.

I already know about kiting. The problem is sanity in the long run. I main Webber, you see, and sanity is an issue at times, particularly when I play with a noob that wastes nice green caps. I can kite a Deerclops, but can I do that AND tank a terrorbeak?

I already know about kiting. The problem is sanity in the long run. I main Webber, you see, and sanity is an issue at times, particularly when I play with a noob that wastes nice green caps. I can kite a Deerclops, but can I do that AND tank a terrorbeak?

 

Yes :p

 

they're also easy to kite, just practice.

I already know about kiting. The problem is sanity in the long run. I main Webber, you see, and sanity is an issue at times, particularly when I play with a noob that wastes nice green caps. I can kite a Deerclops, but can I do that AND tank a terrorbeak?

uhhh.........that is one of the greater challenges of the game...figure it out buddy.

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