Adds Jams Sensors belly mode

This commit is contained in:
Heroman
2021-05-09 12:39:33 +10:00
parent c1a095e564
commit 0437d0ae69
4 changed files with 18 additions and 1 deletions
@@ -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