NovaRain
749e248c8b
Changed CorpseLineOfFireFix to be enabled by default
2019-09-15 07:18:13 +08:00
NovaRain
52290b09d2
Removed duplicate code from intface_redraw_ engine function
...
Minor edits to code/documents.
2019-09-14 08:56:05 +08:00
NovaRain
a6a8e2e42f
Backported HEROWIN, DIALOGVIEW, COUNTERWIN game mode flags from 4.x
...
Updated UI hotkeys example mod.
2019-09-13 08:09:07 +08:00
NovaRain
9693c0d439
Added "register_hook_proc_spec" script function
...
Updated documents to address the new function.
2019-09-12 22:23:02 +08:00
NovaRain
aa22575ec9
Backported optimization for global/hook scripts execution from 4.x
2019-09-11 13:18:20 +08:00
NovaRain
8f4fd1dec8
Fixed AllowLargeTiles option (broken in 3.8.18)
...
(due to commit f7fa62a )
2019-09-10 10:09:15 +08:00
NovaRain
d26097e9ae
Fixed some code in AnimationsAtOnceLimit.cpp
...
Renamed F1EngineBehavior option to Fallout1Behavior.
2019-09-10 06:53:48 +08:00
NovaRain
4bb9828f3e
Added F1EngineBehavior option to change some of F2 engine funcs to F1
...
* disables playing the final movie/credits after the endgame slideshow.
* disables halving the weight for power armor items.
Moved FastShotFix and Ray's combat_p_proc fix from main.cpp to other
files.
2019-09-09 15:19:37 +08:00
NovaRain
2d2f539826
Added a call to load f2_res.dll library from sfall code
...
Fixed code that depends on HRP addresses in Tiles.cpp.
2019-09-08 10:46:53 +08:00
NovaRain
97bd2cee18
Changed CriticalOverrides.ini to be parsed only once at game start
...
* before the ini was always reparsed after each game load/reset. This
should improve the performance.
2019-09-07 21:24:19 +08:00
NovaRain
62f890d287
Removed the dependency of Body_Torso from Body_Uncalled hit modifier
...
Re-added BodyHit_Torso to ddraw.ini.
Reverted set_bodypart_hit_modifier function to pre-3.7.4 behavior.
2019-09-07 20:16:50 +08:00
NovaRain
4b28829983
Renamed Knockback.cpp/h to Combat.cpp/h and reorganized some code:
...
* Moved PickpocketMod to skills.cpp.
* Moved CheckWeaponAmmoCost to Combat.cpp.
2019-09-07 12:13:31 +08:00
NovaRain
cbb739bd7c
Added options for tweaking some engine perks to the perks ini file
...
Minor code edits to main.cpp and ObjectsOps.hpp.
2019-09-06 13:13:40 +08:00
NovaRain
e00d02f1f0
Added a compute damage example script.
...
Updated compiled scripts due to main.h changes.
2019-09-01 11:38:34 +08:00
NovaRain
c9e0feeb32
Increased the width of the car fuel gauge to 2px
2019-09-01 09:03:09 +08:00
NovaRain
272e58d873
Tweaked reordering the execution of functions before exiting the map
...
Added event clearing for active explosives before exiting the map.
Minor code edit to BARTERPRICE hook.
2019-08-31 20:01:51 +08:00
NovaRain
20cb24b385
Fixed some args in HOOK_BARTERPRICE hook when trading with PM
...
And added a new argument to indicate trading with a party member.
Refactored register_hook/register_hook_proc with _WRAP_OPCODE.
2019-08-27 22:31:10 +08:00
NovaRain
071581effc
Replaced 'Take All' hotkey mod with UI hotkeys mod
...
Minor edits to code/documents.
2019-08-26 21:53:11 +08:00
NovaRain
155c14f4e7
Fixed player stuck at "climbing" frame after ladder climbing animation
...
Removed the previous fix about player's direction.
Minor code refactoring in AnimationsAtOnceLimit.cpp (from 4.x)
2019-08-25 10:25:30 +08:00
NovaRain
c6d612f4a7
Added MainMenuBigFontColour option to change button text color
...
Changed the fix for player's direction after climbing ladder (61aa11)
2019-08-23 10:35:17 +08:00
NovaRain
61aa1104a1
Fixed player's position if entrance tile is blocked when entering a map
...
Fixed player's direction after leaving a map via ladder/stairs.
Fixed MainMenuFontColour not changing the font color for the copyright
text on the main menu (#261 )
Code correction in main.cpp.
2019-08-22 13:32:18 +08:00
NovaRain
2bd8a6223d
Added OverrideCriticalFile option for specifying alternative crit file
...
Added code for preparing clearing map_update_event in queue.
Fixed a crash bug in message_str_game function when passing a negative
fileId value.
Corrected/edited some code.
2019-08-20 16:47:37 +08:00
NovaRain
99bc47e3f8
Minor edits to Message.cpp and define_extra.h.
2019-08-17 20:56:48 +08:00
NovaRain
07ff16af75
Added an additional 'Energy Weapon' flag to ext flags in weapon protos
...
* it forces the weapon to use EW skill regardless of its damage type.
Placed an object with PID 0x5000004 (corpse blood) to the lower z-layer
of the tile.
2019-08-16 15:17:59 +08:00
NovaRain
a7ea2a9a81
Set DAM_BACKWASH_ flag for attacker before calling combat damage ( #246 )
2019-08-14 14:36:35 +08:00
NovaRain
2bbb020a80
Fixed the lost car bug with using the Town/World button
...
(http://www.nma-fallout.com/threads/fallout-2-vehicle-bug.217993/ )
2019-08-13 13:59:20 +08:00
NovaRain
81ba15d451
Rewrote the code of force_encounter functions
...
Added a new flag to force_encounter_with_flags.
2019-08-12 21:12:28 +08:00
NovaRain
36523d89e5
Fixed obj_art_fid for dude_obj when the hero appearance mod is enabled
2019-08-12 00:13:50 +08:00
NovaRain
53bb9ea5c7
Fixed create_message_window script function
...
* prevent it from creating multiple message windows.
Capped StartMonth/StartDay in case people didn't notice "0-indexed".
Minor fix for assigning an ID to objects when loading a map.
Small optimization for sfall gl/hs scripts.
2019-08-11 11:04:57 +08:00
NovaRain
c0f9f142c4
Added a tweak for weapon perk modifier to AIBestWeaponFix
...
Minor edits to code/documents.
Updated version number.
2019-08-09 11:59:45 +08:00
NovaRain
8b9ffd08a8
Minor edits to ddraw.ini
2019-07-18 09:27:28 +08:00
NovaRain
b26208141f
Changed DebugMode to not require enabling sfall debugging mode
...
Changed version to 3.8.19.1 as maintenance release.
2019-07-17 10:10:28 +08:00
NovaRain
147382de25
Minor code edits to LoadGameHook, PartyControl, ScriptExtender.cpp
2019-07-16 13:01:44 +08:00
NovaRain
9529208c7c
Fixed the error handling on loading sfallgv.sav
...
* to improve backward compatibility with older saved games.
2019-07-15 20:51:29 +08:00
NovaRain
fc3b7180af
Backported the code of COMBATDAMAGE hook from 4.x
...
Moved instadeath crit fix from COMBATDAMAGE hook to BugFixes.cpp.
Completed the compute_attack struct.
Updated version number.
2019-07-15 09:59:58 +08:00
NovaRain
f53aa16923
Excluded Awareness from perks resetting in PartyControl.cpp
2019-07-14 10:46:56 +08:00
NovaRain
ce19262283
Excluded barter mode for ItemCounterDefaultMax
...
Renamed GetCurrentLoops function to "GetLoopFlags".
Minor edits to document/code.
2019-07-10 11:05:28 +08:00
NovaRain
e43762b45f
Added assignment of unique IDs to items/critters for event queue
...
* to prevent event queue being added to the incorrect object on the map.
2019-07-09 21:50:46 +08:00
NovaRain
ceb9c41e3d
Changed the implementation of the bug fix in commit f1ef55d
...
Added additional fix for "NPC turns into a container" bug.
2019-07-09 10:50:00 +08:00
NovaRain
0aee36f77d
Fixed bugs related to knockout/knockdown critters
...
Fixed knocked down critters not playing stand up animation when the
combat ends.
Fixed dead NPCs reloading their weapons when the combat ends.
2019-07-06 22:34:20 +08:00
NovaRain
9c41ddd243
Fixed the execution of functions before exiting map in commit f13e6bd
2019-07-06 01:57:09 +08:00
NovaRain
f38d87e0ee
Added KnockoutTime option to change the duration of the knockout effect.
...
Fixed op_lookup_string_proc_ engine function not searching the last
procedure in a script.
2019-07-04 12:11:00 +08:00
NovaRain
5fa418ae08
Added reassignment of IDs for critters upon first loading a map
...
* for fixing mapper not checking existing object IDs and generating
duplicated ones for new critters added on a map.
2019-07-03 15:13:46 +08:00
NovaRain
c6c66a4b58
Added a check for the DAM_KNOCKED_OUT flag
...
to wield_obj_critter/inven_unwield script functions.
Added climbing ladders to "interrupted player's movement in combat" fix.
2019-07-03 12:14:23 +08:00
NovaRain
feeae8c750
Added debug log entries to PartyControl.cpp as 4.x
2019-07-01 13:12:10 +08:00
NovaRain
58a67d58cb
Added SkipOpeningMovies=2 to also skip the splash screen
...
Changed the order of some code in main.cpp.
Renamed IsDebug variable to "isDebug".
2019-06-29 20:11:53 +08:00
NovaRain
96881c19a3
Fixed combat not ending automatically when there are no hostiles.
2019-06-26 06:15:35 +08:00
NovaRain
c18828b61b
Changed DataLoadOrderPatch to be 1 by default.
...
Replaced most of NULL with nullptr, since VS2010 supports it.
Some code edits to MiscOps.hpp and ScriptUtils.hpp.
2019-06-24 12:25:32 +08:00
NovaRain
b1e78bb61c
Rewrote get/set_pc/critter_*_stat funcs in C++.
...
* this slightly improved their error handling.
Concentrated the error msg for invalid args of opcodes.
2019-06-23 11:23:42 +08:00
NovaRain
bcb0228ed3
Fixed fade in/out of the screen in DX9 mode.
2019-06-18 09:27:39 +08:00
NovaRain
a75e634c96
Fixed Scout perk being taken into account for mark_area_known function.
...
* technically it should only effect the visibility of tiles when you're
exploring on the world map.
Fixed the incorrect coordinates for small/medium location circles when
highlighting their sub-tiles (one of bugs listed in #228 )
Moved the fix for the position of the target marker from Worldmap.cpp to
BugFixes.cpp.
Slightly adjusted the position/size for Local variables button in debug
editor.
2019-06-17 11:24:57 +08:00
NovaRain
c4f6c762c4
Added viewing and modifying local vars for critters to the debug editor.
2019-06-15 10:09:50 +08:00
NovaRain
5ccd1534f4
Added "metarule_exist" script function.
...
Limited the maximum number of extra game msg files to 4096 (from 4.x).
Code edit to Message.cpp and ScriptUtils.hpp.
2019-06-14 23:32:01 +08:00
NovaRain
8e0190939e
Minor edit to error messages in MiscOps.hpp.
2019-06-12 09:14:12 +08:00
NovaRain
0f7a8592a9
Fixed the interrupted player's movement in combat.
...
* it happens when the player try to use objects with Bonus Move APs
available. The distance has to be greater than remaining normal APs.
Replaced calling db_dir_entry_ with db_access_ in HeroAppearance.cpp.
2019-06-10 09:45:52 +08:00
NovaRain
e9f3fd5039
Fixed the position of the target maker for location circles.
2019-06-09 11:35:30 +08:00
NovaRain
6cc988aef5
Fixed the reserve movement fix in commit f1ef55d.
...
* before the reserve movement didn't work correctly if the player has
free move AP (yellow, from Bonus Move) left.
2019-06-09 07:26:32 +08:00
NovaRain
e50369c18d
Fixed the up/down button images in the world map interface.
2019-06-08 23:56:20 +08:00
NovaRain
f1ef55d22d
Fixed anim_move_to_tile_ ignoring the distance argument.
...
* this also fixes the broken "reserve movement" feature.
2019-06-08 09:46:30 +08:00
NovaRain
d1fe920cf7
Fixed a few bugs in WorldMapSlots option.
...
Updated version number.
2019-06-06 10:21:36 +08:00
NovaRain
9a331c918c
Fixed a bug in knockback modifier functions that could crash the game ( #237 )
...
Updated version number.
2019-06-02 08:52:42 +08:00
NovaRain
56fd9706a4
Minor edit to gl_ammomod example script.
2019-05-31 09:11:25 +08:00
NovaRain
b46892cb66
Improved the fix for the removal of PM corpses.
...
* to prevent save file corruption (one of bugs listed in #228 ). Now
party member's corpse is removed in the same way as all other critter
corpses.
Simplified the ASM code of combat_ai_hack (take 2).
2019-05-30 10:34:15 +08:00
NovaRain
7663a47fbb
Fixed the code for removal of party member's corpse when loading the map.
2019-05-29 09:37:28 +08:00
NovaRain
a9aeac1f6f
Fixed AI not checking min HP properly for using stims.
...
Edited the code of InventoryApCost in Inventory.cpp.
Minor edits to some other code.
2019-05-28 11:18:11 +08:00
NovaRain
6db496e66c
Code edits to Perks.cpp/PerksOp.hpp/ScriptExtender.cpp.
2019-05-27 12:10:34 +08:00
NovaRain
daf6585ba3
Simplified the ASM code of combat_ai_hack.
2019-05-24 20:01:19 +08:00
NovaRain
1f6dac09b8
Rewrote the fix to allow fleeing NPC to use drugs.
...
Code edits to Perks.cpp/PerksOp.hpp.
2019-05-24 10:43:46 +08:00
NovaRain
af6038ee0c
Removed LoadProtoMaxLimit option from ddraw.ini.
...
* now the proto limit is always handled by set_proto_data function when
needed, since the related issue was originally from using it to process
lots of protos at once.
2019-05-23 17:06:40 +08:00
NovaRain
2c7548f164
Fixed getting perks/traits from the real dude_obj while controlling other NPCs.
...
Added "real_dude_obj" script function and updated documents.
2019-05-22 12:59:27 +08:00
NovaRain
301ccba45f
Rewrote NPC fleeing fix.
...
Removed DialogOptions9Lines option from ddraw.ini.
2019-05-22 10:48:41 +08:00
NovaRain
899dc2422d
Increased the max text width of the info card in the char screen.
...
* the increased the width is according to the max width of one char in
font (uppercase A seems to be the widest with 8 px).
Adjusted code format in Console.cpp.
2019-05-20 11:36:03 +08:00
NovaRain
0e69ef4af1
Added two fixes for NPC fleeing in combat.
...
* added fix to allow fleeing NPC to use drugs.
* fixed NPC stuck in fleeing mode when the hit chance of a target was
too low.
2019-05-19 15:40:21 +08:00
NovaRain
f6d27b71aa
Slightly simplified the code of NPCStage6Fix.
...
Moved NPCsTryToSpendExtraAP to AI.cpp.
2019-05-19 08:24:31 +08:00
NovaRain
520f939afa
Improved the fix in previous commit.
...
* now ignoring the inv capacity only happens in combat for preventing
AI inf loop. The vanilla behavior still applies outside of combat.
* added a correct message for NPC not being able to pick up an item.
2019-05-18 11:09:04 +08:00
NovaRain
fa1e5eddc9
Fixed two item pickup issues for NPC.
...
* message for the player is displayed when the NPC cannot pick up item.
* if in combat, NPC will also be stuck in a loop of picking up item.
Fixed HideObjIsNullMsg option.
2019-05-17 10:03:48 +08:00
NovaRain
3b8878e647
Implemented an ASM patch for Win2K build to remove VS2008 requirement.
...
* tested DX9 modes, hookscripts, and combat control in VM environment.
Removed Cpp11_emu.h file.
Replaced some define macros with enums.
2019-05-15 23:42:35 +08:00
NovaRain
5353ab0ad6
Backported the code of four hookscripts from 4.x.
...
* FINDTARGET, BARTERPRICE, WITHINPERCEPTION, and INVENTORYMOVE. For
unifying the behavior of common hooks between 3.8 and 4.x.
Added the example script of WITHINPERCEPTION from 4.x.
Updated gl_highlighting_lite.
2019-05-14 11:42:21 +08:00
NovaRain
20ffc39f95
Added a tweak to op_use_obj_on_obj_hack in BugFixes (from Mr.Stalin)
...
Minor edits to some code.
2019-05-14 06:41:13 +08:00
NovaRain
8482618291
Rewrote Ray's combat_p_proc fix.
...
Refactored the code of SwitchHandHook with backporting from 4.x.
Minor code edits.
2019-05-13 11:37:02 +08:00
NovaRain
f7fa62a078
Refactored the code in Tiles.cpp.
...
Removed the font check in create_message_window script function.
2019-05-11 10:04:47 +08:00
NovaRain
1891612f38
Reverted the change in Tiles.cpp from previous commit.
2019-05-10 10:44:34 +08:00
NovaRain
efe00b9faf
Changed the names of FRM structures.
...
Fixed get FID type in Inventory.cpp.
2019-05-09 10:20:47 +08:00
NovaRain
2059a3da8c
Backported 3 script functions from 4.1:
...
* dialog_obj, loot_obj, and npc_engine_level_up.
2019-05-08 21:04:18 +08:00
NovaRain
ec3bc8c21c
Moved Test_ForceFloats to [Debugging] section.
...
* Since it's never mentioned anywhere, should be OK moving it before
the formal release.
Minor code edits to Tiles.cpp.
2019-05-07 23:08:47 +08:00
NovaRain
c1ec4057a6
Code edits on Graphics.cpp & ScriptExtender.cpp.
...
Minor edits on some other code.
Added the missing Test_ForceFloats option to ddraw.ini.
2019-05-07 14:04:36 +08:00
NovaRain
5d9008f407
Minor code edits on Graphics/Movies/TalkingHeads.cpp
2019-05-05 10:59:49 +08:00
NovaRain
64e4daeb02
Code refactoring in Arrays.cpp & ScriptArrays.hpp.
...
Added new example mods gl_ammomod & gl_highlighting_lite to modderspack.
Renamed Bugs.cpp to BugFixes.cpp.
2019-05-05 10:11:36 +08:00
NovaRain
40ed445956
Simplified the iterator in party member protos patch.
...
Added initialization and delete for repList, as in 4.x.
2019-05-03 10:14:00 +08:00
NovaRain
cbd3964ae5
Moved worldmap related code from main.cpp to the new Worldmap.cpp.
2019-05-02 21:02:49 +08:00
NovaRain
34628c0ea5
Unset the read-only attribute for party member's .sav proto files
...
Slightly changed the implementation of previous commit.
2019-05-02 14:33:09 +08:00
NovaRain
f2f260e743
Backported the patch for party member base protos.
2019-05-02 09:28:28 +08:00
NovaRain
f13e6bd9f3
Reordered the execution of functions before exiting the map
...
* partyMemberSaveProtos and queue_leaving_map are now called after
executing map_exit_p_proc procedure.
2019-05-01 11:37:11 +08:00
NovaRain
8ef05d205a
Fixed the argument value of dialogue_reaction script function
2019-04-30 11:18:42 +08:00
NovaRain
3c255085ed
Replaced ASM code in various opcodes with macros (from Mr.Stalin)
...
Unified the directory separator in documents.
Updated version number.
2019-04-30 10:38:39 +08:00
NovaRain
7500e6b637
Updated set_unique_id defines in sfall.h.
2019-04-24 20:26:26 +08:00
NovaRain
560eead694
Rewrote Force Encounter script function code.
...
Changed set_global_script_repeat/type & set_self to use fastcall.
Minor edits to BugFixes.cpp and ddraw.ini.
2019-04-24 15:06:07 +08:00
NovaRain
45baeff397
Minor code edits to some opcodes.
2019-04-23 11:40:28 +08:00
NovaRain
2df1dfbadc
Fixed and improved Use32BitHeadGraphics option:
...
* Fixed the position of the talking head texture when the game res is
larger than 640x480.
* Added the support to use textures without the need of patching
talking head FRM files.
2019-04-23 07:35:18 +08:00
NovaRain
cbe31e845c
Renamed heads/ddraw2 to TalkingHeads/Graphics.
...
Added necessary defines to prepare TalkingHeads backporting.
Some code edits to AI.cpp, MainMenu.cpp, movies.cpp.
2019-04-22 23:03:03 +08:00