mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
1 line
5.6 KiB
HTML
1 line
5.6 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/component/ranged_attacks - 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/component/ranged_attacks.html#var">Var Details</a> - <a href="datum/component/ranged_attacks.html#proc">Proc Details</a></header><main><h1>ranged_attacks <aside>/<a href="datum.html">datum</a>/<a href="datum/component.html">component</a>/<a href="datum/component/ranged_attacks.html">ranged_attacks</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/ranged_attacks.dm#L4"><img src="git.png" width="16" height="16" title="code/datums/components/ranged_attacks.dm 4"></a></h1><p>Configurable ranged attack for basic mobs.</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/component/ranged_attacks.html#var/burst_intervals">burst_intervals</a></th><td>intervals between shots</td></tr><tr><th><a href="datum/component/ranged_attacks.html#var/burst_shots">burst_shots</a></th><td>how many shots we will fire</td></tr><tr><th><a href="datum/component/ranged_attacks.html#var/casing_type">casing_type</a></th><td>What kind of casing do we use to fire?</td></tr><tr><th><a href="datum/component/ranged_attacks.html#var/cooldown_time">cooldown_time</a></th><td>Time to wait between shots</td></tr><tr><th><a href="datum/component/ranged_attacks.html#var/fire_cooldown">fire_cooldown</a></th><td>Tracks time between shots</td></tr><tr><th><a href="datum/component/ranged_attacks.html#var/projectile_sound">projectile_sound</a></th><td>Sound to play when we fire our projectile</td></tr><tr><th><a href="datum/component/ranged_attacks.html#var/projectile_type">projectile_type</a></th><td>What kind of projectile to we fire? Use only one of this or casing_type</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/component/ranged_attacks.html#proc/async_fire_ranged_attack">async_fire_ranged_attack</a></th><td>Actually fire the damn thing</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/burst_intervals"><aside class="declaration">var </aside>burst_intervals <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/ranged_attacks.dm#L14"><img src="git.png" width="16" height="16" title="code/datums/components/ranged_attacks.dm 14"></a></h3><p>intervals between shots</p><h3 id="var/burst_shots"><aside class="declaration">var </aside>burst_shots <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/ranged_attacks.dm#L12"><img src="git.png" width="16" height="16" title="code/datums/components/ranged_attacks.dm 12"></a></h3><p>how many shots we will fire</p><h3 id="var/casing_type"><aside class="declaration">var </aside>casing_type <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/ranged_attacks.dm#L6"><img src="git.png" width="16" height="16" title="code/datums/components/ranged_attacks.dm 6"></a></h3><p>What kind of casing do we use to fire?</p><h3 id="var/cooldown_time"><aside class="declaration">var </aside>cooldown_time <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/ranged_attacks.dm#L16"><img src="git.png" width="16" height="16" title="code/datums/components/ranged_attacks.dm 16"></a></h3><p>Time to wait between shots</p><h3 id="var/fire_cooldown"><aside class="declaration">var </aside>fire_cooldown <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/ranged_attacks.dm#L18"><img src="git.png" width="16" height="16" title="code/datums/components/ranged_attacks.dm 18"></a></h3><p>Tracks time between shots</p><h3 id="var/projectile_sound"><aside class="declaration">var </aside>projectile_sound <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/ranged_attacks.dm#L10"><img src="git.png" width="16" height="16" title="code/datums/components/ranged_attacks.dm 10"></a></h3><p>Sound to play when we fire our projectile</p><h3 id="var/projectile_type"><aside class="declaration">var </aside>projectile_type <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/ranged_attacks.dm#L8"><img src="git.png" width="16" height="16" title="code/datums/components/ranged_attacks.dm 8"></a></h3><p>What kind of projectile to we fire? Use only one of this or casing_type</p><h2 id="proc">Proc Details</h2><h3 id="proc/async_fire_ranged_attack"><aside class="declaration">proc </aside>async_fire_ranged_attack<aside>(/<a href="mob.html">mob</a>/<a href="mob/living.html">living</a>/<a href="mob/living/basic.html">basic</a>/firer, /<a href="atom.html">atom</a>/target, modifiers) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/ranged_attacks.dm#L70"><img src="git.png" width="16" height="16" title="code/datums/components/ranged_attacks.dm 70"></a></aside></h3><p>Actually fire the damn thing</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/8a8a00a2a9bec485351e5f219982b7315d3504fa">8a8a00a</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html> |