mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-07-11 07:02:20 +01:00
19 lines
631 B
Plaintext
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)
|