mirror of
https://github.com/JezuzLizard/T4SP-Server-Plugin.git
synced 2025-07-04 02:01:54 +00:00
Add our custom gsc funcs
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include <stdinc.hpp>
|
||||
#include "clientscript_public.hpp"
|
||||
#include <component/gsc.hpp>
|
||||
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable: 4244)
|
||||
@ -2010,6 +2011,14 @@ LABEL_17:
|
||||
|
||||
}
|
||||
|
||||
// our addition
|
||||
auto f = gsc::function::get(pName, type);
|
||||
if (f != nullptr)
|
||||
{
|
||||
return f;
|
||||
}
|
||||
//
|
||||
|
||||
// pluto
|
||||
if (game::plutonium::scr_get_function_hook != nullptr)
|
||||
{
|
||||
@ -2145,6 +2154,14 @@ LABEL_17:
|
||||
}
|
||||
}
|
||||
|
||||
// our addition
|
||||
auto f = gsc::method::get(pName, type);
|
||||
if (f != nullptr)
|
||||
{
|
||||
return f;
|
||||
}
|
||||
//
|
||||
|
||||
// pluto
|
||||
if (game::plutonium::scr_get_method_hook != nullptr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user