View Single Post
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 09-24-2021 , 06:48   Re: [L4D2][WIN] Collision Hook
Reply With Quote #16

Quote:
Originally Posted by BHaType View Post
Seems to be working atleast this code doesn't crash.

PHP Code:
#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <sdktools>

enum EFilterResult
{
    
PASS_IGNORE = -1,
    
PASS_ALLOW 0,
    
PASS_BLOCK 1
};

public 
EFilterResult OnPassServerEntityFilter (int leftint right)
{
    return 
PASS_ALLOW;

Edit:
- Added linux support
- Fixed IsStaticProp function
Omg, finally!
cravenge is offline