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
NovaRain
7414c8a361
Refactored ASM code of some hooks using 4.x as ref
...
Code edits to DisplayKarmaChanges.
Implemented the buf_to_buf_ replacement function from 4.x.
2020-09-21 21:22:21 +08:00
NovaRain
90a9ee5f15
Added loading multiple shader files for GlobalShaderFile option
...
Added a sharpen filter file as a global shader example.
Set TextureFilter to be enabled by default.
2020-09-21 13:03:05 +08:00
NovaRain
314100f231
Added TextureFilter option (restored from sfall 2.x)
2020-09-20 10:07:16 +08:00
NovaRain
9c92e2f487
Reorganized the function defines in FalloutEngine.cpp/h
...
* in the same way as 4.x's Functions_def.h.
Replaced some ASM blocks with function defines.
2020-09-19 21:34:14 +08:00
NovaRain
2d3a4d6c34
Corrected talking heads code of Use32BitHeadGraphics
...
Minor code correction.
2020-09-19 00:39:55 +08:00
NovaRain
a936f35c80
Refactored code in Elevators.cpp to be like 4.x
2020-09-16 14:25:21 +08:00
NovaRain
3479bc6893
Backported KeepWeaponSelectMode from 4.x
...
Minor edits to code and documents.
2020-09-16 11:09:55 +08:00
NovaRain
ff1aac40f5
Fixed temporary arrays being cleared when flushing the keyboard buffer ( #337 )
...
Added a message about failed initialization of the game and exit if an error occurs.
2020-09-15 11:34:26 +08:00
NovaRain
6142d95a60
Graphics: improved the performance of DX9 mode
2020-09-15 10:33:33 +08:00
NovaRain
c4fc3d2c8b
Graphics & Movies refactoring (WIP/unfinished)
2020-09-13 22:33:30 +08:00
NovaRain
40cca2452d
Reverted part of changes in commit 0d5c88f
...
* InterpretGetValue could cause unexpected behavior in global scripts.
2020-09-13 18:37:55 +08:00
NovaRain
33a5c7428a
Updated Ammo INI Loader example script mod
...
* now the INI will be read only once on script initialization, not
always being re-read on each map load.
2020-09-10 14:55:11 +08:00
NovaRain
55e935e18c
Added the original Fallout 1 behavior to FastShotFix
2020-09-06 08:45:17 +08:00
NovaRain
398ad650b9
Added a fix to the weapon check in the Fast Shot trait
...
* changed range check to type+range check, the same fix is also applied
to FastShotTraitFix.
Added more info to the description of FastShotFix option.
2020-09-05 10:47:53 +08:00
NovaRain
9c7f34ffb2
Fixed typo in sfall.h ( #334 )
2020-09-03 21:06:01 +08:00
NovaRain
6a2a7ee82f
Fixed EncounterTableSize option ( #333 )
...
* the encounter messages were still limited to 50 entries per table when
the value for encounters is set to greater than 50.
Fixed building the path to multihex objects.
2020-09-03 14:24:00 +08:00
NovaRain
849ae49bfb
Tweaked the field of view check in ObjCanSeeObj_ShootThru_Fix
...
And fixed a bug when the target critter has the ShootTrhu flag set
(cannot be seen by the source)
Minor edits to some comments in previous commit.
2020-09-02 14:21:57 +08:00
NovaRain
ed9c6c7508
Added support for ACM audio file playback to soundplay script function
...
(with volume control)
Added a volume control to reduce the volume for play_sfall_sound.
Added descriptions and constant defines to documents.
Some code optimization.
Updated version number.
2020-09-01 16:12:00 +08:00
NovaRain
57f4deb5cf
Minor edits to Interface.cpp and ddraw.ini
2020-08-22 10:51:07 +08:00
NovaRain
c6da5169b8
Minor edits to HookScripts.cpp based on 4.x changes
2020-08-21 12:57:03 +08:00
NovaRain
72f3abe3c9
Moved DeathScreenFontPatch code to Interface.cpp
...
Added a note about DeathScreenFontPatch in ddraw.ini.
Some code edits in BugFixes.cpp and DamageMod.cpp.
2020-08-21 12:42:46 +08:00
NovaRain
5d12d815dd
Added DeathScreenFontPatch option
...
* use the normal font instead of bitmap font for death screen subtitles.
Attempted to fix the melee damage display for some extreme cases when
BonusHtHDamageFix=1 and DisplayBonusDamage=0.
2020-08-20 13:48:41 +08:00
NovaRain
502a5764a5
Updated global.fx and withinperception example script
...
Fixed some code.
2020-08-19 15:21:53 +08:00
NovaRain
13976a5278
Added a fix to limit the maximum distance for knockback animation
...
* 20 hexes at max. This does not affect the knockback value in
Combat Damage hook, only the animation part.
Backported AlwaysFindScripts option from 4.x for global scripts.
2020-08-18 13:45:49 +08:00
NovaRain
a35487d0aa
Added a fix to prevent the player from leaving the map during death anim
...
* when the death animation causes the player to cross an exit grid.
Fixed the height of the black background for the subtitles on death
screens when using the hi-res patch.
Added MakeJumps template to SafeWrite.h and devlog_f to Logging.cpp.
Minor code edits.
2020-08-17 15:11:16 +08:00
NovaRain
f1102afbc3
Fixed the use of #pragma pack() directives for structures
2020-08-16 11:15:37 +08:00
NovaRain
4071a65f73
Replaced all 'DWORD' script pointers with the proper 'TProgram*'
...
Added more engine function wrappers.
2020-08-15 10:02:36 +08:00
NovaRain
8d813a952e
Fixed and improved the behavior of nested timer events in global scripts
...
Added a fix to prevent the execution of critter_p_proc and game events
when playing movies.
Added a debug message about a corrupted proto file.
Some minor code/document edits.
2020-08-14 21:31:06 +08:00
NovaRain
c1b7e729a8
Reorganized KeyPress hook & related code
...
* now it should work in exactly the same way as 4.x.
Improved the key press behavior for Debug Editor.
Implemented ScriptListInfoItem struct from 4.x.
2020-08-14 00:39:09 +08:00
NovaRain
12070f5e3d
Fixed the playback of additional movies defined in the MovieXX options ( #330 )
...
Added the keyboard buffer cleanup function to metarule3.
2020-08-13 15:22:20 +08:00
NovaRain
63b2025468
Added the city name in the description of a save slot by default
...
Corrected some code.
2020-08-13 14:44:09 +08:00
NovaRain
44ad268aed
Added a fix to remove floating text after moving to another elevation
...
* also update black edges of the map (HRP bug, #282 )
2020-08-09 12:29:15 +08:00
NovaRain
2305128adc
Changed the behavior of ObjCanSeeObj_ShootThru_Fix
...
* now the critter can only see through objects in front of it.
2020-08-08 11:52:17 +08:00
NovaRain
112c931ea3
Added a patch to allow setting custom colors for object outlines
...
Added a tweak to ObjCanSeeObj_ShootThru_Fix to allow critters to see
through other critters.
Fixed the internal variable for Horrigan encounter always being reset if
DisableHorrigan=0 (commit 74d3cb9 )
Corrected some code.
2020-08-05 16:18:19 +08:00
NovaRain
8e3ae04aec
Changed the behavior for replacing art aliases for critters
...
Added ANIM_charred_body/ANIM_charred_body_sf animations to art aliases
(#323 )
Minor code edit to OverrideMusicDir (nop the rest to avoid leaving
garbage bytes)
Renamed some functions in Worldmap.cpp.
2020-08-03 14:41:43 +08:00