mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
* Replaced loc setting with forceMove. * Update forceMove to permit moving to null loc. Also fixed atom locking with offsets not following properly.
27 lines
555 B
Plaintext
27 lines
555 B
Plaintext
// Blob Overmind Controls
|
|
|
|
|
|
/mob/camera/blob/CtrlClickOn(var/atom/A) // Expand blob
|
|
var/turf/T = get_turf(A)
|
|
if(T)
|
|
expand_blob(T)
|
|
|
|
/mob/camera/blob/MiddleClickOn(var/atom/A) // Rally spores
|
|
var/turf/T = get_turf(A)
|
|
if(T)
|
|
rally_spores(T)
|
|
|
|
/mob/camera/blob/AltClickOn(var/atom/A) // Create a shield
|
|
var/turf/T = get_turf(A)
|
|
if(T)
|
|
create_shield(T)
|
|
|
|
mob/camera/blob/DblClickOn(var/atom/A) //Teleport view to another blob
|
|
var/turf/T = get_turf(A)
|
|
|
|
var/obj/effect/blob/B = (locate(/obj/effect/blob) in T)
|
|
|
|
if(!B)
|
|
return
|
|
else
|
|
usr.forceMove(T) |