Files
2020-02-16 19:40:21 -08:00

19 lines
631 B
Plaintext

/datum/buildmode/throw
name = "Throw"
desc = {"***********************************************************<br>
Left Mouse Button on mob/obj = Select thrown object<br>
Right Mouse Button = Throw object<br>
***********************************************************"}
icon_state = "buildmode4"
var/throwing = null
click_left(atom/object, var/ctrl, var/alt, var/shift)
if (istype(object, /atom/movable))
throwing = object
update_button_text(object.name)
click_right(atom/object, var/ctrl, var/alt, var/shift)
var/atom/movable/M = throwing
if (istype(M))
M.throw_at(get_turf(object), 10, 1)