mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 18:51:53 +00:00
* Fixes reviver runtime * Confusion status effect * Dizzy status effect * Drowsiness status effect * decaying -> transient * Drunkenness status effect * why use timer when SSfastprocessing work good * stuns (mostly) * weaken and immobalise * stun/weaken times * update_flags redundancies. * Slowed() * Silence + fixes transient decay * Jittery * sleeping * Paralyze -> weaken * Cult sluring * paralyse * Stammer * slurring + projectile cleanups * losebreath * Hallucination * forgor this * eyeblurry * eye blind * Druggy * affected didn't like my spacing * review pass * second review pass * some cleanups * documentation and signal framework * confusion fix * Fixes spec_stun * rejuv fix * removes a TODO * conflicted myself * fixes * self review * review * removes TODOs * adminfreeze * TM fixes * hallucination fix + others * tones down alchol and runtime fixes * confusion overlay suggestion * more fixes * runtime fix * losebreath fix * clamp => directional bounded sum * steel review * oops Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> * reduces the dizziness cycle rate * borg hotfix * sanctified decursening Co-authored-by: mochi <1496804+dearmochi@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
78 lines
1.7 KiB
Plaintext
78 lines
1.7 KiB
Plaintext
// Shuttle on-movement //
|
|
/atom/movable/proc/onShuttleMove(turf/oldT, turf/T1, rotation, mob/caller)
|
|
var/turf/newT = get_turf(src)
|
|
if(newT.z != oldT.z)
|
|
onTransitZ(oldT.z, newT.z)
|
|
if(light)
|
|
update_light()
|
|
if(rotation)
|
|
shuttleRotate(rotation)
|
|
forceMove(T1)
|
|
return 1
|
|
|
|
/obj/effect/landmark/shuttle_import/onShuttleMove()
|
|
// Used for marking where to preview/load shuttles
|
|
return 0
|
|
|
|
/obj/docking_port/onShuttleMove()
|
|
// Stationary ports shouldn't move, mobile ones move themselves
|
|
return 0
|
|
|
|
/obj/machinery/door/airlock/onShuttleMove()
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
INVOKE_ASYNC(src, .proc/close, 0, 1)
|
|
// Close any nearby airlocks as well
|
|
for(var/obj/machinery/door/airlock/D in orange(1, src))
|
|
INVOKE_ASYNC(D, .proc/close, 0, 1)
|
|
|
|
/obj/machinery/door/airlock/onShuttleMove()
|
|
. = ..()
|
|
if(id_tag == "s_docking_airlock")
|
|
INVOKE_ASYNC(src, .proc/lock)
|
|
|
|
/mob/onShuttleMove(turf/oldT, turf/T1, rotation)
|
|
if(!move_on_shuttle)
|
|
return 0
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
if(!client)
|
|
return
|
|
|
|
if(buckled)
|
|
shake_camera(src, 2, 1) // turn it down a bit come on
|
|
else
|
|
shake_camera(src, 7, 1)
|
|
|
|
update_parallax_contents()
|
|
|
|
/mob/living/carbon/onShuttleMove()
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
if(!buckled)
|
|
Weaken(6 SECONDS)
|
|
|
|
// After docking //
|
|
/atom/proc/postDock(obj/docking_port/S1)
|
|
if(smoothing_flags)
|
|
QUEUE_SMOOTH(src)
|
|
|
|
/mob/postDock()
|
|
update_parallax_contents()
|
|
|
|
/obj/machinery/door/airlock/postDock(obj/docking_port/stationary/S1)
|
|
. = ..()
|
|
if(!S1.lock_shuttle_doors && id_tag == "s_docking_airlock")
|
|
INVOKE_ASYNC(src, .proc/unlock)
|
|
|
|
/obj/structure/ladder/onShuttleMove()
|
|
if(resistance_flags & INDESTRUCTIBLE)
|
|
// simply don't be moved
|
|
return FALSE
|
|
disconnect()
|
|
LateInitialize()
|
|
return ..()
|