36 lines
2.7 KiB
HTML
36 lines
2.7 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/signal/subspace - /tg/ Station 13</title></head><body><header><a href="index.html">/tg/ Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a></header><main><h1>subspace <aside>/<a href="datum.html">datum</a>/<a href="datum/signal/subspace.html">signal/subspace</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/machinery/telecomms/broadcasting.dm#L57"><img src="git.png" width="16" height="16" title="code/game/machinery/telecomms/broadcasting.dm 57"></a></h1><p>Here is the big, bad function that broadcasts a message given the appropriate
|
|
parameters.</p>
|
|
<p>@param M:
|
|
Reference to the mob/speaker, stored in signal.data["mob"]</p>
|
|
<p>@param vmask:
|
|
Boolean value if the mob is "hiding" its identity via voice mask, stored in
|
|
signal.data["vmask"]</p>
|
|
<p>@param vmessage:
|
|
If specified, will display this as the message; such as "chimpering"
|
|
for monkeys if the mob is not understood. Stored in signal.data["vmessage"].</p>
|
|
<p>@param radio:
|
|
Reference to the radio broadcasting the message, stored in signal.data["radio"]</p>
|
|
<p>@param message:
|
|
The actual string message to display to mobs who understood mob M. Stored in
|
|
signal.data["message"]</p>
|
|
<p>@param name:
|
|
The name to display when a mob receives the message. signal.data["name"]</p>
|
|
<p>@param job:
|
|
The name job to display for the AI when it receives the message. signal.data["job"]</p>
|
|
<p>@param realname:
|
|
The "real" name associated with the mob. signal.data["realname"]</p>
|
|
<p>@param vname:
|
|
If specified, will use this name when mob M is not understood. signal.data["vname"]</p>
|
|
<p>@param data:
|
|
If specified:
|
|
1 -- Will only broadcast to intercoms
|
|
2 -- Will only broadcast to intercoms and station-bounced radios
|
|
3 -- Broadcast to syndicate frequency
|
|
4 -- AI can't track down this person. Useful for imitation broadcasts where you can't find the actual mob</p>
|
|
<p>@param compression:
|
|
If 0, the signal is audible
|
|
If nonzero, the signal may be partially inaudible or just complete gibberish.</p>
|
|
<p>@param level:
|
|
The list of Z levels that the sending radio is broadcasting to. Having 0 in the list broadcasts on all levels</p>
|
|
<p>@param freq
|
|
The frequency of the signal</p></main><footer>tgstation.dme <a href="https://github.com/evilew/GS13-Citadel/tree/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e">e8e0068</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.9.0</a></footer></body></html> |