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

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-17-2011 , 07:55   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1731

EDIT: damagetype is 0 for all types of damage.
__________________

Last edited by Silvers; 12-17-2011 at 12:16. Reason: update
Silvers is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-17-2011 , 10:50   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1732

Quote:
Originally Posted by Silvers View Post
In L4D SDKHook_OnTakeDamage and SDKHook_OnTakeDamagePost do not trigger ever, for clients or other entities and there are no error logs. L4D2 works fine.

This is a windows server:
SM/MM/SDK Hooks versions


Also tested on another server with SourceMod 1.3.4, MetaMod 1.9 and SDKHooks 2.1 with the same result, or lack of. (This could be linux or windows not sure).
Show your code. This is the first I'm heard of any such thing and L4D hasn't had any major update in ages.
psychonic is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-17-2011 , 11:57   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1733

Sorry... I should have tested further before posting, the callback triggers but the damagetype is always 0. Is this normal for L4D1?

I sat in fire, let a zomby hit me and jumped off a building, the damage type for all was 0. Do I have to check the attacker classname etc so I only do something on specific damage type? L4D2 works fine.
__________________

Last edited by Silvers; 12-17-2011 at 11:57.
Silvers is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-17-2011 , 12:04   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1734

Quote:
Originally Posted by Silvers View Post
Sorry... I should have tested further before posting, the callback triggers but the damagetype is always 0. Is this normal for L4D1?

I sat in fire, let a zomby hit me and jumped off a building, the damage type for all was 0. Do I have to check the attacker classname etc so I only do something on specific damage type? L4D2 works fine.
The hl2sdk-l4d might need to be updated. I'll take a look when time permits.
psychonic is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-17-2011 , 12:14   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1735

Quote:
Originally Posted by psychonic View Post
The hl2sdk-l4d might need to be updated. I'll take a look when time permits.

That would be much appreciated. I tested some more and damagetype is definitely 0 for everthinig. Thank you Psychonic.
__________________
Silvers is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-18-2011 , 21:19   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1736

Quote:
Originally Posted by psychonic View Post
The hl2sdk-l4d might need to be updated. I'll take a look when time permits.
Give this one a shot. Use the latest build from here, and overwrite the binary with one attached.

Sdkhooks source unchanged from http://hg.nicholashastings.com/sdkho...202b9df3d1d06/

patch to hl2sdk-l4d attached (seems like weapon was removed, or maybe never even there, making it like ep1).

If it works, I'll file a bug to get the hl2sdk-l4d repo updated.
Attached Files
File Type: so sdkhooks.ext.2.l4d.so (466.0 KB, 143 views)
File Type: dll sdkhooks.ext.2.l4d.dll (175.5 KB, 138 views)
File Type: patch weapon, where art thou.patch (1.4 KB, 135 views)
psychonic is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-18-2011 , 22:18   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1737

Using the dev version with/without the new binary causes the server to crash: "srcds.exe has stopped working".

The following error shows in console:
[SM] Unable to load extension "sdkhooks.ext": Cannot find EntityListeners offset.

Edit: Thanks for helping so quickly.
__________________

Last edited by Silvers; 12-18-2011 at 22:21.
Silvers is offline
psychonic

BAFFLED
Join Date: May 2008
Old 12-18-2011 , 22:33   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1738

Quote:
Originally Posted by Silvers View Post
The following error shows in console:
[SM] Unable to load extension "sdkhooks.ext": Cannot find EntityListeners offset.
Oh, right. That's because I forgot to add that to gamedata for probably all but ep2v when adding logical ent support.

Add this to the Offsets section in gamedata/sdkhooks.games/engine.l4d.txt
Code:
			"EntityListeners"
			{
				"windows"	"65572"
				"linux"		"65572"
				"mac"		"65572"
			}
psychonic is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 12-19-2011 , 00:02   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1739

EDIT2: Excellent work psychonic, damagetype in L4D working again.
__________________

Last edited by Silvers; 12-19-2011 at 00:07.
Silvers is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 12-19-2011 , 01:23   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1740

Quote:
Originally Posted by Mecha the Slag View Post
Hi. I have recently found out that SDKHook_WeaponSwitchPost hooked to a client crashes the server upon client death.

I have made a plugin that demonstrates this. I have only tested it on Windows and on TF2, but I can confirm it crashes on there.

I am running MetaMod:Source 1.9, SourceMod 1.5 and SDKHooks 2.1
Has this been fixed yet?
__________________
Mecha the Slag is offline
Closed Thread



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 02:08.


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