mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Excluded timed_event_p_proc from HOOK_STDPROCEDURE
This commit is contained in:
@@ -633,10 +633,11 @@ int ret2 - overrides the duration time for the current result
|
|||||||
|
|
||||||
HOOK_STDPROCEDURE (hs_stdprocedure.int)
|
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)
|
int arg1 - the number of the standard script handler (see define.h)
|
||||||
Obj arg2 - the object connected to the executed script (self_obj)
|
Obj arg2 - the object that owns this handler (self_obj)
|
||||||
Obj arg3 - the object that called this handler (source_obj, can be 0)
|
Obj arg3 - the object that called this handler (source_obj, can be 0)
|
||||||
|
|
||||||
int ret1 - pass -1 to cancel the execution of the handler
|
int ret1 - pass -1 to cancel the execution of the handler
|
||||||
|
|||||||
@@ -260,6 +260,8 @@ static void __declspec(naked) ScriptStdProcedureHook() {
|
|||||||
jle end;
|
jle end;
|
||||||
cmp ecx, critter_p_proc;
|
cmp ecx, critter_p_proc;
|
||||||
je skip;
|
je skip;
|
||||||
|
cmp ecx, timed_event_p_proc;
|
||||||
|
je skip;
|
||||||
cmp ecx, map_update_p_proc;
|
cmp ecx, map_update_p_proc;
|
||||||
je skip;
|
je skip;
|
||||||
cmp ecx, start;
|
cmp ecx, start;
|
||||||
|
|||||||
Reference in New Issue
Block a user