Merge pull request #8828 from Ghommie/Ghommie-cit113
Ports "Makes ventcrawl much easier on the client"
This commit is contained in:
@@ -91,14 +91,15 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, typecacheof(list(
|
|||||||
if(!totalMembers.len)
|
if(!totalMembers.len)
|
||||||
return
|
return
|
||||||
|
|
||||||
for(var/X in totalMembers)
|
if(client)
|
||||||
var/obj/machinery/atmospherics/A = X //all elements in totalMembers are necessarily of this type.
|
for(var/X in totalMembers)
|
||||||
if(!A.pipe_vision_img)
|
var/obj/machinery/atmospherics/A = X //all elements in totalMembers are necessarily of this type.
|
||||||
A.pipe_vision_img = image(A, A.loc, layer = ABOVE_HUD_LAYER, dir = A.dir)
|
if(in_view_range(client.mob, A))
|
||||||
A.pipe_vision_img.plane = ABOVE_HUD_PLANE
|
if(!A.pipe_vision_img)
|
||||||
pipes_shown += A.pipe_vision_img
|
A.pipe_vision_img = image(A, A.loc, layer = ABOVE_HUD_LAYER, dir = A.dir)
|
||||||
if(client)
|
A.pipe_vision_img.plane = ABOVE_HUD_PLANE
|
||||||
client.images += A.pipe_vision_img
|
client.images += A.pipe_vision_img
|
||||||
|
pipes_shown += A.pipe_vision_img
|
||||||
movement_type |= VENTCRAWLING
|
movement_type |= VENTCRAWLING
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user