Raised This Month: $62 Target: $400
 15% 

[CS:S] Improved Showtriggers


Post New Thread Reply   
 
Thread Tools Display Modes
Author
BlankBhop
Junior Member
Join Date: Oct 2018
Plugin ID:
6573
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Improved showtriggers, color coded triggers
    Old 05-19-2019 , 20:10   [CS:S] Improved Showtriggers
    Reply With Quote #1

    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(entitybuffersizeof(buffer));

        if (
    StrEqual(buffer"trigger_push"))
        {
            
    SetEntityRenderColor(entity02550255);
        }
        else if (
    StrEqual(buffer"trigger_teleport"))
        {
            
    SetEntityRenderColor(entity25500255);
        }
        else
        {
            
    SetEntityRenderColor(entity0000);
        }

        
    int count GetOutputCount(entity"m_OnStartTouch");
        for (
    int i 0counti++)
        {
            
    GetOutputParameter(entity"m_OnStartTouch"ibuffer);

            
    // Gravity anti-pre
            // https://gamebanana.com/prefabs/6760
            
    if (StrEqual(buffer"gravity 40"))
                
    SetEntityRenderColor(entity2551000255);
        }

        
    count GetOutputCount(entity"m_OnEndTouch");
        for (
    int i 0counti++)
        {
            
    GetOutputParameter(entity"m_OnEndTouch"ibuffer);

            
    // Gravity booster
            // https://gamebanana.com/prefabs/6677
            
    if (StrContains(buffer"gravity -") != -1)
                
    SetEntityRenderColor(entity0255185255);

            
    // Basevelocity booster
            // https://gamebanana.com/prefabs/7118
            
    if (StrContains(buffer"basevelocity") != -1)
                
    SetEntityRenderColor(entity02550255);
        }

    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
    BlankBhop is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 07:02.


    Powered by vBulletin®
    Copyright ©2000 - 2019, vBulletin Solutions, Inc.
    Theme made by Freecode