This commit is contained in:
github-actions[bot]
2022-02-17 02:46:25 +00:00
parent 90d223173c
commit d51b0b0de4
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ int arg3 - The amount of damage
int arg4 - Unused, always -1. Use this if you are using the same procedure for HOOK_DEATHANIM1 and HOOK_DEATHANIM2 (since sfall 4.1/3.8.24)
int ret0 - The pid of an object to override the attacking weapon with
</code></pre></div></div> <h2 id="deathanim2"> <a href="#deathanim2" class="anchor-heading" aria-labelledby="deathanim2"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> DeathAnim2 </h2> <p><code class="highlighter-rouge">HOOK_DEATHANIM2</code> (hs_deathanim2.int)</p> <p>Runs after Fallout has calculated the death animation. Lets you set your own custom frame id, so more powerful than <code class="highlighter-rouge">HOOK_DEATHANIM1</code>, but performs no validation. When using <code class="highlighter-rouge">critter_dmg</code> function, this script will also run. In that case weapon pid will be -1 and attacker will point to an object with <code class="highlighter-rouge">obj_art_fid == 0x20001F5</code>. Does not run for critters in the knockdown/out state.</p> <div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Item arg0 - The pid of the weapon performing the attack. (May be -1 if the attack is unarmed)
</code></pre></div></div> <h2 id="deathanim2"> <a href="#deathanim2" class="anchor-heading" aria-labelledby="deathanim2"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> DeathAnim2 </h2> <p><code class="highlighter-rouge">HOOK_DEATHANIM2</code> (hs_deathanim2.int)</p> <p>Runs after Fallout has calculated the death animation. Lets you set your own custom frame id, so more powerful than <code class="highlighter-rouge">HOOK_DEATHANIM1</code>, but performs no validation. When using <code class="highlighter-rouge">critter_dmg</code> function, this script will also run. In that case weapon pid will be -1 and attacker will point to an object with <code class="highlighter-rouge">obj_art_fid == 0x20001F5</code>. Does not run for critters in the knockdown/out state.</p> <div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>int arg0 - The pid of the weapon performing the attack. (May be -1 if the attack is unarmed)
Critter arg1 - The attacker
Critter arg2 - The target
int arg3 - The amount of damage