Raised This Month: $ Target: $400
 0% 

Respwn Protect JCTF


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yagami
Senior Member
Join Date: Jan 2021
Old 06-06-2022 , 15:09   Respwn Protect JCTF
Reply With Quote #1

Hi so I'm trying to apply a transparent color for the jctf respawn but I can't apply it at all, I wanted the same transparent white regame if it's not possible I just wanted to change the color of the protection to white could someone help me?

PHP Code:
player_updateRender(idFloat:fDamage 0.0)
{
    
// Vars
    
new bool:bGlows = (get_pcvar_num(pCvar_ctf_glows) == 1)
    new 
iTeam get_user_team(id)
    new 
iMode kRenderNormal
    
new iEffect kRenderFxNone
    
new iColor[3] = {0,0,0}

    
// Protected
    
if(g_bProtected[id])
    {
        
iEffect kRenderFxHologram;

        
// Collor
        
iColor[0] = (iTeam == TEAM_RED 155 0)
        
iColor[1] = (fDamage 0.0 100 clamp(floatround(fDamage), 0100) : 0)
        
iColor[2] = (iTeam == TEAM_BLUE 155 0)
    }

// FEATURE_ADRENALINE == true
#if FEATURE_ADRENALINE == true
    
switch(g_iAdrenalineUse[id])
    {
        case 
ADRENALINE_BERSERK:
        {
            
// Glows
            
if(bGlowsiEffect kRenderFxGlowShell

            
// Collor
            
iColor = {55055}
        }
        case 
ADRENALINE_INVISIBILITY:
        {
            
iMode kRenderTransAlpha

            
// Glows
            
if(bGlowsiEffect kRenderFxGlowShell        

            
// Collor        
            
iColor = {151515}
        }
    }
#endif
    
/if(player_hasFlag(id))
    {
        
// Type
        
if(iMode != kRenderTransAlphaiMode kRenderNormal;
        if(
bGlowsiEffect kRenderFxGlowShell

        
// Color
        
iColor[0] = (iTeam == TEAM_RED ? (iColor[0] > 200 155) : 0)
        
iColor[1] = (iAmount == 160 55 0)
        
iColor[2] = (iTeam == TEAM_BLUE ? (iColor[2] > 200 155) : 0)
    }*/

    
// Render
    
fm_set_rendering(idiEffect0iColor[1], 0iMode10)

yagami is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 07-15-2022 , 11:14   Re: Respwn Protect JCTF
Reply With Quote #2

try this... "untested"

PHP Code:
    // Protected
    
if(g_bProtected[id])
    {
        
iEffect kRenderFxHologram;

        
// Collor
/*
        iColor[0] = (iTeam == TEAM_RED ? 155 : 0)
        iColor[1] = (fDamage > 0.0 ? 100 - clamp(floatround(fDamage), 0, 100) : 0)
        iColor[2] = (iTeam == TEAM_BLUE ? 155 : 0)
*/
        
iColor = {255255255}

    } 
__________________
mlibre is offline
Reply



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 17:47.


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