Raised This Month: $ Target: $400
 0% 

Semiclip


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 11-19-2011 , 13:05   Re: Semiclip
Reply With Quote #8

Quote:
Originally Posted by schmurgel1983 View Post
it has few bugs.. tried it already.

EDIT: The semiclip Im currently using is really good, but when 2 players stand together on an object that should kill you when you touch it, they stay alive, until they move from each other, then they die. Why is it? and how do I fix such thing?

PHP Code:
/* Plugin generated by AMXX-Studio */  

#include <amxmodx>  
#include <amxmisc>  
#include <engine>  
#include <cstrike>  
#include <fun>  
#include <fakemeta>  

#define PLUGIN "Semi-Clip"  
#define VERSION "1.0"  
#define AUTHOR "xPaw"  

new g_iSemiClip[33]  

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

public 
FwdFullPackeseenthostflagsplayerpSet ) {  
      
    if( 
player && g_iSemiClipent ] && g_iSemiCliphost ] ) {  
        
set_esesES_SolidSOLID_NOT );  
        
set_esesES_RenderModekRenderTransAlpha );  
        
set_esesES_RenderAmt85 );  
    }  
      
    return 
FMRES_IGNORED;  
}  

public 
FwdStartFrame( ) {  
      
    static 
iPlayers32 ], iNumiPlayeriPlayer2ij;  
    
get_playersiPlayersiNum"ache""CT" );  
      
    
arraysetg_iSemiClip032 );  
      
    if( 
iNum <= )  
        return 
FMRES_IGNORED;  
      
    for( 
0iNumi++ ) {  
        
iPlayer iPlayers];  
          
        for( 
0iNumj++ ) {  
            
iPlayer2 iPlayers];  
              
            if( 
iPlayer == iPlayer2 )  
                continue;  
              
            if( 
g_iSemiClipiPlayer ] && g_iSemiClipiPlayer2 ] )  
                continue;  
              
            if( 
entity_rangeiPlayeriPlayer2 ) < 128 ) {  
                
g_iSemiClipiPlayer ]    = true;  
                
g_iSemiClipiPlayer2 ]    = true;  
            }  
        }  
    }  
      
    for( 
0iNumi++ ) {  
        
iPlayer iPlayers];  
          
        
set_peviPlayerpev_solidg_iSemiClipiPlayer ] ? SOLID_NOT SOLID_SLIDEBOX );  
    }  
      
    return 
FMRES_IGNORED;  

__________________
My Projects:

Auto-Mix (Pug): 100%

Joined the Military (a soldier now) - Inactive

Last edited by Diegorkable; 11-19-2011 at 13:23.
Diegorkable 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 08:34.


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