From da46d7ce0314f480971092fb5c36632d8a178ac9 Mon Sep 17 00:00:00 2001
From: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Date: Thu, 18 Sep 2025 02:00:42 -0400
Subject: [PATCH] [s] Fixes video camera exploit (#30480)
* Fixes-video-camera-exploit
* Fixes issue with basic mobs and xenos attacks
* Revert "Fixes issue with basic mobs and xenos attacks"
This reverts commit b84d3144ae7603cb4ab61722b4b7171197ba1e6f.
---
code/modules/paperwork/photography.dm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/code/modules/paperwork/photography.dm b/code/modules/paperwork/photography.dm
index 4b13af9eaee..9ca26eaa096 100644
--- a/code/modules/paperwork/photography.dm
+++ b/code/modules/paperwork/photography.dm
@@ -646,6 +646,16 @@ GLOBAL_LIST_INIT(SpookyGhosts, list("ghost","shade","shade2","ghost-narsie","hor
TV.update_icon(UPDATE_OVERLAYS)
COOLDOWN_START(src, video_cooldown, CAMERA_STATE_COOLDOWN)
+/obj/item/videocam/dropped(mob/user, silent)
+ . = ..()
+ if(on)
+ on = FALSE
+ icon_state = icon_off
+ camera.c_tag = null
+ camera.turn_off(null, 0)
+ QDEL_NULL(camera)
+ visible_message("The video camera turns off.")
+
/obj/item/videocam/attack_self__legacy__attackchain(mob/user)
if(!COOLDOWN_FINISHED(src, video_cooldown))
to_chat(user, "[src] is overheating, give it some time.")