Added a tweak to play "magic hands" anim when using items on objs

* for issues with scripted animations not playing (#356)
This commit is contained in:
NovaRain
2021-05-07 15:49:47 +08:00
parent b2c2a70822
commit 075922aa33
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ CorpseDeleteTime=6
;Set a number of milliseconds to idle each input loop ;Set a number of milliseconds to idle each input loop
;Set to -1 to disable ;Set to -1 to disable
;Set to 0 to idle only if other processes are waiting for processor time (WinXP/2000: if processes have equal priority) ;Set to 0 to idle only if other processes are waiting for processor time (WinXP/2000: if processes have equal priority)
;Set to 1 (or some higher number if needed) to prevent 100% CPU use. The maximum is 100 ;Set to 1 (or some higher number if needed) to prevent 100% CPU use. The maximum is 30
ProcessorIdle=-1 ProcessorIdle=-1
;Set to 1 if using the hero appearance mod ;Set to 1 if using the hero appearance mod
+3
View File
@@ -354,6 +354,9 @@ void Animations_Init() {
// Fix crash when the critter goes through a door with animation trigger // Fix crash when the critter goes through a door with animation trigger
MakeJump(0x41755E, object_move_hack); MakeJump(0x41755E, object_move_hack);
// Allow playing the "magic hands" animation when using an item on an object
SafeWrite16(0x4120B8, 0x9090); // action_use_an_item_on_object_
// Fix for the player stuck at "climbing" frame after ladder climbing animation // Fix for the player stuck at "climbing" frame after ladder climbing animation
HookCall(0x411E1F, action_climb_ladder_hook); HookCall(0x411E1F, action_climb_ladder_hook);
+1 -1
View File
@@ -1532,7 +1532,7 @@ void ScriptExtender_Init() {
} }
idle = GetConfigInt("Misc", "ProcessorIdle", -1); idle = GetConfigInt("Misc", "ProcessorIdle", -1);
if (idle > -1 && idle > 100) idle = 100; if (idle > -1 && idle > 30) idle = 30;
arraysBehavior = GetConfigInt("Misc", "arraysBehavior", 1); arraysBehavior = GetConfigInt("Misc", "arraysBehavior", 1);
if (arraysBehavior > 0) { if (arraysBehavior > 0) {