Merge pull request #14955 from Runa-Dacino/fuckingaround

Adds functionality to buildmode's AI mode to adjust a.i wander behavior
This commit is contained in:
Heroman3003
2023-06-03 19:09:49 +00:00
committed by CHOMPStation2
parent 515d0e49ba
commit ffa746b9d2
+15 -1
View File
@@ -158,7 +158,9 @@
Left Mouse Button on AI mob = Select/Deselect mob<br>\
Left Mouse Button + alt on AI mob = Toggle hostility on mob<br>\
Left Mouse Button + shift on AI mob = Toggle AI (also resets)<br>\
Left Mouse Button + ctrl on AI mob = Copy mob faction<br>\
Left Mouse Button + ctrl on AI mob = Copy mob faction<br>\
Middle Mouse Button + shift on any = Set selected mob(s) to wander<br>\
Middle Mouse Button + shift on any = Set selected mob(s) to NOT wander<br>\
Right Mouse Button + ctrl on any mob = Paste mob faction copied with Left Mouse Button + shift<br>\
Right Mouse Button on enemy mob = Command selected mobs to attack mob<br>\
Right Mouse Button on allied mob = Command selected mobs to follow mob<br>\
@@ -546,6 +548,18 @@ CHOMP Remove end */
for(var/mob/living/unit in holder.selected_mobs)
holder.deselect_AI_mob(user.client, unit)
if(pa.Find("middle"))
if(pa.Find("shift"))
to_chat(user, SPAN_NOTICE("All selected mobs set to wander"))
for(var/mob/living/unit in holder.selected_mobs)
var/datum/ai_holder/AI = unit.ai_holder
AI.wander = TRUE
if(pa.Find("ctrl"))
to_chat(user, SPAN_NOTICE("Setting mobs set to NOT wander"))
for(var/mob/living/unit in holder.selected_mobs)
var/datum/ai_holder/AI = unit.ai_holder
AI.wander = FALSE
if(pa.Find("right"))
// Paste faction