NovaRain
35d2491bcb
Added a fix for AI behavior for "Snipe" distance preference
...
Added a check for for the weapon range and the distance to the target
when AI is choosing weapon attack modes.
2020-04-28 10:55:56 +08:00
NovaRain
ece76ee726
Changed the fix for AI target selection in commit f731de7
...
* NPCs will reload the weapon in the same turn (and attack if have
enough AP left) if weapon is empty while selecting targets.
Misc code edits.
2020-04-27 14:25:40 +08:00
NovaRain
d6f4a23527
Fixed AllowDShowSound=2 not working
...
Limited NumSoundBuffers to the max of 32.
Fixed replacing Body_Torso with Body_Uncalled (from commit 7e31713 )
Corrected the code in the previous commit.
2020-04-23 12:33:00 +08:00
NovaRain
045ad2f5d7
Added a tweak to the miss message in combat
...
* if the main target has Flat flag set, remove the message about hitting
another object.
Minor code edits to DebugEditor.cpp & MiscPatches.cpp.
2020-04-22 11:32:03 +08:00
NovaRain
13703f1a3b
Improved the fix for placing PID_CORPSE_BLOOD obj on the lower layer
...
(didn't work correctly after re-entering the map.)
Fixed CorpseDeleteTime not setting the timer correctly.
2020-04-21 10:54:35 +08:00
NovaRain
58bb77d79f
Fixed GvarID option behavior in Drugs.ini
...
Reverted incorrect code change of SpeedPatch.cpp in previous commit.
Some code edits to Explosions.cpp and Perks.cpp.
2020-04-19 09:58:47 +08:00
NovaRain
229371e4ab
Added use_item_on_dude macro to sfall.h
...
Various code edits:
* Implemented more HookCalls/MakeCalls/SafeWriteBatch in code.
* Moved return/jump address consts into their respective functions.
* Changed for-loop with iterators to use pre-increment.
2020-04-18 21:19:22 +08:00
NovaRain
1884e279c7
Fixed ReloadWeaponKey for using any non-weapon item ( #84 )
2020-04-18 10:44:17 +08:00
NovaRain
e81d79e43e
Fixed "loot_obj" script function
2020-04-18 08:57:02 +08:00
NovaRain
f731de7a25
Fixed AI target selection for no ammo or target out of range cases
2020-04-18 08:33:08 +08:00
NovaRain
0d6bc33279
Re-fixed automatically ending combat
...
Updated version number.
2020-04-18 07:28:00 +08:00
NovaRain
359c79a854
Fixed NPCs not fully reloading a weapon sometimes
...
* NPCs use only one box per reload. If the weapon has more ammo
capacity than a box of ammo (e.g. miniguns and BB gun), it'll take
several tries for them to fully reload it.
2020-04-05 08:19:31 +08:00
NovaRain
41652ec459
Moved static addresses into respective funcs in BugFixes & MiscPatches
2020-04-03 23:14:23 +08:00
NovaRain
ca4e506f1d
Some code correction in BugFixes
...
Minor edits to documents.
2020-04-03 12:16:09 +08:00
NovaRain
6e05ca65fd
Some code/document edits
2020-04-02 11:32:22 +08:00
NovaRain
873d9f81c2
Edited the description of RadEffectsRemovalMsg option
2020-04-01 22:09:46 +08:00
NovaRain
0978769dfc
Fixed loading savegame for "NPC turns into a container" bug fix
...
Added RadEffectsRemovalMsg option for radiation fixes.
Some code/document correction.
2020-03-31 21:51:41 +08:00
NovaRain
29608bb51c
Added ActiveGeigerMsgs option and radiation fixes
...
Changed "Radiated" to be highlighted in red color when the player is
under the influence of negative effects of radiation.
2020-03-30 21:06:11 +08:00
NovaRain
ba911375a9
Fixed a crash when using older versions of HRP
...
Fixed potential crash/bug when alt-tab out of game and get back.
Edited OnDeath hook code to minimize its hook points to the engine.
Minor edits to ddraw.ini.
2020-03-26 14:06:46 +08:00
NovaRain
ce5c65d37f
Fixed stuttering when playing avi movies
...
Fixed a crash when playing mve movies without the hi-res patch.
Minor edits to ddraw.ini and function notes.txt.
2020-03-24 10:53:00 +08:00
NovaRain
ffd397d9aa
Added performance patches, some code moved to MiscPathes module
...
Minor edits to ddraw.ini.
2020-03-22 09:00:25 +08:00
NovaRain
349cffac0c
Added a new "fullscreen windowed" DX9 mode
...
Added saving the position of the game window to ddraw.ini
2020-03-20 12:24:48 +08:00
NovaRain
dfdcd86134
Refactored ASM code of script opcode handlers
...
Included call_offset_xx functions for AllowUnsafeScripting=2 (#288 )
2020-03-19 12:55:01 +08:00
NovaRain
accdeae6ad
Added a new value to AllowUnsafeScripting
...
* for disabling the memory address check in unsafe functions (#288 )
2020-03-17 13:26:02 +08:00
NovaRain
288a8fedfd
Improved and fixed the playback of alternative sound files
...
Added a new mode to play_sfall_sound script function.
Minor code corrections.
2020-03-17 13:06:34 +08:00
NovaRain
eb777e6d19
Fixed the return value of play_sfall_sound function
...
* before it returned a raw pointer instead of the ID number of the
played sound.
2020-03-12 11:53:45 +08:00
NovaRain
dd2469b78f
Moved allowDShowSound code from Movies to Sound module
2020-03-12 10:03:43 +08:00
NovaRain
8d375dd81a
Refactored ASM code of script handlers in Misc.cpp
...
Minor code edits.
2020-03-07 14:21:12 +08:00
NovaRain
7f087d1c30
Minor code edits to AI module
2020-02-29 18:58:38 +08:00
NovaRain
e7e5da866a
Added a new value to the 'mark_state' arg of mark_area_known function
...
* 3 - uncovers locations without highlighting their sub-tiles.
(Fallout 1 behavior)
2020-02-29 08:36:30 +08:00
NovaRain
ac0b0ef7ef
Fixed Fill_W not uncovering all tiles to the left ( #287 )
2020-02-28 07:41:49 +08:00
NovaRain
c2626de4fa
Fixed a crash or animation glitch of the critter in combat (beta fix)
...
* when an explosion from explosives and the AI attack animation are
performed simultaneously.
2020-02-25 11:38:03 +08:00
NovaRain
e4d395224a
Minor code fix for Graphics.cpp
...
Added notes/correction to hookscripts.txt.
2020-02-22 15:49:13 +08:00
NovaRain
4487bbfeba
Fixed the player's money not being displayed after barter ( #286 )
...
Restored TownMapHotkeysFix option.
Updated version number.
2020-02-22 15:31:17 +08:00
NovaRain
e5eb5cc275
Minor code improvement in Graphics.cpp
2020-02-09 09:23:50 +08:00
NovaRain
87c4dd34f1
Updated stdafx.h and other code/doc files
2020-02-08 08:41:04 +08:00
NovaRain
7848e1612b
Reverted part of changes in the previous commit
2020-02-07 19:16:37 +08:00
NovaRain
537bea45c0
Edited some wording in ddraw.ini and Enums.h
2020-02-07 10:03:16 +08:00
NovaRain
a3f22b67d8
Fixed trying to loot corpses with the "NoSteal" flag ( #280 )
2020-02-06 10:45:40 +08:00
NovaRain
c079d69291
Added the description for 'div' operator to notes.txt
2020-02-05 23:19:36 +08:00
NovaRain
fc78983f77
Replaced all MAXINT with INT_MAX in QuestList.cpp ( #279 )
...
Added WINVER and _WIN32_WINNT defines to stdafx.h.
2020-02-05 16:15:40 +08:00
NovaRain
9122fcaf0c
Fixed playing game movies with width less than 640px in DX9 mode
...
Fixed palette updating.
2020-02-05 09:46:24 +08:00
NovaRain
aeb7ab4e32
Some code edits to ExtraSaveSlots.cpp
2020-02-04 10:58:14 +08:00
NovaRain
1f1c39a4bd
Simplified the code in HeroAppearance.cpp
2020-02-03 11:21:43 +08:00
NovaRain
53b407b8a5
Added DivisionOperatorFix option for signed integer division ( #278 )
...
* it changes the behavior of vanilla division operator to use signed
integer division. Before it used signed division for floats but
unsigned for integers.
Added a new "div" operator for unsigned integer division.
Moved mathematical script functions from Utils.cpp to new Math.cpp.
Added include guard to sfall.h and main.h in modders pack.
2020-02-02 21:02:06 +08:00
NovaRain
eb204f0a04
Fixed the barter button on the dialog window (from rotators repo)
...
* when first entering the dialog, it didn't animate on click.
2020-02-02 15:41:09 +08:00
NovaRain
b5b2ef3b97
Reverted part of changes in previous commit
2020-02-02 13:49:32 +08:00
NovaRain
c61fe596b1
Fixed palette in DX9 mode
2020-02-01 14:07:38 +08:00
NovaRain
1ac911a7c9
Fixed the timer event execution in global scripts
2020-01-31 01:14:00 +08:00
NovaRain
19f4901328
Small optimization for receiving/passing script arguments
...
* combined related engine interpreter functions into a single function
for aligning the compiled ASM code better.
Minor changes to some other code and documents.
2020-01-31 00:24:58 +08:00
NovaRain
90b547a472
Rewrote and rename "dialog_box" to "message_box"
...
Added support for '\n' control character to create_message_window.
Fix the playback of the speech sound file for the death screen.
2020-01-28 13:01:32 +08:00
NovaRain
d812059030
Added "dialog_box" script function
...
Added a new attrType value to "get_window_attribute" function.
2020-01-27 20:41:21 +08:00
NovaRain
fd11a5736e
Fixed the timing of setting some game mode flags
...
* now WORLDMAP, PIPBOY, INVENTORY, INTFACEUSE, and INTFACELOOT are
toggled after creating/before deleting their corresponding interface
windows, same goes for triggering GameModeChange hook. (#276 )
Fixed the array out of bounds bug in Skills.cpp.
2020-01-27 10:38:47 +08:00
NovaRain
863a232703
Added "set_town_title" script function
...
* for displaying custom title in floating text over a town.
Corrected some code.
2020-01-25 15:47:57 +08:00
NovaRain
869b3cf4bd
Added some engine variables as fo::var constants
...
Removed redundant PlayAcm() from HeroAppearance.cpp.
2020-01-24 09:54:02 +08:00
NovaRain
27233d19a2
Removed TownMapHotkeysFix from ddraw.ini (always enabled)
...
Also move its code from Worldmap.cpp to BugFixes.cpp.
2020-01-23 23:13:50 +08:00
NovaRain
b69640f09a
Removed DisplaySecondWeaponRange from ddraw.ini (always enabled)
...
Minor edits to some code and documents.
2020-01-23 20:31:58 +08:00
NovaRain
d387e009ee
Added "get_window_attribute" script function ( #276 )
2020-01-22 21:13:22 +08:00
NovaRain
56f2ea46c2
Added a flashing icon to the Horrigan encounter
...
Minor edits to some code and documents.
2020-01-22 10:20:32 +08:00
NovaRain
f57564c9ed
Expanded the functionality of Fallout1Behavior
...
* calling endgame_movie now plays Movie11 or Movie12 depending on
the player's gender before the credits.
Added new flags to force_encounter_with_flags function.
2020-01-21 10:14:03 +08:00
NovaRain
dc4c4c2524
Added a blinking icon to force_encounter/with_flags functions
...
* currently an icon is always shown for scripted force encounters.
2020-01-20 11:50:00 +08:00
NovaRain
957ed92498
Added a new hook: HOOK_ENCOUNTER
...
Added procedure and macros for unsigned integer comparison to lib.math.h.
2020-01-19 12:18:14 +08:00
NovaRain
bf4c47d1c0
Added "set_terrain_name" script function
...
Fixed minor bugs in WorldMapTerrainInfo, TravelMarkerStyles features.
Minor edits to Console.cpp, Logging.cpp.
2020-01-18 17:28:05 +08:00
NovaRain
160a5b6053
Simplified the code of travel markers and string_to_case function
...
Added new addrs to CheckAddress.cpp.
Minor edits to some code and documents.
2020-01-17 21:53:41 +08:00
NovaRain
201fa1da0c
Improved the avi playback function
2020-01-17 21:42:01 +08:00
NovaRain
d1868d2eaf
Combined tolower/toupper in previous commit to "string_to_case"
2020-01-16 20:33:36 +08:00
NovaRain
dd7613c910
Added "tolower", "toupper" script functions
...
Renamed TravelMarkerDots to TravelMarkerStyles.
2020-01-16 09:34:53 +08:00
NovaRain
14e2ee2064
Fixed crashes in previous commit
...
* entering worldmap after teleport between maps.
* when clicking on worldmap when camera is away from player indicator.
2020-01-13 10:15:39 +08:00
NovaRain
39a89d50a1
Implemented TravelMarkerDots to replace TravelMarkerLength/Spaces
...
(from Rotators repo)
2020-01-12 20:22:38 +08:00
NovaRain
9dea6911a6
Moved the Combat Block patch from AI.cpp to new CombatBlocked.cpp
...
Added filter folders for the project files.
Updated credits.
Correction on ddraw.ini.
2020-01-10 10:42:06 +08:00
NovaRain
fece180f0b
Fixed duplicate critters being added to the target list for AI
...
Edited hookscripts.txt to mention the fix.
Tweaked the default settings for world map travel markers.
Some code correction.
2020-01-09 11:38:44 +08:00
NovaRain
af049eaa38
Added WorldMapTerrainInfo option for toggling the display
...
Minor code refactoring in MiscPatches/PlayerModel modules.
Updated compiler document.
2020-01-08 16:50:49 +08:00
NovaRain
e0305983de
Added sslc documents to repo
...
Updated credits.
Minor edit to ddraw.ini.
2020-01-06 14:12:29 +08:00
NovaRain
323738f584
Rewrote DialogGenderWords option to allow more than one word ( #274 )
...
Re-fixed setting DIALOG game mode flag.
2020-01-06 00:20:22 +08:00
NovaRain
310a0df8f6
Fixed the timing of setting DIALOG game mode flag
...
(also fixed the issue of DialogGenderWords mentioned in previous commit)
Fixed AI disposition values in define_extra.h.
Minor code edits to world map travel markers.
2020-01-05 09:55:28 +08:00
NovaRain
db4652c105
Added DialogGenderWords option to specify gender words for dialog msg
...
* they will be displayed depending on the player's gender.
* currently does not work for messages constructed with message_str.
2020-01-04 22:59:11 +08:00
NovaRain
5d9d11b4f5
Changed terrain type to not be displayed when in a location circle
...
Minor code correction.
2020-01-04 10:23:38 +08:00
NovaRain
756356dbf2
Added displaying terrain types on the world map
...
(from Rotators repo)
2020-01-03 10:12:03 +08:00
NovaRain
fad2928fbf
Added customization options to WorldTravelMarkers
2020-01-02 11:09:47 +08:00
NovaRain
85e70fe056
Implemented drawing red dots while traveling on the world map
...
(from rotators/Fo1in2#3 by ghost22238)
2020-01-02 00:38:01 +08:00
NovaRain
1af1eb2c70
Reverted the change on x offset in previous commit
2019-12-29 08:41:02 +08:00
NovaRain
3a4a9d7240
Increased the width of the total weight display in the inventory
...
(moved from the CritterInvSizeLimitMode option)
Updated version number and year.
Minor format edits to some code and README.md.
2019-12-29 01:55:59 +08:00
NovaRain
b984568b32
Added StrNormalizePath() to Utils.cpp.
2019-12-25 09:15:35 +08:00
NovaRain
71803ff06c
Added a comment to Handlers\Utils.cpp
2019-12-24 20:50:52 +08:00
NovaRain
7cef7e8e54
Some edits to hookscripts.txt & function notes.txt
2019-12-24 00:55:31 +08:00
NovaRain
7990d230f2
Fixed the return value/object for HOOK_TARGETOBJECT
2019-12-23 23:41:11 +08:00
NovaRain
cb9f759d71
Replaced _stricmp in previous commit with strcmp.
...
Minor edits to some code.
2019-12-16 15:31:50 +08:00
NovaRain
7ed8dd286c
Fixed the path to load global shaders in the previous commit
...
* when DataLoadOrderPatch is disabled, the path was set to
"sfall.dat\shaders\".
2019-12-15 09:56:47 +08:00
NovaRain
9f3299b47a
Restored loading global shaders at game start from pre-3.0
...
Added GlobalShaderFile option to ddraw.ini.
Added an example global shader file to modderspack.
2019-12-14 10:49:08 +08:00
NovaRain
a68498453c
Edited the description of hook/functions in the previous commit
...
Rewrote ASM code for tile_under_cursor script function.
2019-12-14 00:43:09 +08:00
NovaRain
0bf9a322c1
Corrected code and renamed hook/functions from the previous commit
2019-12-13 10:49:24 +08:00
NovaRain
a325dd18ea
WIP - Added a new hook: HOOK_TARGETOBJ
...
Added "get_tile" and "get_objects_at_radius" script functions.
* their names are not final and documents are missing.
2019-12-11 15:52:03 +08:00
NovaRain
439de4aecc
Re-fixed the return value of get_script function
2019-12-09 10:18:29 +08:00
NovaRain
702e62e610
Rewrote remove_script/set_script functions in C++
...
Fixed the return value of get_script function.
2019-12-08 23:16:56 +08:00
NovaRain
ddf0ec7085
Added missing code for commit b149aaa
...
Some edits to script related namesapce in Enums.h.
2019-12-08 07:30:14 +08:00
NovaRain
b539cab67d
Change container from Map to Array for sfall opcodes
2019-12-07 09:54:40 +08:00
NovaRain
b149aaa00c
Changed the behavior of IniConfigFolder option
2019-12-07 09:41:06 +08:00
NovaRain
a5bcfa8a6b
Re-fixed the previous commit
2019-12-05 09:38:37 +08:00
NovaRain
80cf1a9ca7
Fix for printing game messages to debug log
2019-12-04 13:04:57 +08:00
NovaRain
4cffc455e2
Code refactoring for opcodes/functions
2019-12-04 10:39:35 +08:00