mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
[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 b84d3144ae.
This commit is contained in:
@@ -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("<span class='notice'>The video camera turns off.</span>")
|
||||
|
||||
/obj/item/videocam/attack_self__legacy__attackchain(mob/user)
|
||||
if(!COOLDOWN_FINISHED(src, video_cooldown))
|
||||
to_chat(user, "<span class='warning'>[src] is overheating, give it some time.</span>")
|
||||
|
||||
Reference in New Issue
Block a user