mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[MIRROR] Fixes AI lag by re-adding idle mode to all AI that was lost with the simple mob to basic mob conversion. (#27296)
Fixes AI lag by re-adding idle mode to all AI that was lost with the simple mob to basic mob conversion. Co-authored-by: Iamgoofball <iamgoofball@gmail.com> Co-authored-by: Waterpig <wtryoutube@seznam.cz>
This commit is contained in:
co-authored by
Iamgoofball
Waterpig
parent
89677f37ba
commit
2429a2821a
@@ -21,6 +21,7 @@
|
||||
var/fake_dt = SSai_controllers.wait * 0.1
|
||||
// Set AI - AIs by default are off in z-levels with no client, we have to force it on.
|
||||
biter.ai_controller.set_ai_status(AI_STATUS_ON)
|
||||
biter.ai_controller.can_idle = FALSE
|
||||
// Select behavior - this will queue finding the cable
|
||||
biter.ai_controller.SelectBehaviors(fake_dt)
|
||||
// Process behavior - this will execute the "locate the cable" behavior
|
||||
|
||||
Reference in New Issue
Block a user