Raised This Month: $85 Target: $400
 21% 

New Semiclip Method


Post New Thread Reply   
 
Thread Tools Display Modes
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-11-2009 , 16:07   Re: New Semiclip Method
Reply With Quote #61

Quote:
Originally Posted by ot_207 View Post
I don't know if it will work or not.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
tolsty
Senior Member
Join Date: Feb 2008
Location: Latvia
Old 09-27-2009 , 19:34   Re: New Semiclip Method
Reply With Quote #62

use shlumpfs team semiclip
http://xtreme-jumps.eu/e107_plugins/...pic.php?102421

with this one, entitys work fine for me
__________________
[IMG]http://img2.**************/img2/7173/signfp.jpg[/IMG]
tolsty is offline
Zpoke
Senior Member
Join Date: Aug 2009
Location: Sweden
Old 10-12-2009 , 15:32   Re: New Semiclip Method
Reply With Quote #63

very simple and nice, gonna try
Zpoke is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 10-20-2009 , 01:56   Re: New Semiclip Method
Reply With Quote #64

dont even dare to use my plugin since it has an even worse performance since i added a distance check whether a player really needs to be transparent. furthermore ive added a cvar to enable/disable the plugin which is performing a lot of performance, too.

Quote:
Originally Posted by Alka View Post
What? This is the best method for semiclip finded until now, and it doesn't have "bad performancing"...
trust me, it has. just imagine 32 slot server: looking through all players in pre and postthink will take a lot of performance and higher the cpu usage a lot which may result in lags or for the usual cs even to situations in which the server does not accept you hitting your opponent.

ofc this is yet the best method but this will change this joaquimandrade released a very nice module with which collision between players could simply be turned off (at least i hope this ^^).
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-21-2009 , 10:57   Re: New Semiclip Method
Reply With Quote #65

That's true.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
laziboi72
Senior Member
Join Date: Aug 2009
Location: deathrun_temple
Old 10-30-2009 , 18:38   Re: New Semiclip Method
Reply With Quote #66

Very nice plugin, thanks dude.
__________________
Taking a break from modding dunno when i will be back

FAIL, RIGHT HERE
laziboi72 is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 11-14-2009 , 12:30   Re: New Semiclip Method
Reply With Quote #67

Can someone change this attached semiclip so, that it should only give semiclip to CT's!
It should not give it to T's!
KadiR is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-15-2009 , 20:18   Re: New Semiclip Method
Reply With Quote #68

Cool,thanks!
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
zombieplague
Veteran Member
Join Date: Apr 2009
Old 12-06-2009 , 19:28   Re: New Semiclip Method
Reply With Quote #69

How do i change the colour?
zombieplague is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-18-2009 , 01:25   Re: New Semiclip Method
Reply With Quote #70

Seems that if you set semiclip at right times, damage is enabled, names show fine.
Dunno with that rotating entities bug, please try this version :

Code may need some adjustements (restore check could be useless for example), just wanna let you guys test it.

PHP Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>

new const VERSION[] = "0.7.0"

const MAX_PLAYERS 32

new g_iPlayers[MAX_PLAYERS], g_iNumg_iPlayeri
new const g_szAliveFlags[] = "a"
#define RefreshPlayersList()    get_players(g_iPlayers, g_iNum, g_szAliveFlags)

public plugin_init()
{
    
register_plugin("Semiclip"VERSION"ConnorMcLeod")

    
register_forward(FM_AddToFullPack"FM_client_AddToFullPack_Post"1)

    
RegisterHam(Ham_Player_PreThink"player""Ham_CBasePlayer_PreThink_Post"1)
}

public 
FM_client_AddToFullPack_Post(eseiEntidhostflagsplayerpSet)
{
    if( 
player && id != iEnt && get_orig_retval() && is_user_alive(id) )
    {
        
set_es(esES_SolidSOLID_NOT)

        static 
Float:flDistance
        flDistance 
entity_range(idiEnt)
        if( 
flDistance 512.0 )
        {
            
set_es(esES_RenderModekRenderTransAlpha)
            
set_es(esES_RenderAmtfloatround(flDistance)/2)
        }
    }
}

public 
Ham_CBasePlayer_PreThink_Post(id)
{
    if( !
is_user_alive(id) )
    {
        return
    }

    
RefreshPlayersList()

    for(
0i<g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if( 
id != g_iPlayer )
        {
            
set_pev(g_iPlayerpev_solidSOLID_NOT)
        }
    }
}

public 
client_PostThink(id)
{
    if( !
is_user_alive(id) )
    {
        return
    }

    
RefreshPlayersList()

    for(
0i<g_iNumi++)
    {
        
g_iPlayer g_iPlayers[i]
        if( 
g_iPlayer != id )
        {
            
set_pev(g_iPlayerpev_solidSOLID_SLIDEBOX)
        }
    }

Attached Files
File Type: sma Get Plugin or Get Source (semiclip.sma - 1843 views - 1.5 KB)
__________________
- tired and retired -

Last edited by ConnorMcLeod; 02-07-2010 at 10:09.
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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


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