Skip to content

Commit

Permalink
Small and tiny mobs cannot bump open doors (when AI controlled) (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMelbert authored and Absolucy committed Nov 29, 2024
1 parent f69c693 commit f1120dd
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
5 changes: 5 additions & 0 deletions code/game/machinery/doors/door.dm
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@
if(!density || (obj_flags & EMAGGED))
return

if(isliving(user) && isnull(user.mind))
var/mob/living/living_user = user
if(living_user.mob_size < MOB_SIZE_HUMAN)
return

if(elevator_mode && elevator_status == LIFT_PLATFORM_UNLOCKED)
open()
else if(requiresID() && allowed(user))
Expand Down
8 changes: 5 additions & 3 deletions code/game/machinery/doors/windowdoor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,15 @@
return

add_fingerprint(user)
if(!requiresID())
user = null
if(isliving(user) && isnull(user.mind))
var/mob/living/living_user = user
if(living_user.mob_size < MOB_SIZE_HUMAN)
return

if(elevator_mode && elevator_status == LIFT_PLATFORM_UNLOCKED)
open()

else if(allowed(user))
else if(requiresID() && allowed(user))
open_and_close()

else
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/basic/alien/queen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
/obj/item/food/meat/slab/xeno = 10,
/obj/item/stack/sheet/animalhide/xeno = 2,
)
mob_size = MOB_SIZE_LARGE
mob_size = MOB_SIZE_HUGE
gold_core_spawnable = NO_SPAWN
2 changes: 1 addition & 1 deletion code/modules/mob/living/basic/farm_animals/bee/_bee.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

guaranteed_butcher_results = list(/obj/item/stack/sheet/animalhide/bee = 1 )

mob_size = MOB_SIZE_LARGE
mob_size = MOB_SIZE_SMALL
pixel_x = -16
base_pixel_x = -16

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
lighting_cutoff_red = 5
lighting_cutoff_green = 20
lighting_cutoff_blue = 25
mob_size = MOB_SIZE_LARGE
mob_size = MOB_SIZE_HUGE

speak_emote = list("chitters")
attack_sound = 'sound/weapons/bladeslice.ogg'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
melee_damage_upper = 35
melee_damage_lower = 35
melee_attack_cooldown = CLICK_CD_MELEE
mob_size = MOB_SIZE_LARGE
mob_size = MOB_SIZE_HUGE
armour_penetration = 30
pixel_x = -16
base_pixel_x = -16
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/alien/adult/queen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
maptext_height = 64
maptext_width = 64
bubble_icon = "alienroyal"
mob_size = MOB_SIZE_LARGE
mob_size = MOB_SIZE_HUGE
layer = LARGE_MOB_LAYER //above most mobs, but below speechbubbles
plane = GAME_PLANE_UPPER_FOV_HIDDEN
pressure_resistance = 200 //Because big, stompy xenos should not be blown around like paper.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
lighting_cutoff_red = 5
lighting_cutoff_green = 20
lighting_cutoff_blue = 25
mob_size = MOB_SIZE_LARGE
mob_size = MOB_SIZE_HUGE

0 comments on commit f1120dd

Please sign in to comment.