mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-06 06:52:39 +00:00
* Grep for space indentation * aa * Update species.dm * Update species.dm * Update maps.dm * Update examine.dm Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com> Co-authored-by: Azarak <azarak10@gmail.com>
13 lines
538 B
Plaintext
13 lines
538 B
Plaintext
/**
|
|
* General proc used to expel a holder's contents through src (for bins holder is also the src).
|
|
*/
|
|
/obj/proc/pipe_eject(obj/holder, direction, throw_em = TRUE, turf/target, throw_range = 5, throw_speed = 1)
|
|
var/turf/src_T = get_turf(src)
|
|
for(var/A in holder)
|
|
var/atom/movable/AM = A
|
|
AM.forceMove(src_T)
|
|
SEND_SIGNAL(AM, COMSIG_MOVABLE_PIPE_EJECTING, direction)
|
|
if(throw_em && !QDELETED(AM))
|
|
var/turf/T = target || get_offset_target_turf(loc, rand(5)-rand(5), rand(5)-rand(5))
|
|
AM.throw_at(T, throw_range, throw_speed)
|