exploit fix (#28319)

This commit is contained in:
1080pCat
2025-02-09 23:51:38 +00:00
committed by GitHub
parent 670a0ba3bb
commit 4ba6266516
2 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -342,7 +342,7 @@
// If we get here, then we're effectively acting on the turf, probably placing a pipe.
if(ranged) //woosh beam if bluespaced at a distance
if(get_dist(src, T) >= (user.client.maxview() + 2))
if(get_dist(src, T) >= (user.client.maxview() / 2))
message_admins("\[EXPLOIT] [key_name_admin(user)] attempted to place pipes with a BRPD via a camera console. (Attempted range exploit)")
playsound(src, 'sound/machines/synth_no.ogg', 15, TRUE)
to_chat(user, "<span class='notice'>ERROR: \The [T] is out of [src]'s range!</span>")
@@ -50,17 +50,16 @@
if(!proximity_flag)
if(!works_from_distance)
return
if(get_dist(src, M) > (user.client.maxview() + 2))
if(get_dist(user, M) > (user.client.maxview() / 2))
message_admins("\[EXPLOIT] [key_name_admin(user)] attempted to upgrade machinery with a BRPED via a camera console (attempted range exploit).")
playsound(src, 'sound/machines/synth_no.ogg', 15, TRUE)
to_chat(user, "<span class='notice'>ERROR: [M] is out of [src]'s range!</span>")
return
if(M.component_parts)
M.exchange_parts(user, src)
if(works_from_distance)
user.Beam(M, icon_state="rped_upgrade", icon='icons/effects/effects.dmi', time=5)
else
message_admins("\[EXPLOIT] [key_name_admin(user)] attempted to upgrade machinery with a BRPED via a camera console (attempted range exploit).")
playsound(src, 'sound/machines/synth_no.ogg', 15, TRUE)
to_chat(user, "<span class='notice'>ERROR: [M] is out of [src]'s range!</span>")
/obj/item/storage/part_replacer/tier4/populate_contents()
for(var/amount in 1 to 30)