mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-04 14:33:30 +00:00
to_chat replacing stream operator
This commit is contained in:
@@ -7,13 +7,13 @@
|
||||
return
|
||||
|
||||
if(isnull(tx) || isnull(ty) || isnull(tz) || isnull(range))
|
||||
usr << "Capture Map Part, captures part of a map using camara like rendering."
|
||||
usr << "Usage: Capture-Map-Part target_x_cord target_y_cord target_z_cord range"
|
||||
usr << "Target coordinates specify bottom left corner of the capture, range defines render distance to opposite corner."
|
||||
to_chat(usr, "Capture Map Part, captures part of a map using camara like rendering.")
|
||||
to_chat(usr, "Usage: Capture-Map-Part target_x_cord target_y_cord target_z_cord range")
|
||||
to_chat(usr, "Target coordinates specify bottom left corner of the capture, range defines render distance to opposite corner.")
|
||||
return
|
||||
|
||||
if(range > 32 || range <= 0)
|
||||
usr << "Capturing range is incorrect, it must be within 1-32."
|
||||
to_chat(usr, "Capturing range is incorrect, it must be within 1-32.")
|
||||
return
|
||||
|
||||
if(locate(tx,ty,tz))
|
||||
@@ -53,7 +53,7 @@
|
||||
cap.Blend(img, blendMode2iconMode(A.blend_mode), A.pixel_x + xoff, A.pixel_y + yoff)
|
||||
|
||||
var/file_name = "map_capture_x[tx]_y[ty]_z[tz]_r[range].png"
|
||||
usr << "Saved capture in cache as [file_name]."
|
||||
to_chat(usr, "Saved capture in cache as [file_name].")
|
||||
usr << browse_rsc(cap, file_name)
|
||||
else
|
||||
usr << "Target coordinates are incorrect."
|
||||
to_chat(usr, "Target coordinates are incorrect.")
|
||||
|
||||
Reference in New Issue
Block a user