aboutsummaryrefslogtreecommitdiff
path: root/primedev/squirrel/squirrel.cpp
diff options
context:
space:
mode:
authorEladNLG <e1lad8955@gmail.com>2024-07-30 01:52:15 +0300
committerGitHub <noreply@github.com>2024-07-30 00:52:15 +0200
commit51991cc45f8557dbeedbf6de176285e51a77676f (patch)
tree0534d8ce3e788a0b87c7e64958284cff40b82e77 /primedev/squirrel/squirrel.cpp
parent65516328610c136db00b644d06bdcf98912ddf70 (diff)
downloadNorthstarLauncher-51991cc45f8557dbeedbf6de176285e51a77676f.tar.gz
NorthstarLauncher-51991cc45f8557dbeedbf6de176285e51a77676f.zip
Add CreateScriptInstance (#692)v1.27.1-rc1v1.27.1v1.27.0-rc1v1.27.0
Adds a function that converts entities to SQObjects to the SquirrelManagers.
Diffstat (limited to 'primedev/squirrel/squirrel.cpp')
-rw-r--r--primedev/squirrel/squirrel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/primedev/squirrel/squirrel.cpp b/primedev/squirrel/squirrel.cpp
index f6df0c5f..29540cce 100644
--- a/primedev/squirrel/squirrel.cpp
+++ b/primedev/squirrel/squirrel.cpp
@@ -707,6 +707,7 @@ ON_DLL_LOAD_RELIESON("client.dll", ClientSquirrel, ConCommand, (CModule module))
g_pSquirrel<ScriptContext::CLIENT>->__sq_GetEntityConstant_CBaseEntity = module.Offset(0x3E49B0).RCast<sq_GetEntityConstantType>();
g_pSquirrel<ScriptContext::CLIENT>->__sq_getentityfrominstance = module.Offset(0x114F0).RCast<sq_getentityfrominstanceType>();
+ g_pSquirrel<ScriptContext::CLIENT>->__sq_createscriptinstance = module.Offset(0xC20E0).RCast<sq_createscriptinstanceType>();
g_pSquirrel<ScriptContext::UI>->__sq_GetEntityConstant_CBaseEntity =
g_pSquirrel<ScriptContext::CLIENT>->__sq_GetEntityConstant_CBaseEntity;
g_pSquirrel<ScriptContext::UI>->__sq_getentityfrominstance = g_pSquirrel<ScriptContext::CLIENT>->__sq_getentityfrominstance;
@@ -800,6 +801,7 @@ ON_DLL_LOAD_RELIESON("server.dll", ServerSquirrel, ConCommand, (CModule module))
g_pSquirrel<ScriptContext::SERVER>->__sq_GetEntityConstant_CBaseEntity = module.Offset(0x418AF0).RCast<sq_GetEntityConstantType>();
g_pSquirrel<ScriptContext::SERVER>->__sq_getentityfrominstance = module.Offset(0x1E920).RCast<sq_getentityfrominstanceType>();
+ g_pSquirrel<ScriptContext::SERVER>->__sq_createscriptinstance = module.Offset(0x43F2F0).RCast<sq_createscriptinstanceType>();
g_pSquirrel<ScriptContext::SERVER>->logger = NS::log::SCRIPT_SV;
// Message buffer stuff