Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Security Cameras Recording Stuff
#7
i gave the practical aspect a bit of thought when I was very productively procrastinating on important stuff

instead of having the logs figure out which camera can "see" a given action every time it happens (which would result in a bunch of calculations every time everyone did something which would be awful), I'd just have the logs make sure to record the XYZ of everything. I don't think that would add any server load cause the server already records vars of the person in question like their name and ckey.

then when the user selects a certain camera to check, the game calculates the range of XYZ coordinates in its view and pulls up all actions in the log whose stored XYZ are in that range. so the calculation would only happen whenever the detective looked something up instead of whenever something was recorded.

even cooler is that this way, when the camera process runs the calculation of what a given camera's visible "range" is, the game could also omit blind spots from camera recording coverage, in other words not letting the camera see through walls. so you could be committing a nefarious deed around the corner from a camera, the AI will still be able to spot you (boo), but at least the camera won't have any record of you lighting up that doobie. maybe over time veteran players will figure out all the blind spots in the coverage and adjust their crimes accordingly

the thinktapes that comprise the IC "recording" object doesn't need to store any data except timestamps stating "yes I started recording at 0 minutes" "I was removed and stopped recording at 10:30" "the HoS recovered me and put me back in the database at 30:40" etc., when the user pulls up recording data from a given period in time the game checks "is that time in the span covered by the loaded tape's recording?"

and I guess you'd need the camera objects to record timestamps too of when they were deactivated/reactivated so the game knows to omit any logs of stuff the camera shouldn't have seen cause someone cut the wire.

hmm it sounded a lot simpler in my head. if a pro-tier coder would weigh in that'd be rad
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)