Raised This Month: $ Target: $400
 0% 

[HELP][PLZ] fw_AddToFullPack Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 05-07-2010 , 13:43   [solved] fw_AddToFullPack Problem
Reply With Quote #1

hi everyone,
i have a little problem with AddToFullPack...i'm still getting confused with it!
i have searched the hole forum for treads that maybe can help but
without success!
this AddToFullPack i'm using for the kz semiclip.

my problem is:
i don't want that the Admin[id] and the the Paused[id]
be effected by the tranparency.

Admin[id] should be always invisible reason:
i'm setting modles with MeRcyLeZZ way for admins but this part works !!

Paused[id] when true should not be effected by transparency
because i want to set a diffrent rendering on paused players
with out AddToFullPack usual set_rendering
when player Paused[id] false
tranparecy should work normal !!!

thx inadvance vato


PHP Code:
public fw_AddToFullPack_Post(es_handleeenthosthostflagsplayerpset
{
    if(!
g_bSemiclipEnabled)
    {
        return 
FMRES_IGNORED
    
}
    if(
player
    {
        if(
host != ent && get_orig_retval() && is_plr_alive[host]) 
        {
            
set_es(es_handleES_SolidSOLID_NOT
            
            if(
get_pcvar_num(g_kz_transparency)) 
            {
                if(!
g_bPlayerIsAdmin[ent] || !g_bPlayerPaused[ent]) // <- this part seems not work
                
{
                    static 
Float:flDistance
                    flDistance 
fm_entity_range(hostent)
                    if( 
flDistance 512.0 )
                    {
                        
set_es(es_handleES_RenderModekRenderTransAlpha)
                        
set_es(es_handleES_RenderAmtfloatround(flDistance)/2)
                    }
                }
            }
        }
// makin admin ent invisible permanent
        
if(g_bPlayerIsAdmin[ent]) 
        {
            
set_es(es_handleES_RenderModekRenderTransTexture)
            
set_es(es_handleES_RenderAmt0)
        }
    }
    else if(
<= host <= g_iMaxPlayers
    {
        if(!
pev_valid(ent) || get_pcvar_num(g_kz_custom_models))
            return 
FMRES_SUPERCEDE
        
static owner owner pev(entpev_owner)
        if( (
<= owner <= g_iMaxPlayers) && (ent == g_iEntPlayerModel[owner] || ent == g_iEntWeaponModel[owner]) && is_plr_alive[host] && host && owner && get_orig_retval()) 
        {
            
set_es(es_handleES_SolidSOLID_NOT
            
            if(
get_pcvar_num(g_kz_transparency)) 
            {
                if(!
g_bPlayerPaused[owner])// not sure if this is correct but works
                
{
                    static 
Float:flDistance
                    flDistance 
fm_entity_range(hostent)
                    if( 
flDistance 512.0 )
                    {
                        
set_es(es_handleES_RenderModekRenderTransAlpha)
                        
set_es(es_handleES_RenderAmtfloatround(flDistance)/2)
                    }
                }
            }
        }
    }
    return 
FMRES_IGNORED

__________________

Last edited by vato loco [GE-S]; 05-07-2010 at 19:24.
vato loco [GE-S] is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 05-07-2010 , 17:21   Re: [HELP][PLZ] fw_AddToFullPack Problem
Reply With Quote #2

PHP Code:
    if(!g_bSemiclipEnabled)
    {
        return 
FMRES_SUPERCEDE
    

You know what you are doing with that little code?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 05-07-2010 , 19:25   Re: [HELP][PLZ] fw_AddToFullPack Problem
Reply With Quote #3

better now !?
PHP Code:
    if(!g_bSemiclipEnabled)
    {
        return 
FMRES_IGNORED
    

__________________
vato loco [GE-S] 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 03:54.


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