This plugin is a edit to ici's
showtriggers plugin. It sets specific triggers to a certain color as seen here
PHP Code:
while ((entity = FindEntityByClassname(entity, "trigger_*")) != -1)
{
GetEntityClassname(entity, buffer, sizeof(buffer));
if (StrEqual(buffer, "trigger_push"))
{
SetEntityRenderColor(entity, 0, 255, 0, 255);
}
else if (StrEqual(buffer, "trigger_teleport"))
{
SetEntityRenderColor(entity, 255, 0, 0, 255);
}
else
{
SetEntityRenderColor(entity, 0, 0, 0, 0);
}
int count = GetOutputCount(entity, "m_OnStartTouch");
for (int i = 0; i < count; i++)
{
GetOutputParameter(entity, "m_OnStartTouch", i, buffer);
// Gravity anti-pre
// https://gamebanana.com/prefabs/6760
if (StrEqual(buffer, "gravity 40"))
SetEntityRenderColor(entity, 255, 100, 0, 255);
}
count = GetOutputCount(entity, "m_OnEndTouch");
for (int i = 0; i < count; i++)
{
GetOutputParameter(entity, "m_OnEndTouch", i, buffer);
// Gravity booster
// https://gamebanana.com/prefabs/6677
if (StrContains(buffer, "gravity -") != -1)
SetEntityRenderColor(entity, 0, 255, 185, 255);
// Basevelocity booster
// https://gamebanana.com/prefabs/7118
if (StrContains(buffer, "basevelocity") != -1)
SetEntityRenderColor(entity, 0, 255, 0, 255);
}
}
This plugin also requires the outputinfo extension, I haven't tested it with any others besides the one in Miu's
boosterfix plugin.
Download:
https://github.com/blankbhop/improved-showtriggers
Credits:
Ici - Base showtriggers plugin
Miu - Outputinfo extension
Eric - Improvements to base plugin
Blank - Trigger Menu, functionality