From b281d36088d1d92acb3db1677881bf984a7d0901 Mon Sep 17 00:00:00 2001 From: BobTheBob9 Date: Sun, 9 Oct 2022 02:24:29 +0100 Subject: add more entity functions --- NorthstarDLL/squirrel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NorthstarDLL/squirrel.cpp') diff --git a/NorthstarDLL/squirrel.cpp b/NorthstarDLL/squirrel.cpp index 5c2d8b1b..23935827 100644 --- a/NorthstarDLL/squirrel.cpp +++ b/NorthstarDLL/squirrel.cpp @@ -488,6 +488,8 @@ ON_DLL_LOAD_RELIESON("client.dll", ClientSquirrel, ConCommand, (CModule module)) g_pSquirrel->__sq_getasset = module.Offset(0x6010).As(); g_pSquirrel->__sq_getuserdata = module.Offset(0x63D0).As(); g_pSquirrel->__sq_getvector = module.Offset(0x6140).As(); + g_pSquirrel->__sq_getthisentity = module.Offset(0x12F80).As(); + g_pSquirrel->__sq_getentity = module.Offset(0x6140).As(); g_pSquirrel->__sq_getstring = g_pSquirrel->__sq_getstring; g_pSquirrel->__sq_getinteger = g_pSquirrel->__sq_getinteger; g_pSquirrel->__sq_getfloat = g_pSquirrel->__sq_getfloat; @@ -496,6 +498,8 @@ ON_DLL_LOAD_RELIESON("client.dll", ClientSquirrel, ConCommand, (CModule module)) g_pSquirrel->__sq_getasset = g_pSquirrel->__sq_getasset; g_pSquirrel->__sq_getuserdata = g_pSquirrel->__sq_getuserdata; g_pSquirrel->__sq_getvector = g_pSquirrel->__sq_getvector; + g_pSquirrel->__sq_getthisentity = g_pSquirrel->__sq_getthisentity; + g_pSquirrel->__sq_getentity = g_pSquirrel->__sq_getentity; g_pSquirrel->__sq_createuserdata = module.Offset(0x38D0).As(); g_pSquirrel->__sq_setuserdatatypeid = module.Offset(0x6490).As(); @@ -563,6 +567,8 @@ ON_DLL_LOAD_RELIESON("server.dll", ServerSquirrel, ConCommand, (CModule module)) g_pSquirrel->__sq_getuserdata = module.Offset(0x63B0).As(); g_pSquirrel->__sq_getvector = module.Offset(0x6120).As(); g_pSquirrel->__sq_get = module.Offset(0x7C00).As(); + g_pSquirrel->__sq_getthisentity = module.Offset(0x203B0).As(); + g_pSquirrel->__sq_getentity = module.Offset(0x6120).As(); g_pSquirrel->__sq_createuserdata = module.Offset(0x38D0).As(); g_pSquirrel->__sq_setuserdatatypeid = module.Offset(0x6470).As(); -- cgit v1.2.3