NovaRain
1a108cade5
Implemented MakeCalls function to reduce code duplication.
...
Updated version number.
2018-03-16 11:32:23 +08:00
NovaRain
9e28f8bdfd
Lined up some code in MiscPatches.cpp.
2018-02-12 21:07:02 +08:00
NovaRain
b2894268f6
Reverted item highlighting mod to the previous status (commit 90485a205a). #132
2018-01-28 18:15:35 +08:00
NovaRain
b3e2b8b5b8
Rearranged and simplified gl_highlighting.ssl from the previous commit a bit.
2018-01-17 21:22:37 +08:00
NovaRain
9475b8c482
Fixed add_mult_objs_to_inven only adding 500 of an object when the value of "count" argument is over 99999. #129
2018-01-17 07:36:05 +08:00
NovaRain
8b356b1213
Fixed broken ExtraGameMsgFileList option. #127
2018-01-11 07:42:50 +08:00
NovaRain
90485a205a
Changed item highlighting mod to only highlight lootable corpses. #126
2018-01-07 21:37:26 +08:00
NovaRain
d5be2fdc9b
Made sure the value of player's base EMP DR is set correctly.
2018-01-02 23:22:45 +08:00
NovaRain
a705341e02
Updated version number and the year.
2018-01-02 10:16:32 +08:00
NovaRain
ca3f59ad1e
Fixed a bug in NPC combat control that kept increasing the perk rank of Gecko Skinning after the combat ended.
...
Condensed the code in ApplyHeaveHoFix a bit.
2018-01-02 09:58:30 +08:00
NovaRain
d388a5c3bb
Fixed player's base EMP DR isn't properly initialized when creating a new character and then starting the game.
2017-12-15 07:32:18 +08:00
NovaRain
9b808cd008
Changed sneak_success to call is_pc_sneak_working_ engine function, which takes player's current sneaking status into account as well, instead of only returning the result of last sneak attempt.
2017-12-05 10:22:35 +08:00
NovaRain
fd91be7ea2
Replaced data type hex values with proper VAR_TYPE_* defines for code readability.
2017-12-03 23:54:39 +08:00
NovaRain
4fdd1d3cd8
Added missing entry of block_combat script function in opcode list.
2017-12-03 02:36:00 +08:00
NovaRain
9cb2d3df3e
Added the damage type offset of weapon proto to define_extra.h.
2017-11-27 14:14:31 +08:00
NovaRain
08242d77d5
Fixed a typo in hookscripts.txt.
2017-11-27 12:24:22 +08:00
NovaRain
68d0a3e894
Changed the if condition for ProcessorIdle to make sure out-of-bounds values not resulting in unexpected but valid values (ref. commit 50c91db5ea)
2017-11-26 02:08:09 +08:00
NovaRain
16ff0e9ca6
Added a new example mod gl_autodoors (by Mr.Stalin) to modderspack. #19
2017-11-08 21:23:15 +08:00
NovaRain
218ba3004c
Tweaked the way DebugMode works, now only DebugMode=2 sends debug output to a debug.log file. Any other non-0 value sends debug output to the screen. #123
2017-11-07 10:46:24 +08:00
NovaRain
8473ce5210
Replaced some SafeWrite* usages in old code with corresponding HookCall/MakeCall/MakeJump for code readability.
2017-11-06 15:13:05 +08:00
NovaRain
38a3dba476
Added description and define of display_stats to notes.txt and sfall.h.
2017-11-06 14:03:22 +08:00
NovaRain
9c1d439153
Added "display_stats" script function #113
2017-11-06 10:16:02 +08:00
NovaRain
bc38a02508
Enabled mouse scroll control in barter and loot screens when the cursor is hovering over other lists, also enabled scrolling through the display monitor (from Crafty) #120
...
Rearraged the code style in dinput.cpp.
Updated version number.
2017-10-25 11:50:37 +08:00
NovaRain
94fdfb49ef
Fix crash when calling partyMemberGetCurLevel_ on a critter that has no data in party.txt.
...
Updated version number.
2017-10-18 14:54:53 +08:00
NovaRain
74d496845b
Added compiled gl_partycontrol script from the previous commit.
2017-10-02 10:04:56 +08:00
NovaRain
1bde433a16
Added Gecko Skinning perk to controlled critters if player has the perk, to make geckos killed by controlled critters also have gecko skins in their inventory.
2017-10-02 09:54:47 +08:00
NovaRain
f0f4948856
Added LoadHeroAppearance() back to NewGame_After in LoadGameHook.cpp.
2017-09-19 23:04:35 +08:00
NovaRain
b4168fe934
Reverted LoadGame_hook to previous revision and changed EndLoadHook to only call LoadHeroAppearance (attempted to fix issue #117 and #94 )
...
Removed redundant LoadHeroAppearance calling.
2017-09-19 11:58:41 +08:00
NovaRain
848f29b468
Added descriptions for the variables in Perks.ini.
2017-09-12 15:38:07 +08:00
NovaRain
bf1da72def
Implemented script procedures: combat_is_starting_p_proc/combat_is_over_p_proc (from Crafty) #107
2017-09-01 09:58:25 +08:00
NovaRain
75909e688e
Fixed the double damage effect of Silent Death perk not being applied to critical hits (from Crafty)
2017-08-21 22:56:06 +08:00
NovaRain
394000fa2a
Merge branch 'feature/cursor_mode' into develop
2017-08-21 21:39:47 +08:00
NovaRain
ad17773ace
Fixed incorrect argument description for get/set_proto_data in sfall opcode list.txt.
...
Removed incorrect PROTO_CR_FLAGS value in define_extra.h (was actually critter's IN), and renamed PROTO_CR_ACTION_FLAGS to its correct name #112
2017-08-21 11:33:04 +08:00
NovaRain
85cdd8973e
Fixed the incorrect description in HOOK_COMBATDAMAGE.
2017-08-19 08:49:16 +08:00
NovaRain
85bcf82c1e
Unified the indent style (3 spaces) in SSL library and removed trailing spaces.
2017-08-18 09:53:17 +08:00
NovaRain
6c65d8fe79
Added descriptions for get/set_cursor_mode.
...
Added defines for cursor modes.
2017-08-17 23:54:29 +08:00
NovaRain
34eaddebb8
Added script functions get/set_cursor_mode #108
...
Removed "beta" from version string.
2017-08-14 11:49:41 +08:00
NovaRain
7989da8bfa
Added missing define and description for item_weight.
2017-08-13 11:45:12 +08:00
NovaRain
012418cd59
Two bug fixes from Crafty:
...
1. Fixed the displayed message when the attack randomly hits a target that is not a critter and has a script attached.
2. Fixed damage_p_proc being called for misses if the target is not a critter.
2017-08-07 13:21:13 +08:00
NovaRain
0a4e0cb755
Fixed Bonus Move APs being replenished when you save and load the game in combat (from Crafty)
2017-07-26 21:49:30 +08:00
NovaRain
fc930ff7fb
Added a note for argnum in set_sfall_arg().
...
Fixed incorrect set_sfall_arg usage in the example.
Removed a redundant line in sfall opcode list.txt.
2017-07-25 23:10:14 +08:00
NovaRain
6a0a93836e
Added the description for real_dude_obj.
2017-07-11 12:08:46 +08:00
NovaRain
e7e286013f
Replaced hs_*.int scripts in example mods with normal global scripts with register_hook.
2017-07-06 21:01:35 +08:00
NovaRain
f0e93450f6
Minor format edits to sfall.h and LoadGameHook.cpp.
2017-06-22 09:44:14 +08:00
NovaRain
46ea2fb265
Added Attack Type argument for HOOK_COMBATDAMAGE (from Crafty) #100
2017-06-14 12:39:33 +08:00
NovaRain
35d8052098
Minor edits to ddraw.ini.
2017-06-02 11:49:54 +08:00
NovaRain
abb71a1a1f
Fixed incorrect info in sfall function notes.txt.
2017-05-31 09:25:44 +08:00
NovaRain
35d397c891
Added DontTurnOffSneakIfYouRun option to prevent the player from running while sneaking without Silent Running perk (from Crafty)
...
Added sfall log text for DisablePipboyAlarm.
2017-05-26 10:36:14 +08:00
NovaRain
92b010f362
Added check for sfall version for gl_partycontrol and gl_npcarmor.
...
Changed version string because sfall 4.0 will be released in 'beta' stage first.
Minor edits to some documents.
2017-05-23 22:28:42 +08:00
NovaRain
579cbd7543
Re-removed CityRepsCount and KarmaFRMsCount from ddraw.ini (they got added back by accident.)
2017-05-08 21:22:05 +08:00
NovaRain
475503d632
Added a check for OutlineColor in gl_highlighting, in case player set it to negative values.
...
Split the push/pop instructions in ItemCountFix() into individual lines.
2017-05-07 21:20:17 +08:00
NovaRain
2255d9e947
Fixed skills being capped at 95% when starting a new game.
...
Changed PipBoyAvailableAtGameStart=1 to be executed before the game starts, so player will be in vault suit at the beginning, instead of first in tribal appearance then switching to vault suit after changing maps.
Added a separator line for the new [Scripts] section in ddraw.ini.
2017-04-19 10:37:04 +08:00
NovaRain
a5599e1942
Simplified ToggleHighlightObject in gl_highlighting.
2017-04-10 00:57:17 +08:00
NovaRain
43e2ddeeef
Enabled highlighting corpses and containers by default in sfall-mods.ini.
2017-04-09 22:51:56 +08:00
NovaRain
dc785d010e
Added options for toggling corpse highlighting and LOS check.
...
Changed default settings in sfall-mod.ini to be in line with the default ddraw.ini in previous versions of sfall.
2017-04-09 20:58:36 +08:00
NovaRain
7dcef6f4b2
Replaced some address hacks with simplified ones (e.g. using jumps in stead of multiple NOPs), to be in line with the changes in 3.8 branch (commit 16be32d284)
2017-03-28 10:11:38 +08:00
NovaRain
945f4696d7
Fixed anim_set_end_hack() only gets called when applying AnimationsAtOnceLimit patch. It should be always called regardless of AnimationsAtOnceLimit setting.
2017-03-23 20:46:14 +08:00
NovaRain
1644ca437c
Fixed vanilla to-hit calculation being broken by the previous TOHIT hook commit.
2017-03-20 13:56:03 +08:00
NovaRain
4482630f9a
Updated credits.
...
Unified the wording of some log entries.
2017-03-19 08:32:47 +08:00
NovaRain
92c599e1a2
Fixed incorrect "\r\r\n" being printed in sfall-log.txt.
...
Simplified Jet Antidote fix.
Changed sprintf with _snprintf_s for SimplePatch to prevent warning C4995 when compiling with v140_xp toolset.
2017-03-18 21:12:28 +08:00
NovaRain
fc99baa0c6
Changed SkipSizeCheck and ExtraCRC to not require enabling sfall debugging mode.
2017-03-16 22:52:58 +08:00
NovaRain
0b739b7d77
Fixed inconsistent behavior of motion sensor flag 2; now motion sensor truly does not require any charges to work.
2017-03-16 07:38:43 +08:00
NovaRain
943561ea65
Fixed header path in MainLoopHook.h and Worldmap.h.
...
Replaced Win2K project config with ReleaseXP (using v140_xp toolset) because using VS2008 to target Win2000 is no longer possible with current sfall 4.0 codebase.
2017-03-15 22:14:17 +08:00
NovaRain
cbcc0e4a86
Fixed Sequence stat value not being printed correctly when using "print to file" option.
2017-03-13 11:29:56 +08:00
NovaRain
133d092d02
Fixed bugs for negative SPECIAL values in character creation (from Crafty)
...
Updated credits.
2017-03-13 10:47:53 +08:00
NovaRain
6e5b811b87
Fix a crash when clicking on empty space in the inventory list opened by "Use Inventory Item On" (backpack) action icon (from Crafty)
...
Improved the functionality of ScrollMod: now the minimum is scrolling 1 inventory slot per click; before setting ScrollMod too high or negative values will result in scrolling not working.
Changed BodyHit_Torso to BodyHit_Torso_Uncalled because it sets both body_torso and body_uncalled hit modifiers.
2017-03-09 13:56:37 +08:00
NovaRain
e71d1962b5
Fixed metarule2_explosions not being reset properly.
2017-03-09 09:07:58 +08:00
NovaRain and phobos2077
99d6ff332f
Added a fix for the engine not checking player's inventory properly when putting items into the bag/backpack in the hands (from Crafty)
...
Removed BagBackpackFix from ddraw.ini.
2017-02-21 01:43:43 +07:00
NovaRain and phobos2077
2d726de3f0
Fixed a crash when trying to open bag/backpack on the table in the bartering interface (from Crafty)
...
Added a tweak to move items to player's main inventory instead of the opened bag/backpack when confirming a trade.
2017-02-21 01:43:29 +07:00
NovaRain and phobos2077
212118ba8c
Added a fix to ignore player's equipped items when opening bag/backpack (from Crafty)
2017-02-21 01:43:17 +07:00
NovaRain and phobos2077
2383d8d507
Added the ability to move items out of bag/backpack and back into the main inventory list by dragging them to character's image (similar to Fallout 1 behavior) (derived from Crafty's code)
...
Added a fix for losing items from inventory when you try to drag them to bag/backpack in the inventory list and are overloaded (from Crafty)
Removed gdBarterDispFix from ddraw.ini.
2017-02-21 01:43:06 +07:00
NovaRain and phobos2077
7a5a54ab5e
Limited the range of values for StartYear/Month/Day to prevent errors when setting them to negative values, and added a clarification in ddraw.ini.
2017-02-21 01:28:40 +07:00
NovaRain and phobos2077
5b59c9e54d
Added more details to the description of WorldMapEncounterFix/Rate, and changed the default value of WorldMapEncounterRate to its internal default.
2017-02-21 01:15:22 +07:00
NovaRain and phobos2077
60fb21cd1b
Fixed display issues when calling gdialog_mod_barter with critters with no "Barter" flag set (from Crafty)
2017-02-21 01:13:20 +07:00
NovaRain and phobos2077
0f1072c302
Made WorldMapEncounterFix/Rate independent from WorldMapFPSPatch. ( #62 , with the simplified code from Crafty)
2017-02-21 01:05:45 +07:00
NovaRain
9be861a84b
Merge branch '3.8-maintenance'
2016-11-10 09:14:49 +08:00
NovaRain
11dfb3e94a
Added MainMenuOffsetX/Y and MainMenuCreditsOffsetX/Y settings back to ddraw.ini.
...
Corrected document file name in README.txt.
2016-11-08 10:25:41 +08:00
NovaRain
3668a1c94f
Improved the functionality of ProcessorIdle (from Crafty)
2016-11-07 15:04:55 +08:00
NovaRain
5cb3ca2a59
Removed queue9x and vector9x.
...
Disabled ComputeSprayMod by default.
Updated version number.
2016-11-07 10:16:57 +08:00
NovaRain
d276da3d68
Added VS2008 compatibility (vsnprintf_s uses 4 args by C11 standard, which is supported in VS2010 but not VS2008)
2016-11-03 14:56:32 +08:00
NovaRain
e3739ba7aa
Initialized scriptDialog pointer properly and deleted it on game exit.
2016-11-02 08:59:02 +08:00
NovaRain
e78e76e35d
Edited a couple of log entries.
...
Simplified the memory address edits of MultiPatches.
2016-10-31 15:56:19 +08:00
NovaRain
47783c802e
Added a C++11 emulator for compiling with VS2008.
2016-10-26 11:38:57 +08:00
NovaRain
dbdf414cd9
Tweaked the style of global/hook script log entries a bit.
2016-10-18 11:45:00 +08:00
NovaRain
3e2a22fad8
Fixed bugs in set*_stat_min functions that set max values instead of min.
...
Unified the style of global/hook script log entries.
Updated the code of "reading global/hook scripts from DAT files" with Crafty's newer code base.
2016-10-18 10:59:10 +08:00
NovaRain
13ee06dee2
Improved the 'print to file' fix and added the ability to use long filenames in dat files (from Crafty)
2016-10-17 11:58:22 +08:00
NovaRain
2d3031e583
sfall can now load global/hook scripts from dat files (from Crafty's mod)
2016-10-14 13:57:20 +08:00
NovaRain
de5c12484d
Added DataLoadOrderPatch option to use a modified data load order for the engine to find game data (from Crafty's mod)
...
Updated version number.
2016-10-11 11:58:17 +08:00
NovaRain
c880ae93a9
Removed unused code in ScriptExtender.cpp and rename obj_outline_all_items_* functions slightly to prevent using the same names as game engine functions.
...
Minor edits on main.cpp and Bugs.cpp.
2016-10-07 10:31:46 +08:00
NovaRain
295a5d1437
Replaced NumberPatchLoop with a simple toggleable MultiPatches. Reason: While NumberPatchLoop allows even larger patch numbers, the built-in valid range of patch numbers of 000 ~ 999 is more than enough already.
2016-10-05 16:09:22 +08:00
NovaRain
e726ee54ba
Tweaked set_bodypart_hit_modifier function to follow the removal of BodyHit_Uncalled from ddraw.ini, e.g. setting modifier for torso (3) will also set for uncalled (8), and vice versa.
2016-10-04 10:23:17 +08:00
NovaRain
712eafc241
Now sfall loads global/hook scripts, shaders, 32-bit talking heads images, and avi movies according to the paths variables in the cfg file, instead of from the fixed "Data\".
...
Removed GainStatPerkFix from ddraw.ini.
Removed BodyHit_Uncalled from ddraw.ini. Now "uncalled" shares the same modifier with "torso", because separating them would result in some illogical setups.
2016-10-03 14:46:51 +08:00
NovaRain
d1bf22ec8d
Expanded DisableHorrigan to also skip the forced encounter check, to compatible with old saves that are not started with DisableHorrigan=1.
...
Changed the description of PipBoyAvailableAtGameStart=2 to be more precise.
Simplified the skipping code in PerkSetup(), because it's redundant to change two bytes that the same effect can be done with changing the conditional jump next to them.
2016-09-29 13:37:58 +08:00
NovaRain
21d496f392
Added a new setting to PipBoyAvailableAtGameStart to skip the vault suit movie check and make the PipBoy always available.
...
Improved the functionality of PipBoyAvailableAtGameStart (from Crafty's mod)
2016-09-26 16:05:18 +08:00
NovaRain
07948206fb
Removed CarryWeightLimit option, because it can be scripted with set_stat_max function.
2016-09-21 09:33:11 +08:00
NovaRain
6a71bf086d
Added a partial fix for incorrect positioning after exiting small locations (e.g. Ghost Farm) (from Crafty's mod)
2016-09-19 13:15:57 +08:00
NovaRain
ec585529c8
Changed BodypartHitMod# to BodyHit_(part names) in ddraw.ini, to make them easier for users to understand.
2016-08-31 10:27:03 +08:00
NovaRain
e6aad27e44
Moved ImportedProcedureFix to Bugs.cpp and added comments to it.
...
Added more descriptions to options in ddraw.ini, especially DebugMode, to make things clearer and save the trouble to look up debug patch readme.
2016-08-30 13:11:06 +08:00
NovaRain
f0528740a4
Removed the redundant loop in the unlimited ammo exploit fix.
2016-08-22 09:42:01 +08:00
NovaRain
bfd8b38547
Merge branch 'develop', preparing for 3.7.3 release.
2016-08-15 14:54:40 +08:00