mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
deploy: 3f2f3560ad
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user