From 30b6e29bb75b463b3f41a423751ab0f2db326c05 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 22 Aug 2023 07:29:48 +0000 Subject: [PATCH] deploy: b6a4c8d476e105961e15c54f9233a19b058129bc --- combat/index.html | 2 +- direct-memory-access/index.html | 2 +- feed.xml | 2 +- interface/index.html | 2 +- maps-and-encounters/index.html | 2 +- perks-and-traits/index.html | 2 +- sfall/index.html | 2 +- stats/index.html | 2 +- utility/index.html | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/combat/index.html b/combat/index.html index 9964572c..96432ba3 100644 --- a/combat/index.html +++ b/combat/index.html @@ -1,4 +1,4 @@ - Combat | sfall Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Combat

Subcategories

Functions


attack_is_aimed

sfall.h

bool attack_is_aimed()
+            Combat | sfall                        Skip to main content   Link      Menu      Expand       (external link)    Document      Search       Copy       Copied        

Combat

Subcategories

Functions


attack_is_aimed

sfall.h

bool attack_is_aimed()
 

Returns 1 if the aimed attack mode is selected, 0 otherwise.


block_combat

void block_combat(bool value)
 

Deny the player to enter combat mode.


combat_data

mixed combat_data
 
  • returns a pointer to the C_ATTACK_* data for the current combat attack process (see defined constants in define_extra.h)
  • can be used in conjunction with the get_object_data and set_object_data functions example: sfall_func3("set_object_data", sfall_func0("combat_data"), C_ATTACK_UNUSED, 255);

disable_aimed_shots

void disable_aimed_shots(int pid)
diff --git a/direct-memory-access/index.html b/direct-memory-access/index.html
index ab2d73a4..92c4d545 100644
--- a/direct-memory-access/index.html
+++ b/direct-memory-access/index.html
@@ -1 +1 @@
-            Direct memory access | sfall                        Skip to main content   Link      Menu      Expand       (external link)    Document      Search       Copy       Copied        

Direct memory access

Subcategories

+ Direct memory access | sfall Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Direct memory access

Subcategories

diff --git a/feed.xml b/feed.xml index a0f99cc9..43abe4a8 100644 --- a/feed.xml +++ b/feed.xml @@ -1 +1 @@ -Jekyll2023-08-22T02:11:55+00:00/sfall/feed.xmlsfallSfall documentation \ No newline at end of file +Jekyll2023-08-22T07:29:30+00:00/sfall/feed.xmlsfallSfall documentation \ No newline at end of file diff --git a/interface/index.html b/interface/index.html index 7ecab1fa..3d161a73 100644 --- a/interface/index.html +++ b/interface/index.html @@ -1 +1 @@ - Interface | sfall Skip to main content Link Menu Expand (external link) Document Search Copy Copied + Interface | sfall Skip to main content Link Menu Expand (external link) Document Search Copy Copied diff --git a/maps-and-encounters/index.html b/maps-and-encounters/index.html index 2d091a33..0d47f615 100644 --- a/maps-and-encounters/index.html +++ b/maps-and-encounters/index.html @@ -1,4 +1,4 @@ - Maps and encounters | sfall Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Maps and encounters

Subcategories

Functions


exec_map_update_scripts

sfall.h

void exec_map_update_scripts()
+            Maps and encounters | sfall                        Skip to main content   Link      Menu      Expand       (external link)    Document      Search       Copy       Copied        

Maps and encounters

Subcategories

Functions


exec_map_update_scripts

sfall.h

void exec_map_update_scripts()
 

Executes map_update_p_proc for all objects on map and global/hook scripts as well.


force_encounter

void force_encounter(int map)
 

Can be called either from a global script while traveling on the world map, or from a normal script while on a local map. In either case the encounter occurs shortly after the next time the player moves on the world map. The player will not get an outdoorsman skill check.


force_encounter_with_flags

void force_encounter_with_flags(int map, int flags)
 

Does the same thing as force_encounter, but allows the specification of some extra options (see sfall.h for available flags). Forcing a random encounter on a map that is not normally used for random encounters may cause the player to lose the car, if they have it. In this case use force_encounter_with_flags with the ENCOUNTER_FLAG_NO_CAR flag set.


get_map_enter_position

array get_map_enter_position()
diff --git a/perks-and-traits/index.html b/perks-and-traits/index.html
index 051312e2..52c2f18d 100644
--- a/perks-and-traits/index.html
+++ b/perks-and-traits/index.html
@@ -1,4 +1,4 @@
-            Perks and traits | sfall                        Skip to main content   Link      Menu      Expand       (external link)    Document      Search       Copy       Copied        

Perks and traits

Subcategories

Functions


apply_heaveho_fix

void apply_heaveho_fix
+            Perks and traits | sfall                        Skip to main content   Link      Menu      Expand       (external link)    Document      Search       Copy       Copied        

Perks and traits

Subcategories

Functions


apply_heaveho_fix

void apply_heaveho_fix
 

clear_selectable_perks

void clear_selectable_perks()
 

Restores the “select a perk” box to its default state.


get_perk_available

int get_perk_available(int perk)
 

get_perk_owed

int get_perk_owed
diff --git a/sfall/index.html b/sfall/index.html
index 9494ef33..55598923 100644
--- a/sfall/index.html
+++ b/sfall/index.html
@@ -1 +1 @@
-            Sfall | sfall                        Skip to main content   Link      Menu      Expand       (external link)    Document      Search       Copy       Copied        

Sfall

Subcategories

+ Sfall | sfall Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Sfall

Subcategories

diff --git a/stats/index.html b/stats/index.html index 7da2fb3f..f0288f7b 100644 --- a/stats/index.html +++ b/stats/index.html @@ -1,4 +1,4 @@ - Stats | sfall Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Stats

The get/set_pc_base/extra_stat functions are equivalent to calling get/set_critter_base/extra_stat with dude_obj as the critter pointer. None of these stat functions take perks into account, and neither do they do range clamping to make sure the stats are valid. Use the normal get_critter_stat function to get a correctly perk adjusted and range clamped value for a stat.

Subcategories

Functions


get_critter_base_stat

int get_critter_base_stat(CritterPtr, int StatID)
+            Stats | sfall                        Skip to main content   Link      Menu      Expand       (external link)    Document      Search       Copy       Copied        

Stats

The get/set_pc_base/extra_stat functions are equivalent to calling get/set_critter_base/extra_stat with dude_obj as the critter pointer. None of these stat functions take perks into account, and neither do they do range clamping to make sure the stats are valid. Use the normal get_critter_stat function to get a correctly perk adjusted and range clamped value for a stat.

Subcategories

Functions


get_critter_base_stat

int get_critter_base_stat(CritterPtr, int StatID)
 

get_critter_extra_stat

int get_critter_extra_stat(CritterPtr, int StatID)
 

get_pc_base_stat

int get_pc_base_stat(int StatID)
 

get_pc_extra_stat

int get_pc_extra_stat(int StatID)
diff --git a/utility/index.html b/utility/index.html
index aef5f3a7..0f8419d2 100644
--- a/utility/index.html
+++ b/utility/index.html
@@ -1,4 +1,4 @@
-            Utility | sfall                        Skip to main content   Link      Menu      Expand       (external link)    Document      Search       Copy       Copied        

Utility

Subcategories

Functions


atof

float atof(string text)
+            Utility | sfall                        Skip to main content   Link      Menu      Expand       (external link)    Document      Search       Copy       Copied        

Utility

Subcategories

Functions


atof

float atof(string text)
 

atoi

int atoi(string text)
 

sprintf

string sprintf(string format, any value)
 

Formats given value using standart syntax of C printf function (google “printf” for format details). However, it is limited to formatting only 1 value.

  • Can be used to get character by ASCII code (“%c”).

typeof

int typeof(any value)