Skip to content

Commit

Permalink
[MIRROR] Basic bots (medibots) [MDB IGNORE] (#25384)
Browse files Browse the repository at this point in the history
* Basic bots (medibots)

* UpdatePaths, modular

---------

Co-authored-by: Ben10Omintrix <[email protected]>
Co-authored-by: Giz <[email protected]>
  • Loading branch information
3 people authored and FFMirrorBot committed Dec 3, 2023
1 parent 3102af3 commit f321154
Show file tree
Hide file tree
Showing 63 changed files with 1,917 additions and 810 deletions.
2 changes: 1 addition & 1 deletion _maps/RandomRuins/SpaceRuins/intactemptyship.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
/turf/open/floor/mineral/titanium/purple,
/area/ruin/space/has_grav/powered/authorship)
"y" = (
/mob/living/simple_animal/bot/medbot/derelict,
/mob/living/basic/bot/medbot/derelict,
/turf/open/floor/mineral/titanium/purple,
/area/ruin/space/has_grav/powered/authorship)
"z" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/RandomRuins/SpaceRuins/skyrat/interdynefob.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@
/turf/open/floor/plating,
/area/ruin/space/has_grav/skyrat/interdynefob/cargo/hangar)
"fd" = (
/mob/living/simple_animal/bot/medbot/stationary{
/mob/living/basic/bot/medbot/stationary{
faction = list("Syndicate");
maints_access_required = list("syndicate");
name = "Insurgent Care";
Expand Down
2 changes: 1 addition & 1 deletion _maps/RandomRuins/SpaceRuins/spacehotel.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@
/obj/effect/turf_decal/siding/yellow{
dir = 8
},
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "Accidents Happen"
},
/obj/structure/cable,
Expand Down
2 changes: 1 addition & 1 deletion _maps/RandomRuins/SpaceRuins/spacehotel_skyrat.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -7918,7 +7918,7 @@
/obj/effect/turf_decal/siding/dark_blue{
dir = 8
},
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "Accidents Happen"
},
/turf/open/floor/iron/dark,
Expand Down
2 changes: 1 addition & 1 deletion _maps/map_files/Birdshot/birdshot.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -3077,7 +3077,7 @@
/area/station/hallway/secondary/construction)
"bmB" = (
/obj/effect/turf_decal/tile/blue/fourcorners,
/mob/living/simple_animal/bot/medbot/autopatrol,
/mob/living/basic/bot/medbot/autopatrol,
/turf/open/floor/iron/white,
/area/station/medical/medbay/lobby)
"bmM" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/map_files/MetaStation/MetaStation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -10936,7 +10936,7 @@
/obj/effect/turf_decal/tile/blue/anticorner/contrasted{
dir = 4
},
/mob/living/simple_animal/bot/medbot/autopatrol,
/mob/living/basic/bot/medbot/autopatrol,
/turf/open/floor/iron/white/corner{
dir = 8
},
Expand Down
6 changes: 3 additions & 3 deletions _maps/map_files/NSVBlueshift/Blueshift.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -41969,7 +41969,7 @@
/obj/effect/landmark/start/medical_doctor,
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer4,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "Doctor Heals-The-Idiot"
},
/obj/effect/turf_decal/tile/blue/fourcorners,
Expand Down Expand Up @@ -60154,7 +60154,7 @@
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer4,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/obj/structure/disposalpipe/segment,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "Healy Stabby"
},
/turf/open/floor/iron,
Expand Down Expand Up @@ -86154,7 +86154,7 @@
/obj/structure/cable,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer4,
/mob/living/simple_animal/bot/medbot/autopatrol,
/mob/living/basic/bot/medbot/autopatrol,
/turf/open/floor/iron,
/area/station/hallway/primary/upper)
"quF" = (
Expand Down
4 changes: 2 additions & 2 deletions _maps/map_files/NorthStar/north_star.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -20706,7 +20706,7 @@
codes_txt = "patrol;next_patrol=2-0";
location = "2-19"
},
/mob/living/simple_animal/bot/medbot/autopatrol,
/mob/living/basic/bot/medbot/autopatrol,
/turf/open/floor/iron/dark,
/area/station/hallway/floor2/aft)
"fwV" = (
Expand Down Expand Up @@ -66239,7 +66239,7 @@
codes_txt = "patrol;next_patrol=4-1";
location = "4-0"
},
/mob/living/simple_animal/bot/medbot/autopatrol,
/mob/living/basic/bot/medbot/autopatrol,
/turf/open/floor/iron/dark/side{
dir = 9
},
Expand Down
2 changes: 1 addition & 1 deletion _maps/map_files/VoidRaptor/VoidRaptor.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -16409,7 +16409,7 @@
"eJc" = (
/obj/machinery/power/apc/auto_name/directional/south,
/obj/structure/cable,
/mob/living/simple_animal/bot/medbot,
/mob/living/basic/bot/medbot,
/obj/structure/railing{
dir = 8
},
Expand Down
2 changes: 1 addition & 1 deletion _maps/map_files/generic/CentCom_skyrat_z2.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -7934,7 +7934,7 @@
/area/centcom/holding/cafe)
"kpg" = (
/obj/structure/closet/cardboard,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
faction = list("Syndicate");
maints_access_required = list(150);
name = "Kahn";
Expand Down
2 changes: 1 addition & 1 deletion _maps/map_files/tramstation/tramstation.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer4,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/obj/effect/turf_decal/trimline/white/warning,
/mob/living/simple_animal/bot/medbot/autopatrol{
/mob/living/basic/bot/medbot/autopatrol{
desc = "A Trauma Response Activation Medibot. It seems overwhelmed.";
name = "T.R.A.M Unit"
},
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_casino.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@
/turf/open/floor/carpet/green,
/area/shuttle/escape)
"PP" = (
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_cere.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@
/turf/open/floor/iron,
/area/shuttle/escape)
"ch" = (
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "Speedy* Recovery"
},
/obj/effect/turf_decal/tile/blue/anticorner/contrasted{
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_delta.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@
},
/obj/item/lazarus_injector,
/obj/effect/turf_decal/bot,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_donut.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@
},
/obj/item/lazarus_injector,
/obj/effect/turf_decal/bot,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_kilo.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
},
/obj/item/lazarus_injector,
/obj/effect/turf_decal/bot,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_lance.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@
/turf/open/floor/iron,
/area/shuttle/escape)
"ZZ" = (
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_luxury.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@
/turf/open/floor/plating,
/area/shuttle/escape)
"SE" = (
/mob/living/simple_animal/bot/medbot,
/mob/living/basic/bot/medbot,
/obj/structure/extinguisher_cabinet/directional/south,
/turf/open/floor/mineral/titanium/blue,
/area/shuttle/escape/luxury)
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_medisim.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
pixel_y = 3
},
/obj/item/lazarus_injector,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_meta.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@
},
/obj/item/lazarus_injector,
/obj/effect/turf_decal/bot,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_nature.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@
dir = 9
},
/obj/structure/window/reinforced/spawner/directional/west,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_northstar.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
/turf/open/floor/iron/dark,
/area/shuttle/escape)
"oA" = (
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_omega.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@
/obj/item/lazarus_injector,
/obj/effect/decal/cleanable/dirt,
/obj/effect/turf_decal/bot,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_raven.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@
pixel_y = 3
},
/obj/item/lazarus_injector,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "\improper emergency medibot";
pixel_x = -3;
pixel_y = 2
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_shadow.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
/turf/open/floor/catwalk_floor,
/area/shuttle/escape/engine)
"oK" = (
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
name = "Doctor Patches"
},
/turf/open/floor/iron/dark/smooth_large,
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/emergency_tranquility.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@
/obj/effect/turf_decal/siding/thinplating_new{
dir = 4
},
/mob/living/simple_animal/bot/medbot,
/mob/living/basic/bot/medbot,
/turf/open/floor/iron/herringbone,
/area/shuttle/escape)
"NC" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/infiltrator_advanced.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@
dir = 6
},
/obj/structure/cable,
/mob/living/simple_animal/bot/medbot/nukie,
/mob/living/basic/bot/medbot/nukie,
/turf/open/floor/mineral/plastitanium,
/area/shuttle/syndicate/medical)
"bA" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/infiltrator_basic.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@
/obj/effect/turf_decal/tile/blue{
dir = 1
},
/mob/living/simple_animal/bot/medbot/nukie,
/mob/living/basic/bot/medbot/nukie,
/turf/open/floor/iron/corner{
dir = 1
},
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/pirate_ex_interdyne.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@
/obj/machinery/atmospherics/components/unary/vent_pump/on{
dir = 4
},
/mob/living/simple_animal/bot/medbot/nukie{
/mob/living/basic/bot/medbot/nukie{
name = "Dr. Pax";
desc = "A twitchy medibot. It can't seem to hold still. Slightly concerning."
},
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/skyrat/goldeneye_cruiser.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@
/area/shuttle/syndicate/cruiser/brig)
"Ud" = (
/obj/structure/closet/crate/medical,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
faction = list("Syndicate");
maints_access_required = list(150);
name = "James T. Kirk";
Expand Down
2 changes: 1 addition & 1 deletion _maps/templates/battlecruiser_starfury.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -4780,7 +4780,7 @@
/area/shuttle/sbc_starfury)
"Gz" = (
/obj/structure/cable,
/mob/living/simple_animal/bot/medbot{
/mob/living/basic/bot/medbot{
desc = "A medical bot of syndicate origins. Probably plots about how to stab you full of toxins in its free time.";
faction = list("neutral","silicon","turret","Syndicate");
name = "Syndicate Medibot";
Expand Down
6 changes: 3 additions & 3 deletions _maps/templates/lazy_templates/ninja_den.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@
/turf/open/floor/iron/showroomfloor,
/area/centcom/central_command_areas/holding)
"uw" = (
/mob/living/simple_animal/bot/medbot/stationary{
/mob/living/basic/bot/medbot/stationary{
desc = "A little medical robot. You can make out the word \"sincerity\" on its chassis.";
name = "Hijikata";
radio_key = null
Expand Down Expand Up @@ -1476,7 +1476,7 @@
/turf/open/floor/iron/cafeteria,
/area/centcom/central_command_areas/holding)
"II" = (
/mob/living/simple_animal/bot/medbot/stationary{
/mob/living/basic/bot/medbot/stationary{
desc = "When engaged in combat, the vanquishing of thine enemy can be the warrior's only concern.";
name = "Momo";
radio_key = null
Expand Down Expand Up @@ -2052,7 +2052,7 @@
/turf/open/floor/carpet/black,
/area/centcom/central_command_areas/holding)
"Wm" = (
/mob/living/simple_animal/bot/medbot/stationary{
/mob/living/basic/bot/medbot/stationary{
desc = "When engaged in combat, the vanquishing of thine enemy can be the warrior's only concern.";
name = "Hattori";
radio_key = null
Expand Down
2 changes: 1 addition & 1 deletion _maps/templates/lazy_templates/wizard_den.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
/obj/effect/turf_decal/stripes{
dir = 1
},
/mob/living/simple_animal/bot/medbot/mysterious{
/mob/living/basic/bot/medbot/mysterious{
desc = "If you don't accidentally blow yourself up from time to time you're not really a wizard anyway.";
faction = list("neutral","silicon","creature");
name = "Nobody's Perfect"
Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/ai/ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

///For JPS pathing, the maximum length of a path we'll try to generate. Should be modularized depending on what we're doing later on
#define AI_MAX_PATH_LENGTH 30 // 30 is possibly overkill since by default we lose interest after 14 tiles of distance, but this gives wiggle room for weaving around obstacles
#define AI_BOT_PATH_LENGTH 150

///Cooldown on planning if planning failed last time

Expand Down
35 changes: 35 additions & 0 deletions code/__DEFINES/ai/bot_keys.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// bot keys
///The first beacon we find
#define BB_BEACON_TARGET "beacon_target"
///The last beacon we found, we will use its codes to find the next beacon
#define BB_PREVIOUS_BEACON_TARGET "previous_beacon_target"
///Location of whoever summoned us
#define BB_BOT_SUMMON_TARGET "bot_summon_target"
///salute messages to beepsky
#define BB_SALUTE_MESSAGES "salute_messages"
///the beepsky we will salute
#define BB_SALUTE_TARGET "salute_target"
///our announcement ability
#define BB_ANNOUNCE_ABILITY "announce_ability"
///list of our radio channels
#define BB_RADIO_CHANNEL "radio_channel"
///list of unreachable things we will temporarily ignore
#define BB_TEMPORARY_IGNORE_LIST "temporary_ignore_list"

// medbot keys
///the patient we must heal
#define BB_PATIENT_TARGET "patient_target"
///list holding our wait dialogue
#define BB_WAIT_SPEECH "wait_speech"
///what we will say to our patient after we heal them
#define BB_AFTERHEAL_SPEECH "afterheal_speech"
///things we will say when we are bored
#define BB_IDLE_SPEECH "idle_speech"
///speech unlocked after being emagged
#define BB_EMAGGED_SPEECH "emagged_speech"
///speech when we are tipped
#define BB_WORRIED_ANNOUNCEMENTS "worried_announcements"
///speech when our patient is near death
#define BB_NEAR_DEATH_SPEECH "near_death_speech"
///in crit patient we must alert medbay about
#define BB_PATIENT_IN_CRIT "patient_in_crit"
2 changes: 2 additions & 0 deletions code/__DEFINES/dcs/signals/signals_mob/signals_mob_ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
/// Signal sent when a blackboard key is cleared
#define COMSIG_AI_BLACKBOARD_KEY_CLEARED(blackboard_key) "ai_blackboard_key_clear_[blackboard_key]"

///Signal sent when a bot is reset
#define COMSIG_BOT_RESET "bot_reset"
Loading

0 comments on commit f321154

Please sign in to comment.