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

[L4D2] Collision Hook


Post New Thread Reply   
 
Thread Tools Display Modes
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 09-01-2020 , 02:59   Re: [L4D2][WIN] Collision Hook
Reply With Quote #11

Woah woah, chill. Clearly, there's something wrong going on but for the life of me, I can't point out the exact cause so not much of a help there. On the other hand, the plugin seems to be running fine on my end though I haven't included the forward in any other plugins so I'll report back in case of errors.
cravenge is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 12-28-2020 , 14:16   Re: [L4D2][WIN] Collision Hook
Reply With Quote #12

With the fixed offsets for SortFloats, the plugin is working again but the problem is I've been having random crashes lately. It seems this function doesn't want to be exposed and modified at all.

Last edited by cravenge; 12-28-2020 at 14:27.
cravenge is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 02-16-2021 , 17:46   Re: [L4D2][WIN] Collision Hook
Reply With Quote #13

Quote:
Originally Posted by cravenge View Post
With the fixed offsets for SortFloats, the plugin is working again but the problem is I've been having random crashes lately. It seems this function doesn't want to be exposed and modified at all.
I've been testing this function for a very long time and also noticed that sometimes it crashes but most likely this is the reason in the method of getting from IHandleEntity to CBaseEntity so maybe I'll look for another way
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-15-2021 , 07:06   Re: [L4D2][WIN] Collision Hook
Reply With Quote #14

still crash when launch windows server
[CRASH] Accelerator uploaded crash dump: Crash ID: L5IE-P4GY-TQR5
__________________

Last edited by HarryPotter; 09-15-2021 at 07:22.
HarryPotter is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 09-24-2021 , 03:22   Re: [L4D2][WIN] Collision Hook
Reply With Quote #15

Quote:
Originally Posted by HarryPotter View Post
still crash when launch windows server
[CRASH] Accelerator uploaded crash dump: Crash ID: L5IE-P4GY-TQR5
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
Attached Files
File Type: txt l4d2_pass_filter.txt (837 Bytes, 45 views)
File Type: sp Get Plugin or Get Source (l4d2_pass_filter.sp - 49 views - 5.5 KB)
__________________
cry

Last edited by BHaType; 09-24-2021 at 04:43. Reason: fixing
BHaType is offline
Send a message via AIM to BHaType
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
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 09-24-2021 , 07:16   Re: [L4D2][WIN] Collision Hook
Reply With Quote #17

Quote:
Originally Posted by BHaType View Post
Seems to be working atleast this code doesn't crash.
l4d2 windows, crash when launch server
L 09/24/2021 - 19:15:10: [CRASH] Accelerator uploaded crash dump: Crash ID: QQVI-3PNX-72WC
L 09/24/2021 - 19:15:13: [CRASH] Accelerator uploaded crash dump: Crash ID: HL3X-KCVP-OT77

nvm, I quit
__________________

Last edited by HarryPotter; 09-24-2021 at 07:17.
HarryPotter is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 09-24-2021 , 08:21   Re: [L4D2][WIN] Collision Hook
Reply With Quote #18

Quote:
Originally Posted by HarryPotter View Post
l4d2 windows, crash when launch server
L 09/24/2021 - 19:15:10: [CRASH] Accelerator uploaded crash dump: Crash ID: QQVI-3PNX-72WC
L 09/24/2021 - 19:15:13: [CRASH] Accelerator uploaded crash dump: Crash ID: HL3X-KCVP-OT77

nvm, I quit
I forgot to mention. This is only for sm 1.11
https://github.com/alliedmodders/sourcemod/pull/1346
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 09-24-2021 , 23:44   Re: [L4D2] Collision Hook
Reply With Quote #19

If anyone wants this to work on SM versions 1.10 and below, here's the signature:
PHP Code:
"CreateInterface"
{
    
"library"    "engine"
    "windows"    "\x55\x8B\x2A\x5D\xE9\x2A\x2A\x2A\x2A\xCC\xCC\xCC\xCC\xCC\xCC\xCC\x6A"
    
/* 55 8B ? 5D E9 ? ? ? ? CC CC CC CC CC CC CC 6A */

cravenge is offline
vikingo12
Member
Join Date: Nov 2018
Old 10-16-2021 , 13:36   Re: [L4D2] Collision Hook
Reply With Quote #20

Quote:
Originally Posted by cravenge View Post
If anyone wants this to work on SM versions 1.10 and below, here's the signature:
PHP Code:
"CreateInterface"
{
    
"library"    "engine"
    "windows"    "\x55\x8B\x2A\x5D\xE9\x2A\x2A\x2A\x2A\xCC\xCC\xCC\xCC\xCC\xCC\xCC\x6A"
    
/* 55 8B ? 5D E9 ? ? ? ? CC CC CC CC CC CC CC 6A */

still crashes
vikingo12 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 04:15.


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