Files
Paradise/datum/component/automatic_fire.html

3 lines
7.2 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/component/automatic_fire - 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/automatic_fire.html#var">Var Details</a> - <a href="datum/component/automatic_fire.html#proc">Proc Details</a></header><main><h1>automatic_fire <aside>/<a href="datum.html">datum</a>/<a href="datum/component.html">component</a>/<a href="datum/component/automatic_fire.html">automatic_fire</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L4"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 4"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/component/automatic_fire.html#var/allow_akimbo">allow_akimbo</a></th><td>Should dual wielding be allowed?</td></tr><tr><th><a href="datum/component/automatic_fire.html#var/autofire_shot_delay">autofire_shot_delay</a></th><td>Time between individual shots.</td></tr><tr><th><a href="datum/component/automatic_fire.html#var/current_windup_reduction">current_windup_reduction</a></th><td>the reduction to shot delay for windup</td></tr><tr><th><a href="datum/component/automatic_fire.html#var/mouse_status">mouse_status</a></th><td>This seems hacky but there can be two MouseDown() without a MouseUp() in between if the user holds click and uses alt+tab, printscreen or similar.</td></tr><tr><th><a href="datum/component/automatic_fire.html#var/timerid">timerid</a></th><td>Timer for tracking the spindown reset timings</td></tr><tr><th><a href="datum/component/automatic_fire.html#var/windup_autofire">windup_autofire</a></th><td>windup autofire vars
Whether the delay between shots increases over time, simulating a spooling weapon</td></tr><tr><th><a href="datum/component/automatic_fire.html#var/windup_autofire_cap">windup_autofire_cap</a></th><td>How high of a reduction that current_windup_reduction can reach</td></tr><tr><th><a href="datum/component/automatic_fire.html#var/windup_autofire_reduction_multiplier">windup_autofire_reduction_multiplier</a></th><td>the percentage of autfire_shot_delay that is added to current_windup_reduction</td></tr><tr><th><a href="datum/component/automatic_fire.html#var/windup_spindown">windup_spindown</a></th><td>How long it takes for weapons that have spooled-up to reset back to the original firing speed</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/component/automatic_fire.html#proc/windup_reset">windup_reset</a></th><td>Reset for our windup, resetting everything back to initial values after a variable set amount of time (determined by var/windup_spindown).</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/allow_akimbo"><aside class="declaration">var </aside>allow_akimbo <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L16"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 16"></a></h3><p>Should dual wielding be allowed?</p><h3 id="var/autofire_shot_delay"><aside class="declaration">var </aside>autofire_shot_delay <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L12"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 12"></a></h3><p>Time between individual shots.</p><h3 id="var/current_windup_reduction"><aside class="declaration">var </aside>current_windup_reduction <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L22"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 22"></a></h3><p>the reduction to shot delay for windup</p><h3 id="var/mouse_status"><aside class="declaration">var </aside>mouse_status <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L14"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 14"></a></h3><p>This seems hacky but there can be two MouseDown() without a MouseUp() in between if the user holds click and uses alt+tab, printscreen or similar.</p><h3 id="var/timerid"><aside class="declaration">var </aside>timerid <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L30"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 30"></a></h3><p>Timer for tracking the spindown reset timings</p><h3 id="var/windup_autofire"><aside class="declaration">var </aside>windup_autofire <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L20"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 20"></a></h3><p>windup autofire vars
Whether the delay between shots increases over time, simulating a spooling weapon</p><h3 id="var/windup_autofire_cap"><aside class="declaration">var </aside>windup_autofire_cap <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L26"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 26"></a></h3><p>How high of a reduction that current_windup_reduction can reach</p><h3 id="var/windup_autofire_reduction_multiplier"><aside class="declaration">var </aside>windup_autofire_reduction_multiplier <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L24"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 24"></a></h3><p>the percentage of autfire_shot_delay that is added to current_windup_reduction</p><h3 id="var/windup_spindown"><aside class="declaration">var </aside>windup_spindown <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L28"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 28"></a></h3><p>How long it takes for weapons that have spooled-up to reset back to the original firing speed</p><h2 id="proc">Proc Details</h2><h3 id="proc/windup_reset"><aside class="declaration">proc </aside>windup_reset<aside>(deltimer) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/components/fullauto.dm#L276"><img src="git.png" width="16" height="16" title="code/datums/components/fullauto.dm 276"></a></aside></h3><p>Reset for our windup, resetting everything back to initial values after a variable set amount of time (determined by var/windup_spindown).</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>