Added #pragma sce to all scripts that require -s option

Renamed all "lite version" script mods to more specific 38x.
This commit is contained in:
NovaRain
2026-04-14 11:33:10 +08:00
parent 6aae703f65
commit b13bcb9253
15 changed files with 36 additions and 26 deletions
@@ -7,10 +7,13 @@ Auto Doors mod v1.2 for Fallout 2 by Mr.Stalin
Requires sfall 3.7b or higher
NOTE: this script requires compiler from sfall modderspack with -s option (short circuit evaluation)
NOTE: this script requires compiler from sfall modderspack with -s option
(short circuit evaluation)
*/
#pragma sce
/* Include Files */
#include "..\headers\define.h"
//#include "..\headers\command.h"
@@ -1,8 +1,8 @@
/**
Item Highlighting mod (Lite version)
Item Highlighting mod (sfall 3.8.x version)
A cut-down version of the mod included in sfall 4.x, offering more features than the built-in function.
A script-based alternative to the built-in function, with more features and flexibility.
Features:
- highlights items, containers (optional) and lootable corpses (optional) on the ground
- highlights critters using the same rules as combat mode highlighting (optional)
@@ -21,6 +21,8 @@
**/
#pragma sce
#include "main.h"
//#include "..\..\..\!SRC\headers\define.h"
@@ -1,7 +1,7 @@
Item Highlighting mod (Lite version) for sfall 3.8.x
----------------------------------------------------
Item Highlighting mod for sfall 3.8.x
-------------------------------------
A cut-down version of the mod included in sfall 4.x, offers more features than the built-in function.
A script-based alternative to the built-in function, with more features and flexibility.
Features:
- highlights items, containers (optional) and lootable corpses (optional) on the ground
- configurable hotkey is used to trigger highlight
@@ -12,10 +12,10 @@ Features:
Requires sfall 3.8.12 or higher.
To use, copy gl_highlighting_lite.int to your scripts folder and sfall-mods.ini to the mods folder in the same directory as sfall.
Create the mods folder if it does not exist. Also, you should disable the built-in function in ddraw.ini (ToggleItemHighlightsKey=0).
To use, copy gl_highlighting_38x.int to your scripts folder and sfall-mods.ini to the "mods" folder in the same directory as sfall.
Create the "mods" folder if it does not exist. Also, you should disable the built-in function in ddraw.ini (ToggleItemHighlightsKey=0).
Note that due to the lack of newer game hooks in sfall 3.8.x, there are some minor visual glitches in the lite version:
Note that due to the lack of some game hooks in earlier sfall 3.8.x, there are some minor visual glitches in the mod:
- items will be kept highlighted when entering combat while holding the highlight key (fixed in 3.8.40+).
- when you pick up items while holding the highlight key, they will be kept highlighted if you drop them on the ground (fixed in 3.8.18+).
Both glitches can bo solved by pressing and releasing the highlight key again.
@@ -13,14 +13,15 @@ NOTE: this script requires compiler from sfall modderspack with -s option
*/
procedure start;
procedure afterhitroll_handler;
#pragma sce
#include "..\headers\define.h"
#include "..\headers\sfall\sfall.h"
#include "..\headers\sfall\define_extra.h"
procedure start;
procedure afterhitroll_handler;
procedure start begin
if game_loaded then begin
register_hook_proc(HOOK_AFTERHITROLL, afterhitroll_handler);
@@ -1,8 +1,8 @@
/*
NPC Armor Appearance mod (Lite version)
NPC Armor Appearance mod (sfall 3.8.x version)
A cut-down version of the mod included in sfall 4.x modders pack. Used to replace the scripted part of B-Team mod.
Basically the same as the mod included in sfall 4.x modders pack. Used to replace the scripted part of B-Team mod.
Appropriate graphics are required for this mod to work.
Can be adopted to any mod by adjusting armor PIDs, allowed weapon anim codes, NPC PIDs and NPC FIDs in INI file.
@@ -15,6 +15,8 @@
*/
#pragma sce
#include "main.h"
#define IS_ARMOR(item) (obj_type(item) == OBJ_TYPE_ITEM and obj_item_subtype(item) == item_type_armor)
@@ -1,17 +1,17 @@
NPC Armor Appearance mod (Lite version) for sfall 3.8.x
-------------------------------------------------------
NPC Armor Appearance mod for sfall 3.8.x
----------------------------------------
A cut-down version of the mod included in sfall 4.x modders pack. Used to replace the scripted part of B-Team mod.
Basically the same as the mod included in sfall 4.x modders pack. Used to replace the scripted part of B-Team mod.
Appropriate graphics are required for this mod to work, or you can set party members to use player's armor appearance instead.
Can be adopted to any mod by adjusting armor PIDs, allowed weapon anim codes, NPC PIDs and NPC FIDs in INI file.
Requires sfall 3.8.29 or higher.
To use, copy gl_npcarmor_lite.int to your scripts folder and copy npcarmor.ini to the same directory as sfall.
To use, copy gl_npcarmor_38x.int to your scripts folder and copy npcarmor.ini to the same directory as sfall.
The default npcarmor.ini is set up for Restoration Project 2.3.3.
Check the included "npcarmor - vanilla.ini" for an example that does not require any new graphics.
Note that due to the lack of newer game hooks in sfall 3.8.x, there is a minor glitch in the lite version:
Note that due to the lack of some game hooks in earlier sfall 3.8.x, there is a minor glitch in the mod:
- in combat, NPCs can pick up and try to equip weapons with anim codes that are not allowed in INI file but supported by their appearance (fixed in 3.8.40+).
@@ -1,8 +1,8 @@
/*
NPC Combat Control (Lite version)
NPC Combat Control (sfall 3.8.x version)
A script-based mod of the removed built-in ControlCombat option, offering more features and improvements.
A script-based mod of the removed built-in ControlCombat option, with more features and improvements.
Features:
- allows you to take control of your party members or other NPCs during combat
(unlike in newer 4.x versions, controlled critters cannot use Sneak skill in combat)
@@ -19,6 +19,8 @@
*/
#pragma sce
#include "..\headers\global.h"
#include "..\headers\critrpid.h"
#include "main.h"
@@ -1,7 +1,7 @@
NPC Combat Control mod (Lite version) for sfall 3.8.x
-----------------------------------------------------
NPC Combat Control mod for sfall 3.8.x
--------------------------------------
A script-based mod of the removed built-in ControlCombat option, offering more features and improvements.
A script-based mod of the removed built-in ControlCombat option, with more features and improvements.
Features:
- allows you to take control of your party members or other NPCs during combat
(unlike in newer 4.x versions, controlled critters cannot use Sneak skill in combat)
@@ -12,5 +12,5 @@ Features:
Requires sfall 3.8.40 or higher.
To use, copy gl_partycontrol_lite.int to your scripts folder and sfall-mods.ini (in ItemHighlight_Lite) to the mods folder in the same directory as sfall.
Create the mods folder if it does not exist.
To use, copy gl_partycontrol_38x.int to your scripts folder and sfall-mods.ini (in ItemHighlight_38x) to the "mods" folder in the same directory as sfall.
Create the "mods" folder if it does not exist.