Files
Bubberstation/code/modules/buildmode/submodes/throwing.dm
SkyratBot 7d1d0e1fad [MIRROR] Refactors most spans into span procs (#6315)
* Refactors most spans into span procs

* AA

* a

* AAAAAAAAAAAAAAAAAAAAAA

* Update species.dm

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-06-16 00:24:49 +01:00

28 lines
990 B
Plaintext

/datum/buildmode_mode/throwing
key = "throw"
var/atom/movable/throw_atom = null
/datum/buildmode_mode/throwing/Destroy()
throw_atom = null
return ..()
/datum/buildmode_mode/throwing/show_help(client/c)
to_chat(c, span_notice("***********************************************************"))
to_chat(c, span_notice("Left Mouse Button on turf/obj/mob = Select"))
to_chat(c, span_notice("Right Mouse Button on turf/obj/mob = Throw"))
to_chat(c, span_notice("***********************************************************"))
/datum/buildmode_mode/throwing/handle_click(client/c, params, obj/object)
var/list/modifiers = params2list(params)
if(LAZYACCESS(modifiers, LEFT_CLICK))
if(isturf(object))
return
throw_atom = object
to_chat(c, "Selected object '[throw_atom]'")
if(LAZYACCESS(modifiers, RIGHT_CLICK))
if(throw_atom)
throw_atom.throw_at(object, 10, 1, c.mob)
log_admin("Build Mode: [key_name(c)] threw [throw_atom] at [object] ([AREACOORD(object)])")