Commit Graph
100 Commits
Author SHA1 Message Date
NovaRain 16f8f1b92b Fixed setting the last script window when the mouse leaves (#376) 2021-05-12 10:30:38 +08:00
NovaRain 6b7e83ab15 Rewrote the code in Animations.cpp
Fixed gl_auto_closebox not closing containers in some cases.
2021-05-11 10:43:06 +08:00
NovaRain fc53df5a16 Added a new hook: HOOK_CANUSEWEAPON
Updated NPC armor appearance mod script.
2021-05-09 20:17:40 +08:00
NovaRain 4f22b5a9fa Code correction to two previous commits 2021-05-09 08:42:28 +08:00
NovaRain f3f8321415 Enabled AI to use unarmed attack when switching weapons
Added build folders to gitignore.
2021-05-08 23:11:37 +08:00
NovaRain 183b74a8fa Moved item_count function fix to Game\items.cpp
Finished the code of item_weapon_mp_cost replacement.
2021-05-08 12:42:53 +08:00
NovaRain 6d88f21028 Added a tweak to play "magic hands" anim when using items on objs
* for issues with scripted animations not playing (#356)
2021-05-07 15:48:40 +08:00
NovaRain db0b8eddba Set idle(Sleep) function for losing window focus
Some code correction.
2021-05-06 10:36:06 +08:00
NovaRain 2985c2866b Added additional code to "duplicate obj_dude script data" fix 2021-05-04 12:39:07 +08:00
NovaRain eeab5065da Reverted the change of obj_under_cursor in 4.2.9 (commit 1684395)
The game window position is now also saved when dragging the window by
the title bar.
2021-05-02 12:06:53 +08:00
NovaRain 2e337d246b Adjusted how the fix for create_object_sid works
Added CreateObjectSidFix option.
2021-05-02 10:34:16 +08:00
NovaRain 7df0407798 Rewrote the score calculation in AIBestWeaponFix (#370)
Changed FastShotFix to be disabled by default.
2021-04-29 11:54:20 +08:00
NovaRain 52af67ad3d Added DisableSpecialAreas option
Added a new "fonts" folder for language specific fonts.
2021-04-25 11:49:02 +08:00
NovaRain b72b26d292 Added language path for loading fonts (#368)
Some code fixes to support the language path.
2021-04-24 10:25:51 +08:00
NovaRain 99c95b2154 Code correction regarding string length 2021-04-23 10:50:34 +08:00
NovaRain 0cd2aa4f83 Added language path for sfall translations.ini 2021-04-22 11:45:21 +08:00
NovaRain 460bc045b9 Added language path for premade files (#368)
Added AppIface.msg file support to Hero Appearance mod.
2021-04-21 11:28:48 +08:00
NovaRain 83eee2ba1e Code correction to the previous commit 2021-04-19 11:19:07 +08:00
NovaRain c855c6db19 Fixed and improved AllowLargeTiles option (#367)
Removed the unspent skill points limit.
2021-04-18 13:09:06 +08:00
NovaRain edd60379c5 Added a new value to AIDrugUsePerfFix 2021-04-14 16:18:33 +08:00
NovaRain 45faa184d8 Reorganized/renamed the functions in IniReader 2021-04-13 13:37:23 +08:00
NovaRain fbd997e8bc Fixed cur_town function on new game start (#366) 2021-04-13 12:08:45 +08:00
NovaRain df45450394 Fixed AI behavior to prevent the unnecessary use of healing drugs 2021-04-13 12:02:39 +08:00
NovaRain ea9037e38a Moved all ini functions inside "IniReader" class 2021-04-11 21:24:33 +08:00
NovaRain 2eefeb4f23 Improved the "order to attack" function for party members 2021-04-11 19:33:38 +08:00
NovaRain 278bfdc841 Added markdown version of hookscripts.txt
Some edits to documents.
2021-04-07 21:09:55 +08:00
NovaRain acf859bebf Cosmetic edits: alignment of multi-line ternary 2021-04-07 21:05:55 +08:00
NovaRain 0fbc29e8fd Added a new hook: HOOK_BESTWEAPON 2021-04-05 12:43:11 +08:00
NovaRain 990587b145 Code changes to the previous commit 2021-04-04 09:56:31 +08:00
NovaRain 4dc5012ea5 Added a few fixes for knockout/down issues 2021-04-03 12:35:42 +08:00
NovaRain 16faac8cad Cosmetic edits to the code:
* tabs for indentation, spaces for alignment.
* reduced the length of some separation comment lines.
* changed some variable names ('exist' is a verb).
2021-04-03 11:01:37 +08:00
NovaRain 69633e96d5 Added DL_FIX for logging
Edits to ddraw.ini and arrays.md.
2021-04-02 01:19:29 +08:00
NovaRain f90c613107 Improved some combat-related fixes
Changed the search of localized res file to two letter-code.
2021-04-01 13:40:00 +08:00
NovaRain 4244ebd8c5 Improved the implementation of tile_num_beyond function 2021-03-29 11:54:56 +08:00
NovaRain b37b5a2e76 Corrected the code in the previous commit 2021-03-28 08:43:26 +08:00
NovaRain 454e9bde73 Added a fixed implementation of the tile_num_beyond_ function
Removed the code of multihex critter self-hit fix from BugFixes.cpp.
(now fixed properly with the aforementioned implementation)
2021-03-28 00:54:04 +08:00
NovaRain 59a1332af5 Removed DataLoadOrderPatch from ddraw.ini (always enabled) 2021-03-26 12:16:20 +08:00
NovaRain a7b95e0948 Added a fix for multihex critter self-hit issue 2021-03-25 21:28:56 +08:00
NovaRain 78d8f46af6 Added "set_quest_failure_value" script function 2021-03-24 12:52:00 +08:00
NovaRain d56de64913 Added a search for localized sfall resource files 2021-03-23 11:03:20 +08:00
NovaRain 561632fdca Code correction to the previous commit 2021-03-23 09:44:17 +08:00
NovaRain 1cc978c0b1 Added a fix to the sorting of the quest list (#361)
Added a cosmetic to the dialog review interface.

Fixed a crash introduced in commit d95e439.
2021-03-22 14:24:45 +08:00
NovaRain 438bc6f78f Code edits to the weapon switching fix in AI.cpp
Added more struct defines and corrected related code.
2021-03-19 11:24:15 +08:00
NovaRain 9657731441 Fixed the error handling in create_object_sid
* also added a debug message about the missing pid.
2021-03-17 09:44:42 +08:00
NovaRain a343e5d6e1 Fixed a possible crash in commit d76f513
* when the proto does not exist, leading to null object pointer.
2021-03-16 09:20:53 +08:00
NovaRain bdebed85b7 Added a tweak to prevent NPC aggression (#357)
* when non-hostile NPCs accidentally hit the player or members of the
player's team.
2021-03-15 10:56:44 +08:00
NovaRain d76f513873 Fixed the script attached to an object not running upon object creation (#359)
Minor code style edits.
2021-03-14 11:01:03 +08:00
NovaRain e99fe09137 Moved INI reading functions from main.cpp to IniReader.cpp 2021-03-13 13:47:27 +08:00
NovaRain 21ff9238a0 Edited description of CheckWeaponAmmoCost and HOOK_AMMOCOST 2021-03-12 09:34:57 +08:00
NovaRain 4d04cae5a6 Fixed the check of the ammo cost for a shot in CheckWeaponAmmoCost (#360) 2021-03-11 14:39:21 +08:00
NovaRain d95e43956d Fixed set_critter_burst_disable script function
* now applies only to weapons with burst attack as the secondary mode.

Minor edits to code comments.
2021-03-10 11:52:09 +08:00
NovaRain 6b49c0dbaf Added markdown version of arrays.txt (test) 2021-03-05 23:44:38 +08:00
NovaRain f8447ba3b1 Added fixes for the AP cost for AI
* before the reload AP cost for AI was always 2, even if it's changed
by CALCAPCOST hook.
2021-03-05 15:07:34 +08:00
NovaRain af90444f9b Some code edits regarding BodyPart enums 2021-03-03 10:38:32 +08:00
NovaRain db94b8e6a7 Added a fix for AI weapon validation before attack
* the check was always based on the primary weapon hit mode instead of
the selected attack mode.
2021-03-02 12:10:14 +08:00
NovaRain 1f5871fdb7 Removed the fix added in commit 2efa4a9
reason: supposedly a minor issue affecting the initial movement of an
NPC, requires further verification before implementation due to
potential harm to the AI behavior.
2021-02-26 10:30:56 +08:00
NovaRain 5b3a83df91 Edits to hookscripts.txt
Added weapon argument to HOOK_CALCAPCOST.
2021-02-24 11:59:04 +08:00
NovaRain 797de4bc0e Fixed gl_auto_closebox for gravesites 2021-02-24 10:41:27 +08:00
NovaRain cf8981b267 Added more checks to weapon ammo script functions 2021-02-24 10:40:01 +08:00
NovaRain 146cf4e08b Moved some script function handlers to new files
Reorganized some script functions.
2021-02-24 10:37:54 +08:00
NovaRain 9d640de1ca Code correction related to GetProto usage 2021-02-20 10:16:23 +08:00
NovaRain 80a0c410e1 Removed "using namespace fo" from the global definition in .cpp files 2021-02-20 09:46:04 +08:00
NovaRain da9432a33a Added a tweak to restore combat flags for NPC after fleeing
Added item_weapon_range game function.
Improved the range check in previous commit.
2021-02-19 12:22:06 +08:00
NovaRain 5bd820f357 Code edits to a couple of fixes in AI.cpp
Renamed some hook functions.
2021-02-16 11:28:26 +08:00
NovaRain 95174b238e Fixed broken GetProto() function (again) 2021-02-10 23:51:42 +08:00
NovaRain 2efa4a91fb Fixed broken GetProto() function
Added a fix to prevent NPCs from wasting their AP to pick up
unreachable items.
2021-02-10 08:33:34 +08:00
NovaRain fb84e557fe Code edits in EngineUtils.cpp
Added comments to some defines in Enums.h.
2021-02-09 22:07:35 +08:00
NovaRain 3567ec791c Removed unnecessary code
Added some function/variable defines.
2021-02-09 10:39:41 +08:00
NovaRain 7e82313cf2 Added some tweaks for debug log
Code edits in SpeedPatch.cpp
2021-02-08 11:31:52 +08:00
NovaRain fe33dc2834 Rewrote ASM code of WorldMapFPSPatch in C++ 2021-02-07 21:11:12 +08:00
NovaRain 7c6f9df404 Moved the custom implementations of is_within_perception_ and correctFidForRemovedItem_ functions to separate files 2021-02-07 08:47:54 +08:00
NovaRain c86d816119 Preparing the code (part 1)
Moved item_w_mp_cost with hook to new items.cpp.
Updated struct/variable/function defines.
2021-02-06 11:00:31 +08:00
NovaRain 4b7d901275 Added OnCombatStart, OnCombatEnd delegates
Updated version number.
2021-02-06 10:51:23 +08:00
NovaRain cd828b9717 Minor code format edits in ScriptExtender/LoadGameHook.cpp 2021-02-04 10:11:48 +08:00
NovaRain 030533207f Code edits to ScriptExtender/HookScripts
Updated Structs.h
2021-02-02 11:36:03 +08:00
NovaRain 1d42a2242c Separated the loading and initialization of global scripts
* now the loading occurs before the start of a new game.
2021-02-01 11:55:21 +08:00
NovaRain 191beb8e0c Small optimization for game_loaded script function 2021-01-31 10:30:18 +08:00
NovaRain c27d1468ec Minor edits to code and document 2021-01-31 00:48:04 +08:00
NovaRain 0941b4684c Moved GNW_win_refresh and related functions to new render.cpp 2021-01-30 09:52:05 +08:00
NovaRain 866c95599d Updated Structs.h and some other files 2021-01-30 08:24:59 +08:00
NovaRain c14966f0b9 Fixed the "Leave" event of the window region
* the event procedure was not triggered when the cursor moves to
a non-scripted window.
2021-01-29 12:42:40 +08:00
NovaRain 23d50410e2 Added SmallFrameFix option
Code style edit: use !boolean instead of (boolean == false) for some
checks.
2021-01-29 12:02:40 +08:00
NovaRain 9e250aeebb Removed unnecessary hack in Perks.cpp 2021-01-28 12:52:20 +08:00
NovaRain f2efc1978a Moved trait_adjust_stat and trait_adjust_skill functions 2021-01-28 11:13:39 +08:00
NovaRain 30cabcff2d Forgot to commit vcxproj for the previous commit 2021-01-27 11:39:44 +08:00
NovaRain 939cf8a089 Moved the code of item_total_size and adjust_fid functions 2021-01-27 11:26:39 +08:00
NovaRain c5ed504c62 Code edits 2021-01-27 10:44:42 +08:00
NovaRain f9157bee6d Changed the script name search algorithm from linear to binary 2021-01-25 12:39:33 +08:00
NovaRain 16843956b5 Changed "obj_under_cursor" for the movement cursor
* the function is not designed for use with it.

Code correction in Stats.cpp.
2021-01-25 11:34:03 +08:00
NovaRain 15564dc0ab Added an option about max HP calculation to the stats ini file
Added an update to the HP stats when the map is loaded first time.
Minor code edits.
2021-01-24 12:07:40 +08:00
NovaRain be6347ba9b Updated language translation files 2021-01-22 22:24:47 +08:00
NovaRain 671065baed Updated the code for party order attack 2021-01-22 14:18:55 +08:00
NovaRain 9e403e0e6b Added a new mode to NPC combat control mod (WIP) 2021-01-21 12:59:45 +08:00
NovaRain 88050850f7 Added a new example mod gl_auto_closebox
Updated engine structs/functions/variables for future use.
2021-01-20 10:17:01 +08:00
NovaRain 4618776322 Fixed flag setting/unsetting for non-door objects 2021-01-15 08:36:01 +08:00
NovaRain ef89748eda Fixed the format of some debug messages (#195) 2021-01-14 11:36:35 +08:00
NovaRain a1c038846a Changed HOOK_DESCRIPTIONOBJ to run for all types of objects (#293) 2021-01-14 10:44:47 +08:00
NovaRain ef0bdf1e3b Added a new hook: HOOK_ROLLCHECK 2021-01-13 23:26:19 +08:00
NovaRain bde6b94855 Added a new hook: HOOK_ADJUSTRADS
Fixed a crash bug in ScriptExtender.cpp from commit c736e39.
Some adjustments to the hook injection mechanism.
2021-01-13 11:11:32 +08:00
NovaRain 4535ec9e20 Added TagSkillMode option to the skills ini file
Added a fix to the radiation handling in the engine when an NPC is under
the player's control.

Code correction in Graphics.cpp.
2021-01-12 11:52:59 +08:00