Commit Graph
468 Commits
Author SHA1 Message Date
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