Files

3 lines
17 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>code/__DEFINES/flags.dm - 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="code/__DEFINES/flags.html#define">Define Details</a></header><main><h1>code/__DEFINES/flags.dm <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="code/__DEFINES/flags.html#define/ALL_CARDINALS">ALL_CARDINALS</a></th><td>All the cardinal direction bitflags.</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/NO_SCREENTIPS">NO_SCREENTIPS</a></th><td>Whether or not this atom shows screentips when hovered over</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/UPDATE_NAME">UPDATE_NAME</a></th><td>Update the atom's name</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/UPDATE_DESC">UPDATE_DESC</a></th><td>Update the atom's desc</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/UPDATE_ICON_STATE">UPDATE_ICON_STATE</a></th><td>Update the atom's icon state</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/UPDATE_OVERLAYS">UPDATE_OVERLAYS</a></th><td>Update the atom's overlays</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/UPDATE_ICON">UPDATE_ICON</a></th><td>Update the atom's icon</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/DECAL_INIT_UPDATE_EXPERIENCED_2">DECAL_INIT_UPDATE_EXPERIENCED_2</a></th><td>Whether a decal element's parent has already been initialized and thus has already had its decals attached.
see https://github.com/tgstation/tgstation/pull/71658 for a detailed explanation of the flag.</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/SHOCKED_2">SHOCKED_2</a></th><td>Prevents mobs from getting chainshocked by teslas and the supermatter</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/RAD_PROTECT_CONTENTS_2">RAD_PROTECT_CONTENTS_2</a></th><td>should the contents of this atom be acted upon</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/RAD_NO_CONTAMINATE_2">RAD_NO_CONTAMINATE_2</a></th><td>should this object be allowed to be contaminated</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/IMMUNE_TO_SHUTTLECRUSH_2">IMMUNE_TO_SHUTTLECRUSH_2</a></th><td>Prevents shuttles from deleting the item</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/NO_MALF_EFFECT_2">NO_MALF_EFFECT_2</a></th><td>Prevents malf AI animate + overload ability</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/CRITICAL_ATOM_2">CRITICAL_ATOM_2</a></th><td>Use when this shouldn't be obscured by large icons.</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/RANDOM_BLOCKER_2">RANDOM_BLOCKER_2</a></th><td>Use this flag for items that can block randomly</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/ALLOW_BELT_NO_JUMPSUIT_2">ALLOW_BELT_NO_JUMPSUIT_2</a></th><td>This flag allows for wearing of a belt item, even if you're not wearing a jumpsuit</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/RICOCHET_SHINY">RICOCHET_SHINY</a></th><td>If the thing can reflect light (lasers/energy)</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/RICOCHET_HARD">RICOCHET_HARD</a></th><td>If the thing can reflect matter (bullets/bomb shrapnel)</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/PASSFLOCK">PASSFLOCK</a></th><td>Pass through flock objects and mobs</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/LAVA_BRIDGE">LAVA_BRIDGE</a></th><td>This turf has already been reserved for a lavaland bridge placement.</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/NO_RUST">NO_RUST</a></th><td>Blocks this turf from being rusted</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/UNUSED_RESERVATION_TURF">UNUSED_RESERVATION_TURF</a></th><td>If a turf is an unused reservation turf awaiting assignment</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/RESERVATION_TURF">RESERVATION_TURF</a></th><td>If a turf is a reserved turf</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/MOBILITY_MOVE">MOBILITY_MOVE</a></th><td>can move</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/MOBILITY_STAND">MOBILITY_STAND</a></th><td>can, and is, standing up</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/MOBILITY_PICKUP">MOBILITY_PICKUP</a></th><td>can pickup items</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/MOBILITY_USE">MOBILITY_USE</a></th><td>can hold and use items</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/MOBILITY_PULL">MOBILITY_PULL</a></th><td>can pull things</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/SCOPE_MOVEMENT_CANCELS">SCOPE_MOVEMENT_CANCELS</a></th><td>Do we have the scope cancel on move?</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/SCOPE_TURF_ONLY">SCOPE_TURF_ONLY</a></th><td>Can we use scope from mechs, lockers, etc?</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/SCOPE_CLICK_MIDDLE">SCOPE_CLICK_MIDDLE</a></th><td>Do we let the user scope and click on the middle of their screen?</td></tr><tr><th><a href="code/__DEFINES/flags.html#define/SCOPE_NEED_ACTIVE_HAND">SCOPE_NEED_ACTIVE_HAND</a></th><td>Should the user hold the item in active hand to use it?</td></tr></table><h2 id="define">Define Details</h2><h3 id="define/ALLOW_BELT_NO_JUMPSUIT_2"><aside class="declaration">#define </aside>ALLOW_BELT_NO_JUMPSUIT_2 <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L86"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 86"></a></h3><p>This flag allows for wearing of a belt item, even if you're not wearing a jumpsuit</p><h3 id="define/ALL_CARDINALS"><aside class="declaration">#define </aside>ALL_CARDINALS <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L5"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 5"></a></h3><p>All the cardinal direction bitflags.</p><h3 id="define/CRITICAL_ATOM_2"><aside class="declaration">#define </aside>CRITICAL_ATOM_2 <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L82"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 82"></a></h3><p>Use when this shouldn't be obscured by large icons.</p><h3 id="define/DECAL_INIT_UPDATE_EXPERIENCED_2"><aside class="declaration">#define </aside>DECAL_INIT_UPDATE_EXPERIENCED_2 <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L54"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 54"></a></h3><p>Whether a decal element's parent has already been initialized and thus has already had its decals attached.
see https://github.com/tgstation/tgstation/pull/71658 for a detailed explanation of the flag.</p><h3 id="define/IMMUNE_TO_SHUTTLECRUSH_2"><aside class="declaration">#define </aside>IMMUNE_TO_SHUTTLECRUSH_2 <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L78"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 78"></a></h3><p>Prevents shuttles from deleting the item</p><h3 id="define/LAVA_BRIDGE"><aside class="declaration">#define </aside>LAVA_BRIDGE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L158"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 158"></a></h3><p>This turf has already been reserved for a lavaland bridge placement.</p><h3 id="define/MOBILITY_MOVE"><aside class="declaration">#define </aside>MOBILITY_MOVE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L201"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 201"></a></h3><p>can move</p><h3 id="define/MOBILITY_PICKUP"><aside class="declaration">#define </aside>MOBILITY_PICKUP <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L205"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 205"></a></h3><p>can pickup items</p><h3 id="define/MOBILITY_PULL"><aside class="declaration">#define </aside>MOBILITY_PULL <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L209"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 209"></a></h3><p>can pull things</p><h3 id="define/MOBILITY_STAND"><aside class="declaration">#define </aside>MOBILITY_STAND <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L203"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 203"></a></h3><p>can, and is, standing up</p><h3 id="define/MOBILITY_USE"><aside class="declaration">#define </aside>MOBILITY_USE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L207"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 207"></a></h3><p>can hold and use items</p><h3 id="define/NO_MALF_EFFECT_2"><aside class="declaration">#define </aside>NO_MALF_EFFECT_2 <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L80"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 80"></a></h3><p>Prevents malf AI animate + overload ability</p><h3 id="define/NO_RUST"><aside class="declaration">#define </aside>NO_RUST <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L160"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 160"></a></h3><p>Blocks this turf from being rusted</p><h3 id="define/NO_SCREENTIPS"><aside class="declaration">#define </aside>NO_SCREENTIPS <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L28"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 28"></a></h3><p>Whether or not this atom shows screentips when hovered over</p><h3 id="define/PASSFLOCK"><aside class="declaration">#define </aside>PASSFLOCK <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L152"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 152"></a></h3><p>Pass through flock objects and mobs</p><h3 id="define/RAD_NO_CONTAMINATE_2"><aside class="declaration">#define </aside>RAD_NO_CONTAMINATE_2 <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L76"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 76"></a></h3><p>should this object be allowed to be contaminated</p><h3 id="define/RAD_PROTECT_CONTENTS_2"><aside class="declaration">#define </aside>RAD_PROTECT_CONTENTS_2 <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L74"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 74"></a></h3><p>should the contents of this atom be acted upon</p><h3 id="define/RANDOM_BLOCKER_2"><aside class="declaration">#define </aside>RANDOM_BLOCKER_2 <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L84"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 84"></a></h3><p>Use this flag for items that can block randomly</p><h3 id="define/RESERVATION_TURF"><aside class="declaration">#define </aside>RESERVATION_TURF <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L166"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 166"></a></h3><p>If a turf is a reserved turf</p><h3 id="define/RICOCHET_HARD"><aside class="declaration">#define </aside>RICOCHET_HARD <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L92"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 92"></a></h3><p>If the thing can reflect matter (bullets/bomb shrapnel)</p><h3 id="define/RICOCHET_SHINY"><aside class="declaration">#define </aside>RICOCHET_SHINY <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L90"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 90"></a></h3><p>If the thing can reflect light (lasers/energy)</p><h3 id="define/SCOPE_CLICK_MIDDLE"><aside class="declaration">#define </aside>SCOPE_CLICK_MIDDLE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L219"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 219"></a></h3><p>Do we let the user scope and click on the middle of their screen?</p><h3 id="define/SCOPE_MOVEMENT_CANCELS"><aside class="declaration">#define </aside>SCOPE_MOVEMENT_CANCELS <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L215"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 215"></a></h3><p>Do we have the scope cancel on move?</p><h3 id="define/SCOPE_NEED_ACTIVE_HAND"><aside class="declaration">#define </aside>SCOPE_NEED_ACTIVE_HAND <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L221"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 221"></a></h3><p>Should the user hold the item in active hand to use it?</p><h3 id="define/SCOPE_TURF_ONLY"><aside class="declaration">#define </aside>SCOPE_TURF_ONLY <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L217"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 217"></a></h3><p>Can we use scope from mechs, lockers, etc?</p><h3 id="define/SHOCKED_2"><aside class="declaration">#define </aside>SHOCKED_2 <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L63"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 63"></a></h3><p>Prevents mobs from getting chainshocked by teslas and the supermatter</p><h3 id="define/UNUSED_RESERVATION_TURF"><aside class="declaration">#define </aside>UNUSED_RESERVATION_TURF <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L164"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 164"></a></h3><p>If a turf is an unused reservation turf awaiting assignment</p><h3 id="define/UPDATE_DESC"><aside class="declaration">#define </aside>UPDATE_DESC <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L34"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 34"></a></h3><p>Update the atom's desc</p><h3 id="define/UPDATE_ICON"><aside class="declaration">#define </aside>UPDATE_ICON <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L40"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 40"></a></h3><p>Update the atom's icon</p><h3 id="define/UPDATE_ICON_STATE"><aside class="declaration">#define </aside>UPDATE_ICON_STATE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L36"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 36"></a></h3><p>Update the atom's icon state</p><h3 id="define/UPDATE_NAME"><aside class="declaration">#define </aside>UPDATE_NAME <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L32"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 32"></a></h3><p>Update the atom's name</p><h3 id="define/UPDATE_OVERLAYS"><aside class="declaration">#define </aside>UPDATE_OVERLAYS <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/flags.dm#L38"><img src="git.png" width="16" height="16" title="code/__DEFINES/flags.dm 38"></a></h3><p>Update the atom's overlays</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>