mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-09 14:15:22 +01:00
Fix entering pods and stuff while buckled
You already can't drag and drop buckled people onto pods and stuff but they can still enter them by themselves. This commit fixes that
This commit is contained in:
@@ -144,7 +144,7 @@
|
||||
set category = null
|
||||
set name = "Enter DNA Scanner"
|
||||
|
||||
if(usr.incapacitated()) //are you cuffed, dying, lying, stunned or other
|
||||
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
|
||||
return
|
||||
if(!ishuman(usr)) //Make sure they're a mob that has dna
|
||||
to_chat(usr, "<span class='notice'>Try as you might, you can not climb up into the [src].</span>")
|
||||
|
||||
@@ -526,7 +526,7 @@
|
||||
if(panel_open)
|
||||
to_chat(usr, "<span class='boldnotice'>Close the maintenance panel first.</span>")
|
||||
return
|
||||
if(usr.incapacitated()) //are you cuffed, dying, lying, stunned or other
|
||||
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
|
||||
return
|
||||
if(usr.has_buckled_mobs()) //mob attached to us
|
||||
to_chat(usr, "<span class='warning'>[usr] will not fit into [src] because [usr.p_they()] [usr.p_have()] a slime latched onto [usr.p_their()] head.</span>")
|
||||
|
||||
@@ -516,7 +516,7 @@
|
||||
if(stat & (NOPOWER|BROKEN))
|
||||
return
|
||||
|
||||
if(usr.incapacitated()) //are you cuffed, dying, lying, stunned or other
|
||||
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
|
||||
return
|
||||
|
||||
put_mob(usr)
|
||||
|
||||
@@ -671,6 +671,9 @@
|
||||
to_chat(usr, "<span class='warning'>[usr] will not fit into [src] because [usr.p_they()] [usr.p_have()] a slime latched onto [usr.p_their()] head.</span>")
|
||||
return
|
||||
|
||||
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
|
||||
return
|
||||
|
||||
visible_message("[usr] starts climbing into [src].")
|
||||
|
||||
if(do_after(usr, 20, target = usr))
|
||||
|
||||
@@ -772,6 +772,8 @@
|
||||
|
||||
if(usr.stat != 0)
|
||||
return
|
||||
if(usr.incapacitated() || usr.buckled) //are you cuffed, dying, lying, stunned or other
|
||||
return
|
||||
if(!state_open)
|
||||
to_chat(usr, "<span class='warning'>The unit's doors are shut.</span>")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user