mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 07:57:50 +00:00
* The TGS thing * Revert the 516 revert * Further segment the world/New() proc * Fixes an issue here
18 lines
491 B
Plaintext
18 lines
491 B
Plaintext
|
|
/proc/raycast_test(var/x = 1, var/y = 1, var/dist)
|
|
var/_vector/origin = new /_vector(usr.x, usr.y)
|
|
var/_vector/direction = new /_vector(x, y)
|
|
|
|
var/ray/our_ray = new /ray(origin, direction, usr.z)
|
|
var/list/res = our_ray.cast(dist)
|
|
for(var/rayCastHit/rCH in res)
|
|
var/image/I = image('icons/Testing/Zone.dmi',"fullblock",10)
|
|
var/datum/weakref/ref = rCH.hit_atom
|
|
var/atom/movable/R = ref.get()
|
|
R.overlays += I
|
|
R = null
|
|
spawn(30)
|
|
R = ref.get()
|
|
R.overlays -= I
|
|
return res
|