NovaRain
4cf0c6688f
Improved the implementation of HOOK_INVENWIELD
...
* it now runs for the player and NPCs when removing equipped items.
* added an additional argument.
Fixed drop_obj script function not removing the equipped armor properly
for the player and party members.
2019-10-04 22:04:05 +08:00
NovaRain
52290b09d2
Removed duplicate code from intface_redraw_ engine function
...
Minor edits to code/documents.
2019-09-14 08:56:05 +08:00
NovaRain
9693c0d439
Added "register_hook_proc_spec" script function
...
Updated documents to address the new function.
2019-09-12 22:23:02 +08:00
NovaRain
aa22575ec9
Backported optimization for global/hook scripts execution from 4.x
2019-09-11 13:18:20 +08:00
NovaRain
20cb24b385
Fixed some args in HOOK_BARTERPRICE hook when trading with PM
...
And added a new argument to indicate trading with a party member.
Refactored register_hook/register_hook_proc with _WRAP_OPCODE.
2019-08-27 22:31:10 +08:00
NovaRain
071581effc
Replaced 'Take All' hotkey mod with UI hotkeys mod
...
Minor edits to code/documents.
2019-08-26 21:53:11 +08:00
NovaRain
5353ab0ad6
Backported the code of four hookscripts from 4.x.
...
* FINDTARGET, BARTERPRICE, WITHINPERCEPTION, and INVENTORYMOVE. For
unifying the behavior of common hooks between 3.8 and 4.x.
Added the example script of WITHINPERCEPTION from 4.x.
Updated gl_highlighting_lite.
2019-05-14 11:42:21 +08:00
NovaRain
564c48354a
Backported the code of AmmoCost hook from 4.x.
...
* Mainly for fixing the issues with CheckWeaponAmmoCost. Because it's
easier to backport the whole set of code than working on the old
implementation. Shouldn't affect the performance much.
Also backported the CheckWeaponAmmoCost code from 4.x.
Updated hookscripts.txt to reflect the change.
Now the debug editor starts at the center of the screen.
2019-04-09 09:53:56 +08:00
NovaRain
ce0f5ea8c9
Added a new argument to REMOVEINVENOBJ hook (from Mr.Stalin)
2019-02-25 20:44:49 +08:00
NovaRain
2ce1c0f36e
Fixed inconsistent return value of get_npc_level.
...
Some edits to documents.
2019-02-25 12:32:56 +08:00
NovaRain
d7d8de5e1a
Added "get/set_object_data" script functions (from Mr.Stalin)
...
Changed read_byte, read_short, read_int, and read_string functions to not require AllowUnsafeScripting.
2018-12-05 10:17:26 +08:00
NovaRain
09b3bf3aed
Added DisplaySwiftLearnerExp option (from Crafty)
...
Minor edits to some documents/code.
2018-11-07 09:39:11 +08:00
NovaRain
3e982be4b6
Removed RemoveWindowRounding option because it doesn't affect anything.
2018-11-01 09:54:37 +08:00
NovaRain
a3b456cf0a
Added a new return value to HOOK_KEYPRESS to override the pressed key (from Crafty)
...
Added check for map being loaded to KeyPress/MouseClick hooks.
2018-10-28 08:51:01 +08:00
NovaRain
cc2b95d64e
Added displaying party member's current level & AC & addict flag info to the combat control panel (from Mr.Stalin)
...
Added additional notes to HOOK_COMBATDAMAGE in hookscripts.txt (#204 )
2018-10-16 10:14:32 +08:00
NovaRain
540abbe273
Fixed a bug in DisplaySecondWeaponRange that didn't display correct weapon range when the secondary mode is aimed (e.g. spear and throwing knife)
...
Added more info about unwielding in HOKK_INVENWIELD to hookscripts.txt.
2018-06-11 13:47:20 +08:00
NovaRain
9b67db7208
Fixed broken get_attack_type function (from Mr.Stalin and Crafty)
...
Replaced some SafeWriteX usages with SafeMemSet for writing serial NOPs.
Minor edits to documents.
2018-05-08 15:39:39 +08:00
NovaRain
f5c35eb639
Fixed typos in hookscripts.txt.
2018-03-23 23:10:17 +08:00
NovaRain
c6864e01f6
Added the damage type offset of weapon proto to define_extra.h.
...
Fixed a typo in hookscripts.txt.
Added a new example mod gl_autodoors (by Mr.Stalin) to modderspack. #19
2017-11-28 00:30:29 +08:00
NovaRain
08b92542f4
Fixed the incorrect description in HOOK_COMBATDAMAGE.
...
(cherry picked from commit 85cdd8973e )
2017-08-19 08:49:56 +08:00
NovaRain
ae1e17d359
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:14:50 +08:00
NovaRain
874b047ce1
Added Attack Type argument for HOOK_COMBATDAMAGE (from Crafty) #100
2017-06-14 12:45:13 +08:00
NovaRain
ec2d323f75
Changed LoadGame2_After to be called before LoadGame state is ended (backported from 4.0 development branch, commit c2e6d743a3)
...
Updated version number.
Minor edits to scripting documents.
2017-05-23 21:05:04 +08:00
NovaRain
024b1dbf6f
Backported the fix for TOHIT hook from 4.0 development branch (commit 7bbe84feef)
...
Updated credits.
2017-03-19 08:29:27 +08:00
NovaRain
bf61051887
Updated documentation on hook scripts.
...
Minor edits to missing d3dx9 dll message.
2017-03-16 22:03:33 +08:00