NovaRain
3fb2594855
Code correction related to GetProto usage
2021-02-20 10:30:17 +08:00
NovaRain
0dad664a67
Moved all sfgame_ functions into new ReplacementFuncs.cpp/h
2021-02-19 23:33:51 +08:00
NovaRain
e588c89832
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:45:36 +08:00
NovaRain
0b15ac7b77
Code edits to a couple of fixes in AI.cpp
...
Minor edits to HookScripts.cpp.
2021-02-16 11:31:09 +08:00
NovaRain
7ce7f4db27
Fixed broken GetProto() function (again)
2021-02-10 23:52:56 +08:00
NovaRain
6d7ef3c76b
Fixed broken GetProto() function
...
Added a fix to prevent NPCs from wasting their AP to pick up
unreachable items.
2021-02-10 08:37:35 +08:00
NovaRain
e5b04d81e3
Code edits in FalloutEngine.cpp
...
Added comments to some defines in Define.h.
2021-02-09 22:08:30 +08:00
NovaRain
c9eb5c2dee
Removed unnecessary code
...
Added some function/variable defines.
2021-02-09 10:41:55 +08:00
NovaRain
a47644f269
Added some tweaks for debug log
...
Code edits in SpeedPatch.cpp
2021-02-08 12:45:16 +08:00
NovaRain
02e48dde63
Rewrote ASM code of WorldMapFPSPatch in C++
2021-02-07 21:27:36 +08:00
NovaRain
60a187de30
Refactored HOOK_WITHINPERCEPTION code as 4.x
...
Renamed engine function reimplementations with "sfgame_" prefix.
Added AIpref defines and AIcap struct.
2021-02-07 20:04:00 +08:00
NovaRain
83392f739b
Refactored CombatHook() in LoadGameHook.cpp.
...
Updated struct/variable/function defines.
Minor code edits according to develop branch.
Updated version number.
2021-02-06 11:06:38 +08:00
NovaRain
9c084c10e0
Minor code format edits in LoadGameHook.cpp
2021-02-04 10:12:31 +08:00
NovaRain
52ce39c264
Added NPC armor mod to the example mods
2021-02-02 20:34:12 +08:00
NovaRain
4813b5656f
Code edits to ScriptExtender.cpp
...
Updated FalloutStructs.h and ddraw.ini.
2021-02-02 11:39:33 +08:00
NovaRain
3932676824
Separated the loading and initialization of hook scripts
...
* now it works mostly in the same way as 4.x.
* now the hook injection code is run only once on sfall init.
2021-02-02 11:31:57 +08:00
NovaRain
7b5d50abf0
Separated the loading and initialization of global scripts
...
* now the loading occurs before the start of a new game.
* Note: hs_ scripts are still loaded & inited in one go after game load
2021-02-01 15:13:07 +08:00
NovaRain
4ffdac7f0d
Refactored the code in LoadGameHook.cpp
...
* now the reset of modules should be in the same way as 4.x.
2021-01-31 20:49:32 +08:00
NovaRain
9149df171d
Small optimization for game_loaded script function
2021-01-31 10:33:52 +08:00
NovaRain
4e200bc513
Minor edits to code and document
2021-01-31 10:26:57 +08:00
NovaRain
3ae0f0f87b
Reorganized render related code in Graphics.cpp
2021-01-30 10:08:22 +08:00
NovaRain
609c4af6b1
Updated FalloutStructs.h and some other files
2021-01-30 09:28:32 +08:00
NovaRain
21b88c3cf0
Backported HOOK_ADJUSTFID from 4.2
2021-01-29 23:03:26 +08:00
NovaRain
87af67346e
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:44:20 +08:00
NovaRain
7eab9ff3ce
Added SmallFrameFix option
...
Code style edit: use !boolean instead of (boolean == false) for some
checks.
2021-01-29 12:05:19 +08:00
NovaRain
7a1ab34964
Moved the defines of engine function offsets to a new header
2021-01-28 21:33:04 +08:00
NovaRain
a914029f46
Removed unnecessary hack in Perks.cpp
2021-01-28 12:54:03 +08:00
NovaRain
980176451e
Code edits to Perks.cpp
2021-01-28 12:36:38 +08:00
NovaRain
9e861f735d
Implemented sProto stuct and GetProto function
...
* replaced the obsolete "char* proto" usages and GetProtoPtr function.
2021-01-27 12:20:03 +08:00
NovaRain
83d50fc33e
Code edits
2021-01-27 10:47:17 +08:00
NovaRain
839f531cbd
Moved the defines of engine variable pointers to a new header
2021-01-26 22:01:34 +08:00
NovaRain
ba11cee858
Renamed all engine function wrappers with "fo_" prefix
2021-01-26 14:03:37 +08:00
NovaRain
42215fc1bb
Changed the script name search algorithm from linear to binary
2021-01-25 13:04:06 +08:00
NovaRain
2d7ff1e558
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:41 +08:00
NovaRain
2aa77552f5
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.
Code edits to Animations.cpp.
Minor code edits.
2021-01-24 22:54:20 +08:00
NovaRain
73b0091ec1
Renamed engine variable defines to be in line with 4.x
2021-01-22 22:32:04 +08:00
NovaRain
e5b110d7ce
Added some functions/variables for future use
2021-01-22 14:19:35 +08:00
NovaRain
8e66b82f76
Added a new example mod gl_auto_closebox
...
Updated gl_highlighting_lite example mod.
Updated engine structs.
2021-01-20 10:21:48 +08:00
NovaRain
d2b3cac835
Fixed flag setting/unsetting for non-door objects
...
Added a fix to prevent setting the radiation level for controlled NPCs.
Removed the ability to change the poison level for NPCs (now 4.x
exclusive)
2021-01-15 08:42:11 +08:00
NovaRain
2b187cee1f
Fixed the format of some debug messages ( #195 )
2021-01-14 11:37:49 +08:00
NovaRain
3b965fc76c
Fixed a crash bug in ScriptExtender.cpp from commit e075c05
...
Minor code/document edits.
2021-01-13 11:19:25 +08:00
NovaRain
31af299b4a
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 12:02:17 +08:00
NovaRain
cf90437b71
Backported HOOK_GAMEMODECHANGE from 4.2
...
Backported SPECIAL game mode flag from 4.2
2021-01-10 21:45:50 +08:00
NovaRain
e075c05a3f
Fixed the display issue in DX9 mode
...
* black screen or rainbow colors when returning to the game after using
Alt+Tab in dialogue.
ASM code correction in ScriptExtender.cpp.
2021-01-08 13:28:57 +08:00
NovaRain
ae76b93f07
Fixed the ID assignment for script objects and party member's items
...
when saving the map
2021-01-08 10:11:00 +08:00
NovaRain
9116596bf1
Added TagSkillBonus option to the skills ini file
...
Fixed a crash in the previous commit.
2021-01-06 11:31:07 +08:00
NovaRain
087b259b04
Added more options for tweaking some engine perks to the perks ini file
...
Added tweaks to include the perk level in the calculation of the bonus
value for "Salesman" and "Demolition Expert" perks.
2021-01-05 14:15:33 +08:00
NovaRain
bc2ed03db1
Added sfx volume reduction for objects located on a different map elev
...
Added a fix for AI weapon switching when not having enough APs
2021-01-03 10:48:50 +08:00
NovaRain
cdc06b4e6a
Added a fix to the poison handling in the engine when an NPC is under
...
the player's control.
Minor code edits.
2020-12-30 22:34:32 +08:00
NovaRain
28bba7cfef
Fix for previous commit
2020-12-27 09:32:54 +08:00
NovaRain
c829a3e753
Added support for panning sfx sounds
...
Removed the tweak that adds the city name in the description for empty
save slots (commit 63b2025 )
2020-12-26 21:58:52 +08:00
NovaRain
43a2fc93cc
Modified some of the mechanics of "interface_overlay" function
...
Changed "intface_redraw" with one argument to redraw the specified
interface window.
2020-12-25 14:51:31 +08:00
NovaRain
26a2338038
Added "interface_overlay" script function
...
* for creating an additional overlay on the top of the interface window.
(document WIP)
2020-12-23 11:58:29 +08:00
NovaRain
e0e300a91e
Added sfall_func7 and sfall_func8 new opcodes
...
Added 3 new attrType values to "get_window_attribute" function.
Minor code edits.
2020-12-22 17:03:01 +08:00
NovaRain
9052396de5
Added stereo support for SFX and speech ACM files
...
(for files at 44.1 kHz sample rate)
SFX sounds that are dependent on the gsound_compute_relative_volume_
function are excluded from the search for alternative formats.
2020-12-21 16:05:16 +08:00
NovaRain
9e9c3ed5d1
Added support for ACM files at 44.1kHz sample rate
2020-12-17 14:04:14 +08:00
NovaRain
4271241628
Renamed MPClient folder to DebugEditor
...
Renamed FalloutClient.exe to FalloutDebug.exe
Fixed a crash bug in commit 82db339 when using the debug editor.
2020-12-14 15:42:45 +08:00
NovaRain
82a57179f7
Updated some code
2020-12-13 09:38:34 +08:00
NovaRain
586e622fcc
Corrected code of some hook scripts
2020-12-13 08:46:33 +08:00
NovaRain
5ac7bfcbde
Reverted support for the D3DFMT_A8 texture format
2020-12-10 07:20:49 +08:00
NovaRain
e0d5f6a568
Removed unnecessary code in Graphics.cpp
...
Replaced the D3DFMT_A8 texture format with D3DFMT_L8.
Minor edits to documents.
2020-12-09 10:49:02 +08:00
NovaRain
4f7937314f
Changed the numbering of args in hookscripts.txt ( #345 )
...
* because arg numbers are 0-indexed for related functions.
2020-11-16 09:17:19 +08:00
NovaRain
1508d88a5e
Backported "get_ini_sections/section" functions from 4.0
...
Minor code edits.
2020-11-06 10:48:35 +08:00
NovaRain
cdeb970d4f
Backported metarule2_explosions modes from 4.1
...
Updated version number.
2020-11-05 12:13:25 +08:00
NovaRain
38a0ddb1eb
Backported "add_extra_msg_file" function from 4.1
...
Re-ordered critical table fixes in Criticals.cpp.
2020-11-03 15:10:33 +08:00
NovaRain
4b2056857b
Reformatted critical table fixes in Criticals.cpp
2020-11-01 09:28:31 +08:00
NovaRain
031faa4ae9
Fixed the "uncalled" critical tables for some critter types
...
ref: https://www.nma-fallout.com/threads/219827/
2020-10-30 22:00:43 +08:00
NovaRain
e1cec4b01d
Code refactoring for a few script functions
...
* draw_image, draw_image_scaled, interface_art_draw, get_sfall_global_int/float
2020-10-28 21:24:15 +08:00
NovaRain
66b3ee7b46
Cosmetic: renamed all module Init() and Exit()
2020-10-27 11:41:44 +08:00
NovaRain
061a3925e6
Minor edits to Message.cpp/h
2020-10-27 00:54:29 +08:00
NovaRain
c6fa6bac30
Cleaned up define_lite.h and command_lite.h
...
Improved/corrected the fix for function args in commit e59af7e8 .
Minor code edits.
2020-10-26 11:25:31 +08:00
NovaRain
0988004245
Fixed the error handling in win_fill_color
...
Some code fixes.
2020-10-25 08:07:49 +08:00
NovaRain
e59af7e88a
Fixed function args not being reset properly
...
Removed redundant safeguard/manual arg init in various script functions.
2020-10-25 01:05:34 +08:00
NovaRain
7cf1b60b38
Backported the extended functionality of ExtraGameMsgFileList from 4.x
2020-10-24 21:23:04 +08:00
NovaRain
a8919367ea
Added "win_fill_color" script function
2020-10-24 13:54:43 +08:00
NovaRain
0a44f7118a
Added support for drawing PCX images to draw_image, draw_image_scaled, and interface_art_draw
...
Fixed bug in TalkingHeads.cpp.
2020-10-24 00:55:40 +08:00
NovaRain
cda56aca7d
Fixed the macro guard in command_lite.h and added two macros
2020-10-21 22:36:59 +08:00
NovaRain
761124aaf4
Code edits to PartyControl.cpp
2020-10-18 07:15:57 +08:00
NovaRain
8e6a961fba
Renamed elements in PerkInfo/TraitInfo structs
...
Implemented StatFormula struct from 4.x for Stats.cpp.
Implemented DudeState struct from 4.x for PartyControl.cpp.
2020-10-15 13:12:15 +08:00
NovaRain
cca0fe0cb6
Fixed and improved the code in Graphics.cpp
2020-10-15 09:30:39 +08:00
NovaRain
180761c489
Added the ability to change the poison level for critters
2020-10-12 20:47:05 +08:00
NovaRain
540b68070b
Corrected code in Arrays.cpp
2020-10-12 11:03:55 +08:00
NovaRain
466b79f5e8
Code optimization for array expression (from 4.x)
2020-10-11 10:55:58 +08:00
NovaRain
b1f847afbc
Code edits to Graphics.cpp according to 4.x changes
...
Minor edits to MetaruleExtender.cpp and notes.txt.
2020-10-11 01:09:31 +08:00
NovaRain
31fbddb612
Code correction in FalloutEngine.cpp
...
Updated global shader example files.
2020-10-09 08:57:46 +08:00
NovaRain
0c547da134
Backported "car_gas_amount" and "set_car_intface_art" functions from 4.0
...
Added prefixes to some functions (fake classes)
2020-10-08 22:14:32 +08:00
NovaRain
cc5561d3d6
Updated example mod scripts
2020-10-08 15:34:41 +08:00
NovaRain
66ff811bcd
Added "combat_data" script function
...
Added a new argument to HOOK_COMBATDAMAGE.
Removed the check for valid objects from get/set_object_data functions.
Some code fixes/edits.
2020-10-08 13:50:37 +08:00
NovaRain
27963fd064
Fixed broken Print() script function
...
Fixed the background image of the character portrait on inv/char screens.
Renamed "print_text" to "interface_print".
2020-10-06 11:48:31 +08:00
NovaRain
dc88193ff6
Added "print_text" script function
2020-10-05 21:05:06 +08:00
NovaRain
2c36ad9a2a
Removed InterfaceDontMoveOnTop from ddraw.ini (always enabled)
...
Added a fix to prevent toggling the cursor for a Transparent window.
2020-10-05 10:26:39 +08:00
NovaRain
9d34a4c70a
Added support for transparent interface windows ( #25 )
2020-10-03 21:01:54 +08:00
NovaRain
548039d5bc
Fixed FrmFile struct in the previous commit
...
Finished the code refactoring in InterfaceOps.hpp.
2020-09-29 09:04:27 +08:00
NovaRain
49c4bb2479
Some code refactoring
...
Added a value of 2 to TextureFilter option.
2020-09-28 12:07:12 +08:00
NovaRain
75b275159f
Added "interface_art_draw" script function
...
Added an argument to "intface_redraw" function to redraw all interfaces.
2020-09-26 22:17:59 +08:00
NovaRain
52f42af913
Changed the behavior of saving/restoring hook arguments
...
(no need to specify the number of args when executing a nested hook)
Reverted the change of argCount in some hooks.
Disabled an obsolete fix for MultiHexPathingFix.
Simplified the code of draw_image/draw_image_scaled script functions.
2020-09-25 00:12:22 +08:00
NovaRain
b195a8ab02
Moved all engine function defines to new FalloutFuncs_def.h
...
(similar to the way how 4.x handles engine functions)
Added the ability to get Automap window pointer.
Reorganized some code to prepare for later commits.
2020-09-24 15:22:32 +08:00
NovaRain
796e834a9d
Some edits to the previous commit
...
Minor edits to some code.
2020-09-23 23:07:45 +08:00
NovaRain
df4e847c59
Changed argCount to be set right after HookBegin in some hooks
...
* to avoid possible unexpected issues.
2020-09-23 15:33:42 +08:00
NovaRain
0a48ed3048
Added a new argument to HOOK_TOHIT ( #339 )
...
Added hook type 3 to HOOK_WITHINPERCEPTION (when AI selects a target)
Extended the upper limit of set_pickpocket_max and set_hit_chance_max
script functions to 999.
Added a fix for combat_is_shot_blocked_ not taking the flags of critters
in the line of fire into account.
Minor edits to ASM code of some hooks.
2020-09-22 22:16:57 +08:00