Raised This Month: $ Target: $400
 0% 

Make a player invisible to one player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 08-03-2008 , 21:55   Re: Make a player invisible to one player
Reply With Quote #20

This didn't work for me (Half-Life):
PHP Code:
public forward_AddToFullPack(es_handleeentityhosthostflagsplayerpSet)
    {
    if(!
player || entity==host)
        return 
FMRES_IGNORED
    
    
if(ITEMTIMER[ITEM_INVISIBILITY][entity]>0.0)
        {
        
client_print(0print_chat"%i-%i-%i-%f"random_num(1099), hostentityITEMTIMER[ITEM_INVISIBILITY][entity])
        
//set_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0.0)
        
set_es(es_handleES_RenderFxkRenderFxGlowShell)
        
set_es(es_handleES_RenderColor, {000})
        
set_es(es_handleES_RenderModekRenderTransAlpha)
        
set_es(es_handleES_RenderAmt0.0)
        }
    
    return 
FMRES_HANDLED
    

I see the print and values look fine, but it changes nothing.

Edit:
It looks like it prevents any change. For example if the player is glowing green, he stays green.
__________________

Last edited by Shaman; 08-03-2008 at 22:15.
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
 



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:54.


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