Skip to content

Commit

Permalink
shavit-replay-playback: hook triggers on late-load
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Jul 11, 2024
1 parent 4652e36 commit e35e835
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions addons/sourcemod/scripting/shavit-replay-playback.sp
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,16 @@ public void OnPluginStart()
{
OnAdminMenuReady(gH_AdminMenu);
}

for (int entity = MaxClients+1, last = GetMaxEntities(); entity <= last; ++entity)
{
if (IsValidEntity(entity))
{
char classname[64];
GetEntityClassname(entity, classname, sizeof(classname));
OnEntityCreated(entity, classname);
}
}
}

for(int i = 1; i < sizeof(gA_BotInfo); i++)
Expand Down

0 comments on commit e35e835

Please sign in to comment.