Skip to content

Commit

Permalink
Release v4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
FakelsHub committed Sep 14, 2019
1 parent 2c0c6ab commit fc7c5f5
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# sfall
# sfall - extended

Расширенная версия включает в себя:
- Опции настройки для улучшения поведения AI в бою.
- Дополнительные опции для изменения некоторых механик игры и sfall.
- Переключене раскладки для ввода имени игрока и сохраненной игры в другой языковой кодировке. (Crafty)
- Дополнительные скриптовые моды к игре.

# sfall - original

A set of engine modifications for the classic game Fallout 2 in form of a DLL, which modifies executable in memory without changing anything in EXE file itself.

Expand All @@ -9,7 +17,6 @@ Engine modifications include:
- Many additional features for users, such as item highlight button, party member control, etc.
- Extended scripting capabilities for modders (many new opcodes to control sfall features as well as previously unavailable vanilla engine functions)


Original author: timeslip

Original description: A set of engine modifications for the classic game Fallout 2 by Interplay. Includes fixes for bugs in the original engine, allows fallout to run correctly on modern operating systems, and adds additional features for modders.
Expand Down
4 changes: 2 additions & 2 deletions artifacts/ddraw.ini
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ ViewXPos=-1
ViewYPos=-1

;Set to 1 to force Fallout not to use multiple processor cores even if they are available
SingleCore=1
SingleCore=0

;Set to 1 to override the art_chache_size setting in fallout2.cfg
OverrideArtCacheSize=0
Expand Down Expand Up @@ -397,7 +397,7 @@ DisplayKarmaChanges=0
PlayIdleAnimOnReload=0

;Set to 1 to prevent corpses from blocking line of fire
CorpseLineOfFireFix=0
CorpseLineOfFireFix=1

;Changes the timer (in days) for deleting corpses on a map after you leave (valid range: 0..13)
;The corpses of critters with 'Ages' flag or maps with 'dead_bodies_age=No' set option in maps.txt, will not disappear
Expand Down
4 changes: 2 additions & 2 deletions sfall/Modules/BugFixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ static void __declspec(naked) op_wield_obj_critter_adjust_ac_hook() {
}
}

// Haenlomal
// Haenlomal: Check path to critter for attack
static void __declspec(naked) MultiHexFix() {
__asm {
xor ecx, ecx; // argument value for make_path_func: ecx=0 (rotation data arg)
Expand Down Expand Up @@ -2561,7 +2561,7 @@ void BugFixes::init()
//}
// Fix for multiple knockout events being added to the queue
HookCall(0x424F9A, set_new_results_hack);
// Fix for knocked down critters not playing stand up animation when the combat ends
// Fix for knocked down critters not playing stand up animation when the combat ends (when set DAM_LOSE_TURN and DAM_KNOCKED_DOWN flags)
// and prevent dead NPCs from reloading their weapons
HookCall(0x421F30, combat_over_hook);

Expand Down
20 changes: 10 additions & 10 deletions sfall/Modules/HookScripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,16 @@ static void HookScriptInit() {
if (!hooksFilesLoaded) { // hook files are already put to list
HookScripts::hookScriptFilesList.clear();

InitCombatHookScripts();
InitDeathHookScripts();
InitHexBlockingHookScripts();
InitInventoryHookScripts();
InitObjectHookScripts();
InitMiscHookScripts();

LoadHookScript("hs_keypress", HOOK_KEYPRESS);
LoadHookScript("hs_mouseclick", HOOK_MOUSECLICK);
LoadHookScript("hs_gamemodechange", HOOK_GAMEMODECHANGE);
InitCombatHookScripts();
InitDeathHookScripts();
InitHexBlockingHookScripts();
InitInventoryHookScripts();
InitObjectHookScripts();
InitMiscHookScripts();

LoadHookScript("hs_keypress", HOOK_KEYPRESS);
LoadHookScript("hs_mouseclick", HOOK_MOUSECLICK);
LoadHookScript("hs_gamemodechange", HOOK_GAMEMODECHANGE);

hooksFilesLoaded = !alwaysFindScripts;
} else {
Expand Down

0 comments on commit fc7c5f5

Please sign in to comment.