Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
Fix: radio raid
Browse files Browse the repository at this point in the history
  • Loading branch information
Furrior committed Aug 17, 2023
1 parent 07f74bc commit 48d5bb6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions code/game/objects/items/devices/radio/radio.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
var/list/datum/radio_frequency/secure_radio_connections = new

var/requires_tcomms = FALSE // Does this device require tcomms to work.If TRUE it wont function at all without tcomms. If FALSE, it will work without tcomms, just slowly
var/instant = FALSE // Should this device instantly communicate if there isnt tcomms
var/instant = TRUE // Should this device instantly communicate if there isnt tcomms


/obj/item/radio/proc/set_frequency(new_frequency)
Expand Down Expand Up @@ -350,18 +350,18 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(

/obj/item/radio/talk_into(mob/living/M as mob, list/message_pieces, channel, verbage = "says")
if(!on)
return 0 // the device has to be on
return FALSE // the device has to be on
// Fix for permacell radios, but kinda eh about actually fixing them.
if(!M || !message_pieces)
return 0
return FALSE

// Uncommenting this. To the above comment:
// The permacell radios aren't suppose to be able to transmit, this isn't a bug and this "fix" is just making radio wires useless. -Giacom
if(wires.is_cut(WIRE_RADIO_TRANSMIT)) // The device has to have all its wires and shit intact
return 0
return FALSE

if(!M.IsVocal())
return 0
return FALSE

var/jammed = FALSE
var/turf/position = get_turf(src)
Expand All @@ -375,10 +375,10 @@ GLOBAL_LIST_INIT(default_medbay_channels, list(
switch(message_mode) //special cases
// This is if the connection fails
if(RADIO_CONNECTION_FAIL)
return 0
return FALSE
// This is if were using either a binary key, or a hivemind through a headset somehow. Dont ask.
if(RADIO_CONNECTION_NON_SUBSPACE)
return 1
return TRUE

if(!istype(message_mode, /datum/radio_frequency)) //if not a special case, it should be returning a radio connection
return
Expand Down

0 comments on commit 48d5bb6

Please sign in to comment.