AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Color Effect with semiclip (https://forums.alliedmods.net/showthread.php?t=98890)

Alucard^ 07-30-2009 13:41

Color Effect with semiclip
 
Hi,

I have some problems trying to change the color of this:

[IMG]http://img30.**************/img30/8707/semiclip.png[/IMG]

I am using:

PHP Code:

            set_es(esES_RenderFxkRenderFxDistort)
            
set_es(esES_SolidSOLID_NOT)
            
set_es(esES_RenderColor, { 00} )
            
set_es(esES_RenderModekRenderTransAdd)
            
set_es(esES_RenderAmt127.0

But if i change the values of ES_RenderColor, nothing happend. I am doing something wrong? or isnt posible to change the color? is there another way?

Thx

hleV 07-30-2009 15:28

Re: Color Effect with semiclip
 
I think there's no way to change the color of it (unless you did something wrong when trying to change RenderColor).

Alka 07-30-2009 15:59

Re: Color Effect with semiclip
 
That's the kRenderTransAdd effect, there is no color, the model is transparent.

One 07-30-2009 16:03

Re: Color Effect with semiclip
 
Quote:

Originally Posted by Alka (Post 885844)
That's the kRenderTransAdd effect, there is no color, the model is transparent.

set_es(es, ES_RenderColor, { 255, 0, 0 } )

just jking :P alka is right

xPaw 07-30-2009 16:49

Re: Color Effect with semiclip
 
Quote:

Originally Posted by One (Post 885851)
set_es(es, ES_RenderColor, { 255, 0, 0 } )

just jking :P alka is right

That was not funny at all

meTaLiCroSS 07-30-2009 19:02

Re: Color Effect with semiclip
 
(fm_)set_entity_visibility(id, 0) + Render?

Jon 07-30-2009 19:29

Re: Color Effect with semiclip
 
PHP Code:

set_es(esES_RenderFxkRenderFxGlowShell)
set_es(esES_SolidSOLID_NOT)
set_es(esES_RenderColor, { 0255} ) // Green
set_es(esES_RenderModekRenderTransAdd)
set_es(esES_RenderAmt127.0

or

PHP Code:

set_user_rendering(idkRenderFxGlowShell02550kRenderTransColor1


Alucard^ 07-31-2009 08:36

Re: Color Effect with semiclip
 
Quote:

Originally Posted by Jon (Post 886007)
PHP Code:

set_es(esES_RenderFxkRenderFxGlowShell)
set_es(esES_SolidSOLID_NOT)
set_es(esES_RenderColor, { 0255} ) // Green
set_es(esES_RenderModekRenderTransAdd)
set_es(esES_RenderAmt127.0

or

PHP Code:

set_user_rendering(idkRenderFxGlowShell02550kRenderTransColor1


Yeh... i tried, the problem using kRenderFxGlowShell + kRenderTransAdd is that............ well, see the image:

[IMG]http://img33.**************/img33/2339/glowu.png[/IMG]

And not only this... sometimes the glow dissapear... SO, i have to get off kRenderTransAdd if i want to use kRenderFxGlowShell.

But i solved this... now, my actual problem is other... with a lot of tries my best result is this:

PHP Code:

public addToFullPack(eseenthosthostflagsplayerpSet)
{
    if(
player)
    {    
        if(
plrSolid[host] && plrSolid[ent])
        {
            if(
get_pcvar_num(TargetGlow) && is_user_alive(host) )
            {
                new 
Temp
                
                get_user_aiming
(hostentTemp9999)
                
                if(
ent && is_user_alive(ent) )
                {
                    
set_es(esES_RenderFxkRenderFxGlowShell)
                    
set_es(esES_SolidSOLID_NOT)
                    
set_es(esES_RenderColor, { 2000} )
                }
                else
                {
                    
set_es(esES_RenderFxkRenderFxDistort)
                    
set_es(esES_SolidSOLID_NOT)
                    
set_es(esES_RenderModekRenderTransAdd)
                }
            }
        }
    }
    return 
FMRES_IGNORED


The problem is that when i am aiming someone ALL players get glow... i want to glow only the player who i am aiming.

Thx to all

One 07-31-2009 09:45

Re: Color Effect with semiclip
 
alu . u just set glow on players. u cant change the color of transparent.sure u can add a glow with which color ever u like. but its not the color changing of transparent.

Alucard^ 07-31-2009 10:06

Re: Color Effect with semiclip
 
One, i know that... but see the code, is not that i want to do xd...

When i am not aiming a player:

PHP Code:

set_es(esES_RenderFxkRenderFxDistort)
set_es(esES_SolidSOLID_NOT)
set_es(esES_RenderModekRenderTransAdd

And when i am aiming a player:

PHP Code:

set_es(esES_RenderFxkRenderFxGlowShell)
set_es(esES_SolidSOLID_NOT)
set_es(esES_RenderColor, { 2000} ) 

The code work but when i am aiming a player, ALL players get glow... i want to glow only ONE player (the only that i am aiming).

Sry for my english


All times are GMT -4. The time now is 18:20.

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