Merge pull request #4518 from Citadel-Station-13/upstream-merge-33765
[MIRROR] Make airlocks use VARSET_CALLBACK
This commit is contained in:
@@ -251,16 +251,13 @@
|
|||||||
note = null
|
note = null
|
||||||
update_icon()
|
update_icon()
|
||||||
|
|
||||||
/obj/machinery/door/airlock/proc/unzap() //for addtimer
|
|
||||||
justzap = FALSE
|
|
||||||
|
|
||||||
/obj/machinery/door/airlock/bumpopen(mob/living/user) //Airlocks now zap you when you 'bump' them open when they're electrified. --NeoFite
|
/obj/machinery/door/airlock/bumpopen(mob/living/user) //Airlocks now zap you when you 'bump' them open when they're electrified. --NeoFite
|
||||||
if(!issilicon(usr))
|
if(!issilicon(usr))
|
||||||
if(isElectrified())
|
if(isElectrified())
|
||||||
if(!justzap)
|
if(!justzap)
|
||||||
if(shock(user, 100))
|
if(shock(user, 100))
|
||||||
justzap = TRUE
|
justzap = TRUE
|
||||||
addtimer(CALLBACK(src, .proc/unzap), 10)
|
addtimer(VARSET_CALLBACK(src, justzap, FALSE) , 10)
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user