NovaRain
d2c8667c22
Refactored ASM code in KillCounter.cpp.
...
Fixed the broken ExtraKillTypes option.
Reformatted and tweaked code in Explosions.cpp.
2019-01-03 11:05:15 +08:00
NovaRain
edbf777b63
Changed hs_inventorymove hook script to be triggered before displaying the 'Move Items' window for drag and drop ammo on weapons.
2019-01-03 00:28:59 +08:00
NovaRain
26c032379e
Fixed stack in InventoryHs.cpp (from commit 7b92d0f939)
...
Refactored some ASM code in BurstMods.cpp, Inventory.cpp, Credits.cpp, AnimationsAtOnceLimit.cpp.
2019-01-01 10:24:51 +08:00
NovaRain
5a455ab942
Fixed input argument names in structure constructor for Combat/Perks/Skills modules.
2019-01-01 02:03:17 +08:00
NovaRain
d89603e56d
Improved the functionality of ElevatorsFile to allow to change the FRM images of the elevator panel and create new elevator types (from Mr.Stalin)
2018-12-31 10:05:59 +08:00
NovaRain
7b92d0f939
Corrected/improved code of some hooks.
...
Changed critical table to be loaded before global scripts.
Updated version number and year.
2018-12-30 09:59:39 +08:00
NovaRain
b89663174f
Added new HOOK_SETLIGHTING (from Mr.Stalin) ( #215 )
2018-12-30 08:01:13 +08:00
NovaRain
267d8694c9
Added UseWalkDistance option (from Mr.Stalin) ( #46 )
2018-12-28 20:04:19 +08:00
NovaRain
641ae67a7a
Added a fix to the following script functions to ensure they set the correct object: (from Mr.Stalin)
...
set_critter_burst_disable, set_critter_pickpocket_mod, set_critter_skill_mod, set_critter_hit_chance_mod, set_*_knockback
Added WeaponAnims info to npcarmor.ini.
2018-12-28 09:37:30 +08:00
NovaRain
5d483214e6
Refactored HeroAppearance.cpp (from Mr.Stalin)
2018-12-26 21:11:25 +08:00
NovaRain
62e6c41620
Refactored assembler code in Skills.cpp.
...
Moved PickpocketMod function from Combat.cpp to Skills.cpp module.
Refactored structs in Skills.cpp and Combat.cpp.
2018-12-26 10:20:22 +08:00
NovaRain
6cce07991e
Added missing return values for HOOK_INVENWIELD.
...
Updated NPC armor appearance mod.
2018-12-25 09:28:30 +08:00
NovaRain
9813d4ae74
Added a fix to prevent sfall from loading global scripts with an extension that exceeds three characters (from Mr.Stalin)
...
Replaced some pushad/popad opcodes with the newly added pushadc/popadc ASM macros.
Renamed Knockback module to Combat.
2018-12-24 12:21:45 +08:00
NovaRain
10c557ad59
Refactored SafeWrite.cpp.
2018-12-19 07:19:34 +08:00
NovaRain
a2a24918a6
Formatted code in HeroAppearance.cpp.
2018-12-18 07:50:22 +08:00
NovaRain
ca5c383767
Minor code edits on main.cpp and Perks.cpp.
2018-12-17 09:25:09 +08:00
NovaRain
ce338fa5d0
Added a procedure to search for alternative weapons to NPC armor appearance mod ( #222 )
2018-12-16 19:37:06 +08:00
NovaRain
48ac68b66f
Refactored some modules in Perk.cpp.
2018-12-16 11:33:16 +08:00
NovaRain
ecae724411
Added AlwaysFindScripts option to [Debugging].
...
Added log message for InjectAllGameHooks.
2018-12-16 09:04:30 +08:00
NovaRain
f33f356b7a
Fixed NPC armor appearance mod preventing other critters from using weapons due to incorrect return value in check_weapon_change() ( #222 )
2018-12-16 08:57:38 +08:00
NovaRain
651f23aa5b
Simplified and formatted code in Perks.cpp (from Mr.Stalin)
...
Replaced some 'strcpy_s' usages to 'strncpy_s' in Perks.cpp.
2018-12-15 18:13:38 +08:00
NovaRain
b0fe927bfb
Added missing function handlers to Metarule.cpp.
...
Minor edits to hookscripts.txt.
2018-12-05 21:47:01 +08:00
NovaRain
cedfce37be
Changed AutoQuickSave to use the current selected page if AutoQuickSavePage is disabled.
2018-12-05 13:35:37 +08:00
NovaRain
4249006ba9
Added "get/set_object_data" and "get_object_ai_data" script functions (from Mr.Stalin)
...
Changed read_byte, read_short, read_int, and read_string functions to not require AllowUnsafeScripting.
2018-12-05 10:14:10 +08:00
NovaRain
65755911f4
Fixed a bug in the hero appearance mod that caused the player to disappear after saving the game when player's base FID is greater than 255.
...
Replaced old SafeWrite usages with corresponding Hook/MakeCall functions in HeroAppearance.cpp.
Prevented HOOK_SUBCOMBATDAMAGE from being injected w/o the script when setting InjectAllGameHooks=1.
2018-12-04 09:36:20 +08:00
NovaRain
5473b0e4d9
Corrected some hooks code for the previous fix commit (from Mr.Stalin)
2018-12-03 10:12:40 +08:00
NovaRain
c1b6e35a3f
Fixed the return values of a hook getting corrupted if another hook was called during the execution of the current hook (from Mr.Stalin)
...
Added a fix to prevent hook scripts from being executed when the depth limit is exceeded, or the hook is called recursively.
2018-12-01 22:09:18 +08:00
NovaRain
db2c366376
Added a fix for unable to sell/give items to the other in barter screen when the player/party member is overloaded (from Mr.Stalin)
...
Added a variant of MakeCall/Jump with 3 arguments to replace some SafeWrite 0x90 code for trailing NOPs.
2018-11-30 11:25:11 +08:00
NovaRain
17be216a11
Fixed the previous commit, forgot to remove the obsoleted line in win_debug_hook().
2018-11-29 10:04:52 +08:00
NovaRain
770aca0cd2
Changed some MakeJump usages to MakeCall in Stats.cpp, Knockback.cpp, and MiscPatches.cpp.
...
(see Mr.Stalin's comments in commit c990b6701d )
2018-11-29 09:50:40 +08:00
NovaRain
c990b6701d
Refactored the code in Knockback.cpp.
2018-11-28 14:41:28 +08:00
NovaRain
3da7c2d0a6
Changed the implementation in commit c220e133a2 (with bug fix for HOOK_SETGLOBALVAR, #220 )
2018-11-28 09:59:14 +08:00
NovaRain
0a8c5d704c
Added missing CombatHs.cpp/.h for the previous commit.
2018-11-27 17:20:18 +08:00
NovaRain
922cdefce6
Added new HOOK_SUBCOMBATDAMAGE and refactored damage formulas code in AmmoMod.cpp (from Mr.Stalin)
2018-11-27 12:27:48 +08:00
NovaRain
180e743d31
Added an option to fix AI not checking chem_primary_desire setting in AI.txt for drug use preference (from Mr.Stalin, #219 )
2018-11-25 23:58:13 +08:00
NovaRain
950f6b8a1c
Changed sfall to only search for global scripts in folders at the game start instead of every time the game loads.
2018-11-22 20:38:54 +08:00
NovaRain
b3a4f2c19e
Reorganized and fixed the order of loading global scripts from multiple paths (from Mr.Stalin)
2018-11-21 10:52:12 +08:00
NovaRain
8dbe5921ba
Merged two Glovz's fix functions and reorganized Glovz's/YAAM code layout a bit.
...
(in preparing for larger code refactoring in AmmoMod.cpp)
Fixed a bug in Stats.cpp that caused critical hits to ignore critical table roll value and only have the lowest level effect.
Minor edits to MainMenu.cpp.
2018-11-20 23:39:33 +08:00
NovaRain
c220e133a2
Don't execute hook code for HOOK_ADJUSTFID/KEYPRESS/MOUSECLICK/GAMEMODECHANGE/SETGLOBALVAR when their scripts are not loaded (from Mr.Stalin)
2018-11-20 11:03:09 +08:00
NovaRain
d8bdf785d5
Minor code correction in MainLoopHook.cpp.
...
Minor edits to document.
Updated version number.
2018-11-20 07:20:44 +08:00
NovaRain
d569666447
Fixed the missing return value of -1 for HOOK_USEOBJON.
2018-11-16 06:33:30 +08:00
NovaRain
31b36f0c69
Fixed unable to click the pop-up message box when death from radiation was triggered during resting.
2018-11-14 07:11:00 +08:00
NovaRain
ab7be3501a
Simplified ASM code for process_rads_hook() in BugFixes.cpp.
...
Added missing initialization to ScriptExtender.h (Closes #217 )
2018-11-13 21:19:28 +08:00
NovaRain
043c90f71e
Added a pop-up message box for death from radiation sickness message.
2018-11-13 12:52:07 +08:00
NovaRain
5146b46da3
Fixed determine_to_hit_func_ engine function taking distance into account when called from determine_to_hit_no_range_ (from Mr.Stalin)
2018-11-12 13:12:22 +08:00
NovaRain
95f2bbfc1f
Removed redundant stat_level() in Skills.cpp.
2018-11-10 10:18:59 +08:00
NovaRain
8d8522d227
Refactored the code of Stats.cpp.
2018-11-09 23:49:23 +08:00
NovaRain
5a03db932e
Added an additional mode to SpeedInterfaceCounterAnims (from Mr.Stalin)
2018-11-09 12:29:07 +08:00
NovaRain
6e9a87b897
Removed the pop-up message box about not finding the original ddraw.dll, now the error is reported in the log file.
...
Added a note about setting a custom background for the character screen to the hero appearance mod.
2018-11-09 09:56:13 +08:00
NovaRain
de055cd8ec
Changed the implementation of HOOK_FINDTARGET so you don't have to specify all 4 targets to override normal sorting (from Mr.Stalin)
...
Added "loot_obj" script function.
2018-11-06 11:11:44 +08:00
NovaRain
4ae4d6dff0
Fixed broken return values in HOOK_FINDTARGET.
...
Changed the two arguments for obj_under_cursor to bool.
2018-11-04 09:06:31 +08:00
NovaRain
60054c9977
Added "obj_under_cursor" script function ( #207 )
2018-11-03 22:11:02 +08:00
NovaRain
3c9d5f7cb4
Changed PartyMemberExtraInfo to not show "Addict" text (in dark green) on the combat control panel if the party member is not addicted to drugs.
2018-11-02 22:48:17 +08:00
NovaRain
fbdb9777c7
Updated NPC combat control mod to prevent Marcus and non-biped critters from equipping armor when controlled by the player.
2018-11-01 17:25:29 +08:00
NovaRain
0f1e648e1a
Fixed isCheck argument (arg1) for HOOK_ONEXPLOSION hook (from Mr.Stalin)
...
Removed RemoveWindowRounding option because it doesn't affect anything.
2018-11-01 09:51:27 +08:00
NovaRain
7bd93af696
Adjusted the position of ExtraSaveSlots page buttons a bit.
2018-10-31 07:15:11 +08:00
NovaRain
6319017186
Added new HOOK_ONEXPLOSION and a new mode "set_explosion_max_targets" to metarule2_explosions (from Mr.Stalin) ( #35 )
2018-10-30 11:19:19 +08:00
NovaRain
29ad288f52
Fixed SwitchHandHook not being injected for controlled critters if there's no script using HOOK_INVENTORYMOVE.
2018-10-29 11:35:31 +08:00
NovaRain
a10196e2ca
Corrected the key overriding mechanism and removed unused vKey argument from KeyPressedDelegate (from Mr.Stalin)
...
Changed the debug editor to require sfall debugging mode.
Some minor code edits.
2018-10-29 11:04:51 +08:00
NovaRain
88779c10e0
Added a new return value to HOOK_KEYPRESS to override the pressed key (from Crafty)
2018-10-27 22:30:01 +08:00
NovaRain
919384bac7
Added a new setting to DebugMode to send debug output to both the screen and the debug log (from Crafty)
...
Simplified the code for ObjCanSeeObj_ShootThru_Fix a bit (from Mr.Stalin)
Changed sfall to not to create sfallfs.sav when UseFileSystemOverride is not enabled.
Updated item highlighting mod to be disabled while in the loot screen.
2018-10-27 09:43:12 +08:00
NovaRain
a60f58c0eb
Reverted some changes in the previous commit.
2018-10-26 06:46:24 +08:00
NovaRain
558e654dbf
Replaced some __cdecl calling conventions to __fastcall.
...
(from Mr.Stalin - Reason: The compiler can use the arguments for its own purposes, which can spoil the stored value on the stack.)
Simplified the code for ObjCanSeeObj_ShootThru_Fix and added extra note to ddraw.ini (#208 )
2018-10-25 11:16:39 +08:00
NovaRain
5ab389a51a
Added new HOOK_USESKILLON and PartyMemberSkillFix option ( #191 )
2018-10-24 12:19:30 +08:00
NovaRain
3203152ca4
Added missing functions from the source library ddraw.dll to export from sfall (from Mr.Stalin)
...
Simplified the code in ExtraSaveSlots.cpp.
2018-10-23 11:45:38 +08:00
NovaRain
134dc03dc9
Added an option to skip loading game settings from a saved game (from Mr.Stalin)
...
Minor edits to ddraw.ini.
2018-10-20 09:53:16 +08:00
NovaRain
1ac8825b1b
Fixed showing game movies and subtitles for DX9 mode when not using the hi-res patch, and added logging messages for DX9 mode (from Mr.Stalin)
...
Changed DisplayNPCExtraInfo to PartyMemberExtraInfo.
2018-10-19 10:27:00 +08:00
NovaRain
851e9b6d59
Added DisplayNPCExtraInfo option to ddraw.ini for commit bceb505024.
...
Changed some constant/variable names in Explosions.cpp.
2018-10-17 09:31:29 +08:00
NovaRain
cbb6afac7c
Updated NPC combat control mod to work with BoxBarCount.
...
Added additional notes to HOOK_COMBATDAMAGE in hookscripts.txt.
2018-10-16 22:18:35 +08:00
NovaRain
bceb505024
Added displaying party member's current level & AC & addict flag info to the combat control panel (from Mr.Stalin)
...
Changed highlighting containers/corpses to be default on in sfall-mods.ini.
2018-10-16 10:05:25 +08:00
NovaRain
005684fa3b
Added 3 new modes to metarule2_explosions and "item_make_explosive" script function ( #169 )
...
Simplified byte writing in some options (from Crafty)
Minor edits to Criticals.cpp.
Updated version number.
2018-10-14 21:05:15 +08:00
NovaRain
009a6cc21d
Fixed the exploit that allows you to gain excessive skill points from Tag! perk before leaving the character screen (from Mr.Stalin)
...
Minor edits to documents.
2018-10-12 10:56:18 +08:00
NovaRain
ee64d981fa
Refactored BonusHtHDamageFix/DisplayBonusDamage code in AmmoMod.cpp (from Mr.Stalin)
...
Fixed DisplayBonusDamage not being applied on Melee Damage stat in the character screen when BonusHtHDamageFix is enabled.
2018-10-11 10:46:04 +08:00
NovaRain
bb13dbd727
Added FastMoveFromContainer as the auxiliary option for ItemFastMoveKey (from Mr.Stalin)
...
Refactored the code of StackEmptyWeapons.
2018-10-10 17:52:05 +08:00
NovaRain
e813188e67
Fixed "Heave Ho!" perk increasing strength stat above 10 when determining the max range of thrown weapons.
...
Moved SpecialUnarmedAttacksFix to BugFixes.cpp and simplified the code.
Added comments to old ApplyHeaveHoFix in Perks.cpp.
2018-10-10 12:19:06 +08:00
NovaRain
64a59211ba
Changed implementation of StartGDialogFix, additionally fixed the game crash if calling start_gdialog function outside of talk_p_proc procedure for talking heads.
2018-10-10 09:14:41 +08:00
NovaRain
88f3622a5d
Added "dialog_obj" script function.
2018-10-08 09:42:38 +08:00
NovaRain
e6d958a83b
Rewrote get/set_proto_data functions in C++ and added an auto-extend mechanism for proto loading limit (from Mr.Stalin)
...
Replaced ProtoProcessingLimit with LoadProtoMaxLimit option.
Added more definitions to define_extra.h and reformatted sfall.h a bit.
2018-10-07 10:30:59 +08:00
NovaRain
6796dc1012
Added sound effect to ExtraSaveSlots page buttons (from Mr.Stalin)
2018-10-06 22:58:36 +08:00
NovaRain
90149b4fb6
Fixed crash bug in the previous commit.
2018-10-04 23:30:39 +08:00
NovaRain
41a398cbf2
Refactored ASM code in ScriptExtender.cpp (from Mr.Stalin)
...
Simplified the code of NegateFix.
2018-10-04 22:58:10 +08:00
NovaRain
88cd177ebb
Re-organized ScriptExtender.cpp:
...
* Moved SetAutoUnjamLockTime function to new Objects.cpp module.
* Move restore stats/perks to their respective modules.
* Move NegateFix to BugFixes.cpp.
2018-10-04 16:50:30 +08:00
NovaRain
569721381c
Added ProtoProcessingLimit option to address some glitches with scripts that will process a large number of protos ( #198 )
2018-10-04 09:44:48 +08:00
NovaRain
96cb6c51ea
Updated version number.
2018-10-01 21:10:21 +08:00
NovaRain
5874450f60
AllowDShowSound improvements from Mr.Stalin:
...
* Added volume control support for alternative sound files.
* Added mode 2 to play alternative music files even if original acm files are not present in the music folder.
* Added AllowDShowMovies option to separate avi files playback from enabling DX9 mode.
* Fixed initialization bug when DX9 mode is disabled.
* Small refactoring on ASM code.
Added missing FadeMultiplier option to ddraw.ini.
2018-09-30 21:34:35 +08:00
NovaRain
f088c9bb70
Fixed the mood argument of start_gdialog function being ignored for talking heads. (from Crafty)
...
Simplified the code of disabling losing unused perks.
2018-09-30 16:24:15 +08:00
NovaRain
7f8481d03a
Added "get/set_rest_on_map" script functions (from Mr.Stalin)
2018-09-28 13:59:09 +08:00
NovaRain
f162a5ab0c
Moved item_count function fix from Inventory.cpp to BugFixes.cpp.
...
Minor edit to document.
2018-09-25 14:12:06 +08:00
NovaRain
ce69e8123e
Fixed the max text width of player name in inventory.
...
Added an 8 lines limit to the underline position fix.
Removed obsoleted WorldMapEncPatch* functions from Worldmap.cpp (forgot to remove during commit 0f1072c302 )
Some minor ASM code edits.
2018-09-25 12:19:30 +08:00
NovaRain
b5e85f2f89
Changed the implementation of fs_* opcodes from ASM blocks to handler functions.
2018-09-24 12:20:42 +08:00
NovaRain
f7fe463f42
Added "create_win" script function and InterfaceDontMoveOnTop option (from Mr.Stalin)
2018-09-23 16:13:20 +08:00
NovaRain
27f2d57ebd
Fixed ai_retrieve_object_ engine function not returning the requested object when there are different objects with the same ID (from Mr.Stalin)
...
Added info about map_*_p_proc procedures to the global script section in notes.txt (#197 )
2018-09-23 08:13:35 +08:00
NovaRain
bbe789d013
Added "get_current_inven_size" script function.
2018-09-21 19:23:35 +08:00
NovaRain
76ea3ed383
Added inventory size check to "Take All" button (from Mr.Stalin)
...
Added additional note to CritterInvSizeLimitMode in ddraw.ini, and changed CritterInvSizeLimit to its default value.
2018-09-20 09:41:49 +08:00
NovaRain
c6f3dbfcf6
Changed item_total_weight/item_c_curr_size engine functions to return the weight and size of equipped(hidden) items on NPCs when exchanging/bartering items (from Mr.Stalin)
...
Fixed CritterInvSizeLimitMode not properly checking the weight of equipped items when mode is set to 4+.
2018-09-19 22:49:05 +08:00
NovaRain
49ce654d72
Excluded inventory size features for NPCs when CritterInvSizeLimitMode is set to PC only.
2018-09-16 10:24:49 +08:00
NovaRain
b2a1160492
Removed UTF-8 BOM in Inventory.cpp.
2018-09-15 10:13:25 +08:00
NovaRain
5da2ec76de
Refactored CritterInvSizeLimitMode option and fixed some bugs (from Mr.Stalin)
...
Added party member's current/max inventory size info to the combat control panel.
2018-09-15 09:49:07 +08:00
NovaRain
123f69268d
Fixed the underline position in the inventory display window when the item name is longer than one line (from Mr.Stalin)
...
Simplified the code of SuperStimExploitFix and corrected the return value for the change.
2018-09-12 22:39:18 +08:00
NovaRain
6d0c84e783
Fixed broken get/reset_critical_table functions (from Mr.Stalin)
2018-09-11 09:55:38 +08:00