mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
VScript: run initial registration code class callbacks first
Must be ran within the hook as otherwise engine code class functions won't be registered.
This commit is contained in:
parent
8abbed283e
commit
9a68b15412
@ -519,6 +519,7 @@ static ConVar show_motd_on_server_first_join("show_motd_on_server_first_join", "
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterClientEntityClassFuncs()
|
||||
{
|
||||
v_Script_RegisterClientEntityClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -529,6 +530,7 @@ static void Script_RegisterClientEntityClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterClientPlayerClassFuncs()
|
||||
{
|
||||
v_Script_RegisterClientPlayerClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -539,6 +541,7 @@ static void Script_RegisterClientPlayerClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterClientAIClassFuncs()
|
||||
{
|
||||
v_Script_RegisterClientAIClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -549,6 +552,7 @@ static void Script_RegisterClientAIClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterClientWeaponClassFuncs()
|
||||
{
|
||||
v_Script_RegisterClientWeaponClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -559,6 +563,7 @@ static void Script_RegisterClientWeaponClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterClientProjectileClassFuncs()
|
||||
{
|
||||
v_Script_RegisterClientProjectileClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -569,6 +574,7 @@ static void Script_RegisterClientProjectileClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterClientTitanSoulClassFuncs()
|
||||
{
|
||||
v_Script_RegisterClientTitanSoulClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -579,6 +585,7 @@ static void Script_RegisterClientTitanSoulClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterClientPlayerDecoyClassFuncs()
|
||||
{
|
||||
v_Script_RegisterClientPlayerDecoyClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -589,6 +596,7 @@ static void Script_RegisterClientPlayerDecoyClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterClientFirstPersonProxyClassFuncs()
|
||||
{
|
||||
v_Script_RegisterClientFirstPersonProxyClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
|
@ -340,6 +340,7 @@ void Script_RegisterAdminPanelFunctions(CSquirrelVM* s)
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterServerEntityClassFuncs()
|
||||
{
|
||||
v_Script_RegisterServerEntityClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -350,6 +351,7 @@ static void Script_RegisterServerEntityClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterServerPlayerClassFuncs()
|
||||
{
|
||||
v_Script_RegisterServerPlayerClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -360,6 +362,7 @@ static void Script_RegisterServerPlayerClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterServerAIClassFuncs()
|
||||
{
|
||||
v_Script_RegisterServerAIClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -370,6 +373,7 @@ static void Script_RegisterServerAIClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterServerWeaponClassFuncs()
|
||||
{
|
||||
v_Script_RegisterServerWeaponClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -380,6 +384,7 @@ static void Script_RegisterServerWeaponClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterServerProjectileClassFuncs()
|
||||
{
|
||||
v_Script_RegisterServerProjectileClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -390,6 +395,7 @@ static void Script_RegisterServerProjectileClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterServerTitanSoulClassFuncs()
|
||||
{
|
||||
v_Script_RegisterServerTitanSoulClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -400,6 +406,7 @@ static void Script_RegisterServerTitanSoulClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterServerPlayerDecoyClassFuncs()
|
||||
{
|
||||
v_Script_RegisterServerPlayerDecoyClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -410,6 +417,7 @@ static void Script_RegisterServerPlayerDecoyClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterServerSpawnpointClassFuncs()
|
||||
{
|
||||
v_Script_RegisterServerSpawnpointClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
@ -420,6 +428,7 @@ static void Script_RegisterServerSpawnpointClassFuncs()
|
||||
//---------------------------------------------------------------------------------
|
||||
static void Script_RegisterServerFirstPersonProxyClassFuncs()
|
||||
{
|
||||
v_Script_RegisterServerFirstPersonProxyClassFuncs();
|
||||
static bool initialized = false;
|
||||
|
||||
if (initialized)
|
||||
|
Loading…
x
Reference in New Issue
Block a user