Files
Paradise/datum/element/relay_attackers.html

3 lines
3.8 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/element/relay_attackers - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a><a href="datum/element/relay_attackers.html#proc">Proc Details</a></header><main><h1>relay_attackers <aside>/<a href="datum.html">datum</a>/<a href="datum/element.html">element</a>/<a href="datum/element/relay_attackers.html">relay_attackers</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/elements/relay_attackers.dm#L6"><img src="git.png" width="16" height="16" title="code/datums/elements/relay_attackers.dm 6"></a></h1><p>This element registers to a shitload of signals which can signify &quot;someone attacked me&quot;.
If anyone does it sends a single &quot;someone attacked me&quot; signal containing details about who done it.
This prevents other components and elements from having to register to the same list of a million signals, should be more maintainable in one place.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/element/relay_attackers.html#proc/on_bullet_act">on_bullet_act</a></th><td>Even if another component blocked this hit, someone still shot at us</td></tr><tr><th><a href="datum/element/relay_attackers.html#proc/on_hitby">on_hitby</a></th><td>Even if another component blocked this hit, someone still threw something</td></tr><tr><th><a href="datum/element/relay_attackers.html#proc/relay_attacker">relay_attacker</a></th><td>Send out a signal identifying whoever just attacked us (usually a mob but sometimes a mech or turret)</td></tr></table><h2 id="proc">Proc Details</h2><h3 id="proc/on_bullet_act"><aside class="declaration">proc </aside>on_bullet_act<aside>(/<a href="atom.html">atom</a>/target, /<a href="obj.html">obj</a>/<a href="obj/projectile.html">projectile</a>/hit_projectile) <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/elements/relay_attackers.dm#L68"><img src="git.png" width="16" height="16" title="code/datums/elements/relay_attackers.dm 68"></a></aside></h3><p>Even if another component blocked this hit, someone still shot at us</p><h3 id="proc/on_hitby"><aside class="declaration">proc </aside>on_hitby<aside>(/<a href="atom.html">atom</a>/target, /<a href="atom.html">atom</a>/<a href="atom/movable.html">movable</a>/hit_atom, /<a href="datum.html">datum</a>/<a href="datum/thrownthing.html">thrownthing</a>/throwingdatum) <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/elements/relay_attackers.dm#L77"><img src="git.png" width="16" height="16" title="code/datums/elements/relay_attackers.dm 77"></a></aside></h3><p>Even if another component blocked this hit, someone still threw something</p><h3 id="proc/relay_attacker"><aside class="declaration">proc </aside>relay_attacker<aside>(/<a href="atom.html">atom</a>/victim, /<a href="atom.html">atom</a>/attacker, attack_flags) <a href="https://github.com/ParadiseSS13/Paradise/blob/776b9861f70566b1e6a0763a465ef22f7920a3d6/code/datums/elements/relay_attackers.dm#L94"><img src="git.png" width="16" height="16" title="code/datums/elements/relay_attackers.dm 94"></a></aside></h3><p>Send out a signal identifying whoever just attacked us (usually a mob but sometimes a mech or turret)</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/776b9861f70566b1e6a0763a465ef22f7920a3d6">776b986</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html>