AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   CollisionHook (https://forums.alliedmods.net/showthread.php?t=197815)

shavit 03-13-2013 10:42

Re: CollisionHook
 
Quote:

Originally Posted by Peace-Maker (Post 1908002)
It works perfectly fine! There is no other way to do what this does.

In CS:S?

VoiDeD 03-13-2013 18:50

Re: CollisionHook
 
Quote:

Originally Posted by shavit (Post 1911937)
In CS:S?

Should be working fine in CS:S when compiled from tip.

Despirator 03-14-2013 00:26

Re: CollisionHook
 
but still crashing

VoiDeD 03-14-2013 13:29

Re: CollisionHook
 
Are you compiling from source?

Mirandor 03-14-2013 13:51

Re: CollisionHook
 
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

minimoney1 03-14-2013 18:56

Re: CollisionHook
 
Quote:

Originally Posted by Mirandor (Post 1912617)
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?

VoiDeD 03-15-2013 00:54

Re: CollisionHook
 
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.

Mirandor 03-15-2013 03:35

Re: CollisionHook
 
I use the version available on the download page ; i'll try to compile from source...

Despirator 03-15-2013 03:48

Re: CollisionHook
 
Quote:

Originally Posted by VoiDeD (Post 1912910)
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

Mirandor 03-15-2013 06:08

Re: CollisionHook
 
Quote:

Originally Posted by Despirator (Post 1912953)
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?


All times are GMT -4. The time now is 14:03.

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