mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 11:38:12 +01:00
Adds Jams Sensors belly mode
This commit is contained in:
@@ -13,6 +13,11 @@ var/global/list/active_radio_jammers = list()
|
||||
if(dist <= J.jam_range)
|
||||
return list("jammer" = J, "distance" = dist)
|
||||
|
||||
//VOREStation Addition Start
|
||||
if(is_vore_jammed(radio))
|
||||
return TRUE
|
||||
//VOREStation Addition End
|
||||
|
||||
/obj/item/device/radio_jammer
|
||||
name = "subspace jammer"
|
||||
desc = "Primarily for blocking subspace communications, preventing the use of headsets, PDAs, and communicators. Also masks suit sensors." // Added suit sensor jamming
|
||||
|
||||
@@ -2,3 +2,14 @@
|
||||
/obj/item/device/radio_jammer/admin
|
||||
jam_range = 255
|
||||
tick_cost = 0
|
||||
|
||||
/proc/is_vore_jammed(var/obj/radio)
|
||||
var/atom/current = radio
|
||||
while(current.loc)
|
||||
if(isbelly(current.loc))
|
||||
var/obj/belly/B = current.loc
|
||||
if((istype(current, /obj/item/clothing/under)) && (B.mode_flags & DM_FLAG_JAMSENSORS))
|
||||
return TRUE
|
||||
current = current.loc
|
||||
|
||||
return FALSE
|
||||
Reference in New Issue
Block a user