From 00c6976b87a83fe265160cb7646db8b0db727595 Mon Sep 17 00:00:00 2001 From: JezuzLizard Date: Mon, 26 Feb 2024 12:38:36 -0800 Subject: [PATCH] Update function docs. --- zm_ai_pack/pluto_sys.gsc | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/zm_ai_pack/pluto_sys.gsc b/zm_ai_pack/pluto_sys.gsc index fe8ee09..06957cf 100644 --- a/zm_ai_pack/pluto_sys.gsc +++ b/zm_ai_pack/pluto_sys.gsc @@ -63,7 +63,7 @@ [USAGE]: func = getfunction( , ); [PARAMS]: ARG1: ARG2:; [PARAMS_NOTES]: Path must use forward slashes.; - [RETURNS]: or ; + [RETURNS]: or ; @/ getfunction( path, func_name ) { @@ -74,7 +74,7 @@ getfunction( path, func_name ) [DESCRIPTION]: Returns the name of the input function pointer in :: format.; [CALL_TYPE]: function; [USAGE]: func_name = getfunctionname( ); - [PARAMS]: ARG1:; + [PARAMS]: ARG1:; [PARAMS_NOTES]: NONE; [RETURNS]: or ; @/ @@ -84,10 +84,13 @@ getfunctionname( func ) } /@ - [DESCRIPTION]: ; + [DESCRIPTION]: Detours to causing subsequent calls to to instead call . + Can detour any function except for functions called directly by the engine. + If [priority] is not specified defaults to -1 allowing for replacefunc calls with a higher [priority] value to detour already detoured + functions.; [CALL_TYPE]: function; - [USAGE]: ; - [PARAMS]: ; + [USAGE]: replacefunc( , , [priority] ); + [PARAMS]: ; [PARAMS_NOTES]: ; [RETURNS]: Original function pointer; @/ @@ -121,9 +124,9 @@ disabledetouronce( func ) at the time of calling getdetour.; [CALL_TYPE]: function; [USAGE]: getdetour( ); - [PARAMS]: ARG1:; + [PARAMS]: ARG1:; [PARAMS_NOTES]: NONE; - [RETURNS]: or ; + [RETURNS]: or ; @/ getdetour( func ) {