3 lines
4.1 KiB
HTML
3 lines
4.1 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/obj/item/summon - /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/summon.html#var">Var Details</a></header><main><h1>summon <aside>/<a href="obj.html">obj</a>/<a href="obj/item.html">item</a>/<a href="obj/item/summon.html">summon</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/items/summon.dm#L16"><img src="git.png" width="16" height="16" title="code/game/objects/items/summon.dm 16"></a></h1><p>Simple summon weapon code in this file</p>
|
||
<p>tl;dr latch onto target, repeatedly proc attacks, animate using transforms,
|
||
no real hitboxes/collisions, think of /datum/component/orbit-adjacent</p><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="obj/item/summon.html#var/host">host</a></th><td>our summon weapon host</td></tr><tr><th><a href="obj/item/summon.html#var/host_type">host_type</a></th><td>datum type</td></tr><tr><th><a href="obj/item/summon.html#var/melee_only">melee_only</a></th><td>are we a ranged weapon?</td></tr><tr><th><a href="obj/item/summon.html#var/range">range</a></th><td>range summons will chase to</td></tr><tr><th><a href="obj/item/summon.html#var/stack_duration">stack_duration</a></th><td>how long it takes for a "stack" to fall off by itself</td></tr><tr><th><a href="obj/item/summon.html#var/summon_count">summon_count</a></th><td>number of summons</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/host"><aside class="declaration">var </aside>host <aside>– /<a href="datum.html">datum</a>/<a href="datum/summon_weapon_host.html">summon_weapon_host</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/items/summon.dm#L26"><img src="git.png" width="16" height="16" title="code/game/objects/items/summon.dm 26"></a></h3><p>our summon weapon host</p><h3 id="var/host_type"><aside class="declaration">var </aside>host_type <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/items/summon.dm#L20"><img src="git.png" width="16" height="16" title="code/game/objects/items/summon.dm 20"></a></h3><p>datum type</p><h3 id="var/melee_only"><aside class="declaration">var </aside>melee_only <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/items/summon.dm#L30"><img src="git.png" width="16" height="16" title="code/game/objects/items/summon.dm 30"></a></h3><p>are we a ranged weapon?</p><h3 id="var/range"><aside class="declaration">var </aside>range <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/items/summon.dm#L28"><img src="git.png" width="16" height="16" title="code/game/objects/items/summon.dm 28"></a></h3><p>range summons will chase to</p><h3 id="var/stack_duration"><aside class="declaration">var </aside>stack_duration <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/items/summon.dm#L24"><img src="git.png" width="16" height="16" title="code/game/objects/items/summon.dm 24"></a></h3><p>how long it takes for a "stack" to fall off by itself</p><h3 id="var/summon_count"><aside class="declaration">var </aside>summon_count <aside>– </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/game/objects/items/summon.dm#L22"><img src="git.png" width="16" height="16" title="code/game/objects/items/summon.dm 22"></a></h3><p>number of summons</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> |