mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Renamed gl_npcarmor script to gl_npcarmor_lite
Improved the version check in gl_highlighting_lite and gl_npcarmor_lite.
This commit is contained in:
Binary file not shown.
@@ -114,7 +114,7 @@ procedure InventoryMoveHandler begin
|
||||
end
|
||||
|
||||
procedure start begin
|
||||
if game_loaded and (sfall_ver_major < 4) then begin
|
||||
if game_loaded and (sfall_ver_major < 4 and sfall_ver_build >= 12) then begin
|
||||
call InitConfigs;
|
||||
|
||||
highlightKey := GetConfig(configSection, "Key", 0);
|
||||
|
||||
@@ -15,7 +15,7 @@ Requires sfall 3.8.12 or higher.
|
||||
To use, copy gl_highlighting_lite.int to your scripts folder, and copy sfall-mods.ini to the same directory as sfall.
|
||||
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 with the lite version:
|
||||
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:
|
||||
- items will be kept highlighted when entering combat while holding the highlight key.
|
||||
- when you pick up items while holding the highlight key, they will be kept highlighted if you drop them on the ground (fixed for 3.8.18+).
|
||||
Both glitches can bo solved by pressing and releasing the highlight key again.
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
NPC Armor Appearance mod
|
||||
------------------------
|
||||
|
||||
This is the same mod as the one 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.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.
|
||||
BIN
Binary file not shown.
+5
-3
@@ -1,14 +1,16 @@
|
||||
/*
|
||||
|
||||
NPC Armor Appearance mod
|
||||
NPC Armor Appearance mod (Lite version)
|
||||
|
||||
Used to replace the scripted part of B-Team mod.
|
||||
A cut-down version of 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.
|
||||
|
||||
NOTE: this script requires compiler from sfall modderspack with -s option
|
||||
(short circuit evaluation)
|
||||
|
||||
Requires sfall 3.8.29 or higher
|
||||
|
||||
version 1.1
|
||||
|
||||
*/
|
||||
@@ -163,7 +165,7 @@ end
|
||||
|
||||
procedure start begin
|
||||
variable sect, sects, armorTypes, armorType, npc, pid, pids, i;
|
||||
if game_loaded and (sfall_ver_major >= 4 or sfall_ver_build >= 29) then begin
|
||||
if game_loaded and (sfall_ver_major < 4 and sfall_ver_build >= 29) then begin
|
||||
armorTypes := get_ini_section(modIni, "ArmorTypes");
|
||||
armorPidMap := create_array_map;
|
||||
foreach (armorType: pids in armorTypes) begin
|
||||
@@ -0,0 +1,17 @@
|
||||
NPC Armor Appearance mod (Lite version) 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.
|
||||
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.
|
||||
|
||||
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:
|
||||
- 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.
|
||||
Reference in New Issue
Block a user