Raised This Month: $ Target: $400
 0% 

Color Effect with semiclip


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-30-2009 , 13:41   Color Effect with semiclip
Reply With Quote #1

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
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-30-2009 , 15:28   Re: Color Effect with semiclip
Reply With Quote #2

I think there's no way to change the color of it (unless you did something wrong when trying to change RenderColor).
__________________
hleV is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-30-2009 , 15:59   Re: Color Effect with semiclip
Reply With Quote #3

That's the kRenderTransAdd effect, there is no color, the model is transparent.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 07-30-2009 , 16:03   Re: Color Effect with semiclip
Reply With Quote #4

Quote:
Originally Posted by Alka View Post
That's the kRenderTransAdd effect, there is no color, the model is transparent.
set_es(es, ES_RenderColor, { 255, 0, 0 } )

just jking alka is right
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-30-2009 , 16:49   Re: Color Effect with semiclip
Reply With Quote #5

Quote:
Originally Posted by One View Post
set_es(es, ES_RenderColor, { 255, 0, 0 } )

just jking alka is right
That was not funny at all
__________________
xPaw is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-30-2009 , 19:02   Re: Color Effect with semiclip
Reply With Quote #6

(fm_)set_entity_visibility(id, 0) + Render?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 07-30-2009 , 19:29   Re: Color Effect with semiclip
Reply With Quote #7

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
Jon is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-31-2009 , 08:36   Re: Color Effect with semiclip
Reply With Quote #8

Quote:
Originally Posted by Jon View Post
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
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 07-31-2009 , 09:45   Re: Color Effect with semiclip
Reply With Quote #9

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.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-31-2009 , 10:06   Re: Color Effect with semiclip
Reply With Quote #10

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
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
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 18:20.


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