Skip to content

Commit

Permalink
DEBUGGING TOOL added:
Browse files Browse the repository at this point in the history
- Host level admin verb added which displays the view ranges for security cameras. Not intended to be used in-game. Intended to help with the checking of camera coverage when mapping. (Already found some areas which need attention)
- For everyone who'll cry FEATURE, i asked for permission to code 'features' intended to aid with debugging and bug-fixing.
- From now on forgetting security cameras is NO LONGER A 'WHOOPS'-LEVEL EXCUSE!

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1159 316c924e-a436-60f5-8080-3fe189b3f50e
  • Loading branch information
baloh.matevz committed Mar 4, 2011
1 parent cc9e4a4 commit 7b1caa5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
src.verbs += /client/proc/Debug2 //debug toggle switch
src.verbs += /client/proc/fix_next_move
src.verbs += /client/proc/ticklag
src.verbs += /client/proc/camera_view
src.verbs += /proc/givetestverbs
src.verbs += /obj/admins/proc/spawn_atom
src.verbs += /obj/admins/proc/toggletintedweldhelmets
Expand Down
30 changes: 29 additions & 1 deletion code/modules/admin/verbs/diagnostics.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@

var/camera_range_display_status = 0

/obj/debugging/camera_range
icon = '480x480.dmi'
icon_state = "25percent"

New()
src.pixel_x = -224
src.pixel_y = -224

/client/proc
general_report()
set category = "Debug"
Expand All @@ -22,6 +32,24 @@

usr << browse(output,"window=generalreport")

camera_view()
set category = "Debug"
set name = "Camera Range Display"

if(camera_range_display_status)
camera_range_display_status = 0
else
camera_range_display_status = 1



for(var/obj/debugging/camera_range/C in world)
del(C)

if(camera_range_display_status)
for(var/obj/machinery/camera/C in world)
new/obj/debugging/camera_range(C.loc)

air_report()
set category = "Debug"
set name = "Show Air Report"
Expand Down Expand Up @@ -145,5 +173,5 @@
output += "&nbsp;&nbsp;&nbsp;&nbsp;[device] ([device:x],[device:y],[device:z] in area [get_area(device:loc)])<br>"
else
output += "&nbsp;&nbsp;&nbsp;&nbsp;[device]<br>"

usr << browse(output,"window=radioreport")
Binary file added icons/480x480.dmi
Binary file not shown.

0 comments on commit 7b1caa5

Please sign in to comment.