Raised This Month: $159 Target: $400
 39% 

CollisionHook


Post New Thread Reply   
 
Thread Tools Display Modes
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 03-13-2013 , 11:42   Re: CollisionHook
Reply With Quote #11

Quote:
Originally Posted by Peace-Maker View Post
It works perfectly fine! There is no other way to do what this does.
In CS:S?
__________________
retired
shavit is offline
VoiDeD
SourceMod Plugin Unapprover
Join Date: Mar 2009
Location: Illinois, USA
Old 03-13-2013 , 19:50   Re: CollisionHook
Reply With Quote #12

Quote:
Originally Posted by shavit View Post
In CS:S?
Should be working fine in CS:S when compiled from tip.
__________________
VoiDeD is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 03-14-2013 , 01:26   Re: CollisionHook
Reply With Quote #13

but still crashing
Despirator is offline
VoiDeD
SourceMod Plugin Unapprover
Join Date: Mar 2009
Location: Illinois, USA
Old 03-14-2013 , 14:29   Re: CollisionHook
Reply With Quote #14

Are you compiling from source?
__________________
VoiDeD is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 03-14-2013 , 14:51   Re: CollisionHook
Reply With Quote #15

Works on cs:s but get random crashs...

Code:
#include <sourcemod>
#include <collisionhook>


#define VERSION "1.0"

#pragma semicolon 1

public Plugin:myinfo =
{
    name = "NoCollide using CollisionHook (with Team Filter)",
    author = "",
    description = "Players dont collide with team-mates.",
    version = VERSION,
    url = ""
};

public OnPluginStart()
{
    CreateConVar( "sm_nocollideteam_version", VERSION, "Version of NoCollide Team Filter", FCVAR_PLUGIN | FCVAR_REPLICATED | FCVAR_NOTIFY );
}

public Action:CH_PassFilter( ent1, ent2, &bool:result)
{
    if ( IsValidClient( ent1 ) && IsValidClient( ent2 ) )
        {
        if( GetClientTeam( ent1 ) != GetClientTeam( ent2 ) )
        {
            result = true;
            return Plugin_Handled;
        }
        result = false;
        return Plugin_Handled;
    }
    return Plugin_Continue;
}

stock bool:IsValidClient( client ) 
{
    if ( 0 < client <= MaxClients && IsClientInGame(client) ) 
        return true; 
     
    return false; 
}
SM 1.5dev MM1.10.0dev - linux

Last edited by Mirandor; 03-14-2013 at 15:04.
Mirandor is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 03-14-2013 , 19:56   Re: CollisionHook
Reply With Quote #16

Quote:
Originally Posted by Mirandor View Post
Works on cs:s but get random crashs...

Code:
#include <sourcemod>
#include <collisionhook>


#define VERSION "1.0"

#pragma semicolon 1

public Plugin:myinfo =
{
    name = "NoCollide using CollisionHook (with Team Filter)",
    author = "",
    description = "Players dont collide with team-mates.",
    version = VERSION,
    url = ""
};

public OnPluginStart()
{
    CreateConVar( "sm_nocollideteam_version", VERSION, "Version of NoCollide Team Filter", FCVAR_PLUGIN | FCVAR_REPLICATED | FCVAR_NOTIFY );
}

public Action:CH_PassFilter( ent1, ent2, &bool:result)
{
    if ( IsValidClient( ent1 ) && IsValidClient( ent2 ) )
        {
        if( GetClientTeam( ent1 ) != GetClientTeam( ent2 ) )
        {
            result = true;
            return Plugin_Handled;
        }
        result = false;
        return Plugin_Handled;
    }
    return Plugin_Continue;
}

stock bool:IsValidClient( client ) 
{
    if ( 0 < client <= MaxClients && IsClientInGame(client) ) 
        return true; 
     
    return false; 
}
SM 1.5dev MM1.10.0dev - linux
Quote:
Are you compiling from source?
__________________
Need help? PM me or add me on Steam.
My Steam




Quote:
Originally Posted by Rp.KryptoNite View Post
For some reason his Plugin never worked for me ,
@credits were added
im not stealing any plugins dude its my THING
minimoney1 is offline
VoiDeD
SourceMod Plugin Unapprover
Join Date: Mar 2009
Location: Illinois, USA
Old 03-15-2013 , 01:54   Re: CollisionHook
Reply With Quote #17

As is probably evident by now, you need to build from source if you want a working version in CS:S. The latest version on the downloads page (0.1) has a crash issue.

I'd build it myself and upload it, but I've been swamped with class work.
__________________
VoiDeD is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 03-15-2013 , 04:35   Re: CollisionHook
Reply With Quote #18

I use the version available on the download page ; i'll try to compile from source...
Mirandor is offline
Despirator
Senior Member
Join Date: Jun 2011
Location: Kazakhstan ->Shymkent
Old 03-15-2013 , 04:48   Re: CollisionHook
Reply With Quote #19

Quote:
Originally Posted by VoiDeD View Post
As is probably evident by now, you need to build from source if you want a working version in CS:S. The latest version on the downloads page (0.1) has a crash issue.

I'd build it myself and upload it, but I've been swamped with class work.
oh, didn't know that sorry... getting source to test
Despirator is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 03-15-2013 , 07:08   Re: CollisionHook
Reply With Quote #20

Quote:
Originally Posted by Despirator View Post
oh, didn't know that sorry... getting source to test
Unfortunatly i won't be able to compile it at this time ; if you make it for linux, may you share it please?
Mirandor 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 07:27.


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