View Single Post
Hallucinogenic Troll
Senior Member
Join Date: Apr 2015
Old 09-06-2019 , 12:50   Re: [EXTENSION] Output Info
Reply With Quote #16

Trying to get some stuff from the logic_auto entity, with a small edit from the code you have in the post:

PHP Code:
#include <sourcemod>
#include <sdktools>
#include <outputinfo>
#include <colorvariables>

public void OnPluginStart()
{
    
HookEvent("round_start"Event_RoundStartPost);
}

public 
void Event_RoundStartPost(Event event, const char[] namebool dontBroadcast)
{
    
int ent = -1;
    while((
ent FindEntityByClassname(ent"logic_auto")) != -1)
    {
        
int count GetOutputActionCount(ent"m_OnMapSpawn");

        
PrintToChatAll("GetOutputActionCount: {red}%d{default}"count);
        
        for(
int i 0counti++)
        {
            
char buffer[256];
            
GetOutputActionTarget(ent"m_OnMapSpawn"ibuffersizeof(buffer));
            
PrintToChatAll("GetOutputActionTarget: {red}%s{default}"buffer);
            
            
GetOutputActionParameter(ent"m_OnMapSpawn"ibuffersizeof(buffer));
            
PrintToChatAll("GetOutputActionParameter: {red}%s{default}"buffer);
        }
    }

And after checking if it has some error, it was this one by the extension:

Code:
[17] <FAILED> file "outputinfo.ext.2.csgo.so": Failed to obtain g_pEntityListPool from gamedata
I've installed the last version on github. Didn't find any error related to this.

The information I have about the logic_auto is this one:
__________________

Last edited by Hallucinogenic Troll; 09-06-2019 at 12:55. Reason: added screenshot of the logic_auto's outputs that I have
Hallucinogenic Troll is offline