mirror of
https://github.com/goonstation/goonstation-2016.git
synced 2026-07-17 12:02:19 +01:00
17 lines
595 B
Plaintext
17 lines
595 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
|
|
|
|
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) |