Files
2025-02-05 06:19:18 +00:00

6 lines
9.7 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/obj/item/gun - /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><a href="obj/item/gun.html#var">Var Details</a> - <a href="obj/item/gun.html#proc">Proc Details</a></header><main><h1>gun <aside>/<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/<a href="obj/item/gun.html">gun</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L5"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 5"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="obj/item/gun.html#var/burst_shot_delay">burst_shot_delay</a></th><td>The time between shots in burst.</td></tr><tr><th><a href="obj/item/gun.html#var/burst_size">burst_size</a></th><td>Weapon is burst fire if this is above 1</td></tr><tr><th><a href="obj/item/gun.html#var/busy_action">busy_action</a></th><td>Used in gun-in-mouth execution/suicide and similar, while TRUE nothing should work on this like firing or modification and so on and so forth.</td></tr><tr><th><a href="obj/item/gun.html#var/can_circuit">can_circuit</a></th><td>can we be put in a circuit</td></tr><tr><th><a href="obj/item/gun.html#var/can_emitter">can_emitter</a></th><td>can we be put in an emitter</td></tr><tr><th><a href="obj/item/gun.html#var/can_turret">can_turret</a></th><td>can we be put into a turret</td></tr><tr><th><a href="obj/item/gun.html#var/dir_recoil_amp">dir_recoil_amp</a></th><td>directional recoil multiplier</td></tr><tr><th><a href="obj/item/gun.html#var/fire_delay">fire_delay</a></th><td>The time between firing actions, this means between bursts if this is burst weapon. The reason this is 0 is because you are still, by default, limited by clickdelay.</td></tr><tr><th><a href="obj/item/gun.html#var/fire_select">fire_select</a></th><td>Current fire selection, can choose between burst, single, and full auto.</td></tr><tr><th><a href="obj/item/gun.html#var/fire_select_modes">fire_select_modes</a></th><td>What modes does this weapon have? Put SELECT_FULLY_AUTOMATIC in here to enable fully automatic behaviours.</td></tr><tr><th><a href="obj/item/gun.html#var/firing">firing</a></th><td>Currently firing, whether or not it's a burst or not.</td></tr><tr><th><a href="obj/item/gun.html#var/last_fire">last_fire</a></th><td>Last world.time this was fired</td></tr><tr><th><a href="obj/item/gun.html#var/projectile_damage_multiplier">projectile_damage_multiplier</a></th><td>Just 'slightly' snowflakey way to modify projectile damage for projectiles fired from this gun.</td></tr><tr><th><a href="obj/item/gun.html#var/selector_switch_icon">selector_switch_icon</a></th><td>if i`1t has an icon for a selector switch indicating current firemode.</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="obj/item/gun.html#proc/set_gun_light">set_gun_light</a></th><td>Swaps the gun's seclight, dropping the old seclight if it has not been qdel'd.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/burst_shot_delay"><aside class="declaration">var </aside>burst_shot_delay <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L48"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 48"></a></h3><p>The time between shots in burst.</p><h3 id="var/burst_size"><aside class="declaration">var </aside>burst_size <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L46"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 46"></a></h3><p>Weapon is burst fire if this is above 1</p><h3 id="var/busy_action"><aside class="declaration">var </aside>busy_action <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L56"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 56"></a></h3><p>Used in gun-in-mouth execution/suicide and similar, while TRUE nothing should work on this like firing or modification and so on and so forth.</p><h3 id="var/can_circuit"><aside class="declaration">var </aside>can_circuit <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L41"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 41"></a></h3><p>can we be put in a circuit</p><h3 id="var/can_emitter"><aside class="declaration">var </aside>can_emitter <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L43"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 43"></a></h3><p>can we be put in an emitter</p><h3 id="var/can_turret"><aside class="declaration">var </aside>can_turret <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L39"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 39"></a></h3><p>can we be put into a turret</p><h3 id="var/dir_recoil_amp"><aside class="declaration">var </aside>dir_recoil_amp <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L110"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 110"></a></h3><p>directional recoil multiplier</p><h3 id="var/fire_delay"><aside class="declaration">var </aside>fire_delay <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L50"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 50"></a></h3><p>The time between firing actions, this means between bursts if this is burst weapon. The reason this is 0 is because you are still, by default, limited by clickdelay.</p><h3 id="var/fire_select"><aside class="declaration">var </aside>fire_select <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L97"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 97"></a></h3><p>Current fire selection, can choose between burst, single, and full auto.</p><h3 id="var/fire_select_modes"><aside class="declaration">var </aside>fire_select_modes <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L100"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 100"></a></h3><p>What modes does this weapon have? Put SELECT_FULLY_AUTOMATIC in here to enable fully automatic behaviours.</p><h3 id="var/firing"><aside class="declaration">var </aside>firing <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L54"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 54"></a></h3><p>Currently firing, whether or not it's a burst or not.</p><h3 id="var/last_fire"><aside class="declaration">var </aside>last_fire <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L52"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 52"></a></h3><p>Last world.time this was fired</p><h3 id="var/projectile_damage_multiplier"><aside class="declaration">var </aside>projectile_damage_multiplier <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L107"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 107"></a></h3><p>Just 'slightly' snowflakey way to modify projectile damage for projectiles fired from this gun.</p><h3 id="var/selector_switch_icon"><aside class="declaration">var </aside>selector_switch_icon <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L102"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 102"></a></h3><p>if i`1t has an icon for a selector switch indicating current firemode.</p><h2 id="proc">Proc Details</h2><h3 id="proc/set_gun_light"><aside class="declaration">proc </aside>set_gun_light<aside>(/<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/flashlight/seclite/new_light) <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/modules/projectiles/gun.dm#L631"><img src="git.png" width="16" height="16" title="code/modules/projectiles/gun.dm 631"></a></aside></h3><p>Swaps the gun's seclight, dropping the old seclight if it has not been qdel'd.</p>
<p>Returns the former gun_light that has now been replaced by this proc.
Arguments:</p>
<ul>
<li>new_light - The new light to attach to the weapon. Can be null, which will mean the old light is removed with no replacement.</li>
</ul></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>