mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
exploit fix (#28319)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user