Excluded timed_event_p_proc from HOOK_STDPROCEDURE

This commit is contained in:
NovaRain
2019-09-12 19:38:30 +08:00
parent 693b78f9db
commit e23c224535
2 changed files with 6 additions and 3 deletions
+4 -3
View File
@@ -633,10 +633,11 @@ int ret2 - overrides the duration time for the current result
HOOK_STDPROCEDURE (hs_stdprocedure.int)
Runs once every time before executing the standard procedure (handler) in the script of an object.
Runs before Fallout executes a standard procedure (handler) in any script of any object.
NOTE: this hook will not be executed for "start", critter_p_proc, timed_event_p_proc, and map_update_p_proc procedures.
int arg1 - number of the standard script handler (see define.h, except: start, critter_p_proc, and map_update_p_proc)
Obj arg2 - the object connected to the executed script (self_obj)
int arg1 - the number of the standard script handler (see define.h)
Obj arg2 - the object that owns this handler (self_obj)
Obj arg3 - the object that called this handler (source_obj, can be 0)
int ret1 - pass -1 to cancel the execution of the handler
+2
View File
@@ -260,6 +260,8 @@ static void __declspec(naked) ScriptStdProcedureHook() {
jle end;
cmp ecx, critter_p_proc;
je skip;
cmp ecx, timed_event_p_proc;
je skip;
cmp ecx, map_update_p_proc;
je skip;
cmp ecx, start;