Raised This Month: $ Target: $400
 0% 

Need help, semiclip.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-10-2010 , 06:56   Re: Need help, semiclip.
Reply With Quote #4

Sorry for double post :/
I remembered that xPaw's DR manager uses semiclip that I could edit. I have get this far:
PHP Code:
new bool:Respawning[33] = falsebool:g_NoSolid[33] = false

public plugin_init()
{
    
register_forwardFM_StartFrame,    "FwdStartFrame");
    
register_forwardFM_AddToFullPack,    "FwdFullPack",   );
}

public 
FwdFullPackeseenthostflagsplayerpSet ) {
    
    if( !
is_user_alive(ent) || !IsPlayer(ent) )
        return 
FMRES_IGNORED;
    
    if( 
is_user_alive(ent) && player && cs_get_user_team(ent) != cs_get_user_team(host) ) {
        
set_esesES_SolidSOLID_NOT );
        
set_esesES_RenderModekRenderTransAlpha );
        
set_esesES_RenderAmt85 );
    }
    
    return 
FMRES_IGNORED;
}

public 
FwdStartFrame( ) {
    
    static 
iPlayers32 ], iNumiPlayeriPlayer2ij;
    
get_playersiPlayersiNum"ach" );
    
    
arraysetg_NoSolid032 );
    
    if( 
iNum <= )
        return 
FMRES_IGNORED;
    
    for( 
0iNumi++ ) {
        
iPlayer iPlayers];
        
        if(
Respawning[iPlayer])
            continue;
        
        for( 
0iNumj++ ) {
            
iPlayer2 iPlayers];
            
            if( 
iPlayer == iPlayer2 )
                continue;
            
            if( 
RespawningiPlayer ] && cs_get_user_team(iPlayer) != cs_get_user_team(iPlayer2))
                continue;
            
            if( 
entity_rangeiPlayeriPlayer2 ) < 128 ) {
                
g_NoSolidiPlayer ] = true;
            }
        }
    }
    
    for( 
0iNumi++ ) {
        
iPlayer iPlayers];
        
        
set_peviPlayerpev_solidg_NoSolidiPlayer ] ? SOLID_NOT SOLID_SLIDEBOX );
    }
    
    return 
FMRES_IGNORED;

The problems I've enountered with are that it seems that T has only semiclip (all the time) and T is always half-visible. What I wanted to make is that is CT has Respawning[id] true, he can go through T.
t3hNox is offline
 



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 21:57.


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