DEBUGGING TOOL added:

- 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
This commit is contained in:
baloh.matevz
2011-03-04 20:59:03 +00:00
parent cc9e4a4922
commit 7b1caa58b5
3 changed files with 30 additions and 1 deletions

View File

@@ -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

View File

@@ -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"
@@ -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"
@@ -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")

BIN
icons/480x480.dmi Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB