mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
deploy: e9c73e6dd3
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@
|
||||
</code></pre></div></div><hr /> <h3 id="set_movie_path"> <a href="#set_movie_path" class="anchor-heading" aria-labelledby="set_movie_path"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_movie_path</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_movie_path</span><span class="p">(</span><span class="n">string</span> <span class="n">filename</span><span class="p">,</span> <span class="kt">int</span> <span class="n">movieid</span><span class="p">)</span>
|
||||
</code></pre></div></div><hr /> <h3 id="set_pickpocket_max"> <a href="#set_pickpocket_max" class="anchor-heading" aria-labelledby="set_pickpocket_max"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_pickpocket_max</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_pickpocket_max</span><span class="p">(</span><span class="kt">int</span> <span class="n">percentage</span><span class="p">)</span>
|
||||
</code></pre></div></div> <p>Effects all critters rather than just the player and can set the maximum in range from 0 to 999.</p><hr /> <h3 id="set_pipboy_available"> <a href="#set_pipboy_available" class="anchor-heading" aria-labelledby="set_pipboy_available"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_pipboy_available</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_pipboy_available</span><span class="p">(</span><span class="kt">int</span> <span class="n">available</span><span class="p">)</span>
|
||||
</code></pre></div></div> <p>Sets the availability of the pipboy in the game. Use 0 to disable the pipboy, and 1 or 2 to enable it (value 2 does not mark the <code class="language-plaintext highlighter-rouge">VSUIT_MOVIE</code> movie as “played”).</p><hr /> <h3 id="set_proto_data"> <a href="#set_proto_data" class="anchor-heading" aria-labelledby="set_proto_data"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_proto_data</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_proto_data</span><span class="p">(</span><span class="kt">int</span> <span class="n">pid</span><span class="p">,</span> <span class="kt">int</span> <span class="n">offset</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
|
||||
</code></pre></div></div> <p>Sets the availability of the pipboy in the game. Use 0 to disable the pipboy, and 1 or 2 to enable it (value 2 does not change the player’s default appearance).</p> <ul> <li>The availability state will be reset each time the player reloads the game.</li> <li><strong>NOTE:</strong> starting from sfall 4.4.6/3.8.46, value 1 no longer marks the <code class="language-plaintext highlighter-rouge">VSUIT_MOVIE</code> movie as “played”. Use <code class="language-plaintext highlighter-rouge">mark_movie_played(VSUIT_MOVIE)</code> instead if you want the old behavior.</li> </ul><hr /> <h3 id="set_proto_data"> <a href="#set_proto_data" class="anchor-heading" aria-labelledby="set_proto_data"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_proto_data</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_proto_data</span><span class="p">(</span><span class="kt">int</span> <span class="n">pid</span><span class="p">,</span> <span class="kt">int</span> <span class="n">offset</span><span class="p">,</span> <span class="kt">int</span> <span class="n">value</span><span class="p">)</span>
|
||||
</code></pre></div></div> <p>Used to alter the in-memory copies of the .pro files Fallout makes when they are loaded. The offset refers to the offset in memory from the start of the proto to the element you are reading. Changes are not stored on disc, and are not permanent. If you modify the protos, and then Fallout subsequently reloads the file your changes will be lost.</p><hr /> <h3 id="set_unspent_ap_bonus"> <a href="#set_unspent_ap_bonus" class="anchor-heading" aria-labelledby="set_unspent_ap_bonus"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_unspent_ap_bonus</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_unspent_ap_bonus</span><span class="p">(</span><span class="kt">int</span> <span class="n">multiplier</span><span class="p">)</span>
|
||||
</code></pre></div></div> <p>Alters the AC bonus you receive per unused action point at the end of your turn in combat. To allow for fractional values, the value given if divided by 4. (Hence the default value is 4 and not 1.)</p><hr /> <h3 id="set_unspent_ap_perk_bonus"> <a href="#set_unspent_ap_perk_bonus" class="anchor-heading" aria-labelledby="set_unspent_ap_perk_bonus"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_unspent_ap_perk_bonus</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_unspent_ap_perk_bonus</span><span class="p">(</span><span class="kt">int</span> <span class="n">multiplier</span><span class="p">)</span>
|
||||
</code></pre></div></div> <p>Similar to <code class="language-plaintext highlighter-rouge">set_unspent_ap_bonus</code>, but effects the extra AC granted by the H2H Evade perk. (The default value of this is also 4, equivalent to doubling the original bonus.</p><hr /> <h3 id="set_viewport_x"> <a href="#set_viewport_x" class="anchor-heading" aria-labelledby="set_viewport_x"><svg viewBox="0 0 16 16" aria-hidden="true"><use xlink:href="#svg-link"></use></svg></a> <strong>set_viewport_x</strong> </h3> <div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kt">void</span> <span class="n">set_viewport_x</span><span class="p">(</span><span class="kt">int</span> <span class="n">view_x</span><span class="p">)</span>
|
||||
|
||||
Reference in New Issue
Block a user