Raised This Month: $12 Target: $400
 3% 

Module: SemiclipEx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hzqst
Senior Member
Join Date: Jul 2008
Old 04-22-2015 , 00:05   Module: SemiclipEx
Reply With Quote #1

SemiclipEx

Author: hzqst
Version: 1.0 (no more update maybe)
Description: this module allows player and bullet (traceline) to pass through any entities in condition that decided by amxx plugin author.
Quote:
The semiclip condition could be changed dynamically by amxx.
All kinds of entities could be semiclip, which means terrorists may go through a wall entity but CTs can not.
Linux:
Quote:
you have to compile this module yourself, the Detours library is useless so you can remove them.
I have compiled a sample plugin for you so just
Quote:
put everything from SemiclipEx\ to cstrike\
Example plugin:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <SemiclipEx>

#define PLUGIN "SemiclipEx Test"
#define VERSION "1.0.0"
#define AUTHOR "hzqst"

public PM_ShouldCollide(playerindexentindex)
{
    if(!
is_user_alive(entindex) || playerindex == entindex)
        return 
1;
    if(
get_user_team(playerindex) == get_user_team(entindex))
        return 
0;
    return 
1;
}

public 
ShouldCollide(playerindexentindex)
{
    new 
ret;
    if(!
is_user_alive(entindex) || playerindex == entindex)
        
ret 1;
    else if(
get_user_team(playerindex) == get_user_team(entindex))
        
ret 0;
    else
        
ret 1;
    
forward_return(FMV_CELLret);
    return 
FMRES_SUPERCEDE;
}

public 
AddToFullPack_Post(es_handle,e,ent,host,hostflags,player,pSet)
{
    if(
PM_ShouldCollide(hostent) == 0)
    {
        
set_es(es_handleES_SolidSOLID_NOT);
    }
    return 
FMRES_HANDLED;
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
SCE_RegisterForward(func_PM_ShouldCollide"PM_ShouldCollide");
    
register_forward(FM_ShouldCollide"ShouldCollide")
    
//Just for client-side prediction
    
register_forward(FM_AddToFullPack,"fw_AddToFullPack_Post",1)

Attached Files
File Type: zip SemiclipEx_full.zip (141.1 KB, 826 views)

Last edited by hzqst; 04-22-2015 at 04:33.
hzqst is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 04-22-2015 , 01:54   Re: Module: SemiclipEx
Reply With Quote #2

Sounds interesting, but wasn't this possible with normal AMXX code already or is there really a need for a module?
__________________
Kia is offline
hzqst
Senior Member
Join Date: Jul 2008
Old 04-22-2015 , 01:56   Re: Module: SemiclipEx
Reply With Quote #3

Quote:
Originally Posted by Kia View Post
Sounds interesting, but wasn't this possible with normal AMXX code already or is there really a need for a module?
AMXX can't make bullet/traceline semiclip because there is a bug on server-side engine phys code and i fixed it.

Last edited by hzqst; 04-22-2015 at 04:35.
hzqst is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-22-2015 , 02:55   Re: Module: SemiclipEx
Reply With Quote #4

This is semiclip module too, everything is decided by module, no need an amxx plugin.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 04-22-2015 , 09:36   Re: Module: SemiclipEx
Reply With Quote #5

Thanks for sharing , will try it when i get my computer .
Freezo Begin is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 04-22-2015 , 11:48   Re: Module: SemiclipEx
Reply With Quote #6

You should try to get client's team by get_pdata_int(Id, 114 /* Offset CSCZ Team */) - it is safer for mods such Zombie Plague.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 04-27-2015 , 09:12   Re: Module: SemiclipEx
Reply With Quote #7

Quote:
Originally Posted by yokomo View Post
This is semiclip module too, everything is decided by module, no need an amxx plugin.
Didn't you see the BIG advantage?
On that module you only can set semiclip per team or per all, but it doesn't individually.
Now, with this module you can select the player you want to set semiclip by a var per example.

Continue working on it, it's GREAT
baneado is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 05-15-2015 , 23:03   Re: Module: SemiclipEx
Reply With Quote #8

Just an example how ppl can use this module: https://www.youtube.com/watch?v=7P-Mrw1TrPU


Bugs found:
Quote:
1. Collision no longer work after pausing semiclipex.amxx ( possible solution: send something to module at plugin_pause() )
2. After enabling semiclipex.amxx back, there's no damage from falling until player passes through any team-mate

Last edited by lazarev; 05-16-2015 at 03:52.
lazarev is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 06-27-2015 , 04:08   Re: Module: SemiclipEx
Reply With Quote #9

Can someone compile this module for linux, please?
baneado is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 07-14-2015 , 17:01   Re: Module: SemiclipEx
Reply With Quote #10

This looks something I needed last months for finishing my Bomberman,
to bad only window .dll

Could someone fix a linux-compiled version (sorry for bumping thread)..
__________________
Retired.

Last edited by Xalus; 07-14-2015 at 17:01.
Xalus 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 10:48.


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