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

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 11-03-2011 , 14:13   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1691

Quote:
Originally Posted by GoD-Tony View Post
2.1 output:
Code:
Index: 592 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: weapon_colt
Index: 593 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: weapon_frag_us
Index: 594 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: weapon_smoke_us
Index: 28 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: grenade_frag_us
2.2 output:
Code:
Index: -2112137211 - IsValidEntity: TRUE, IsValidEdict: FALSE, Classname: phys_hinge
Index: -2068768762 - IsValidEntity: TRUE, IsValidEdict: FALSE, Classname: phys_hinge

...

Index: 592 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: weapon_colt
Index: 593 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: weapon_frag_us
Index: 594 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: weapon_smoke_us
Index: 28 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: grenade_frag_us
Index: 28 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: grenade_frag_us
If it's easier enough to re-run the test, I'd also be curious if OnEntityDestroyed gets called for the grenade index between creations of it.

The new create/destroy tracking uses the same API on the global ent list that the game itself would use to track those (but that isn't to say that's without possible fault).

Last edited by psychonic; 11-03-2011 at 14:14.
psychonic is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 11-03-2011 , 14:28   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1692

Quote:
Originally Posted by psychonic View Post
If it's easier enough to re-run the test, I'd also be curious if OnEntityDestroyed gets called for the grenade index between creations of it.
Code:
Index: 593 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: weapon_frag_us
Index: 594 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: weapon_smoke_us

// nade thrown
Index: 28 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: grenade_frag_us
Index: 28 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: grenade_frag_us
OnEntityDestroyed: 593

// nade exploded
OnEntityDestroyed: 28
__________________
GoD-Tony is offline
Wanhk
New Member
Join Date: Nov 2011
Old 11-03-2011 , 22:47   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1693

Quote:
Originally Posted by Wanhk View Post
i also got "("sdkhooks.ext") not running" error. i installed source mod 1.4(stable) and SDKhooks 2.1(up-to-date), please help ( , sorry for bad englsih!

********************************************* **************
[SM] Unable to load plugin "l4d_climb.smx": Required extension "sdkhooks" file("sdkhooks.ext") not running
********************************************* **************
and the result of this command:
rcon sm exts load sdkhooks
Unable to connect to remote server (0.0.0.0:0)

what the f*** did i do wrong?
please help
Wanhk is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 11-04-2011 , 03:00   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1694

Quote:
Originally Posted by GoD-Tony View Post
Code:
// nade thrown
Index: 28 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: grenade_frag_us
Index: 28 - IsValidEntity: TRUE, IsValidEdict: TRUE, Classname: grenade_frag_us
OnEntityDestroyed: 593

// nade exploded
OnEntityDestroyed: 28
This appears to be fixed in r156. Are you just keeping track internally now?

Quote:
Originally Posted by Wanhk View Post
please help
I'm pretty sure this question has been answered in this thread. Make sure you follow the instructions on the first page, and read back to see what others did if it's still not working.
__________________

Last edited by GoD-Tony; 11-04-2011 at 03:01.
GoD-Tony is offline
psychonic

BAFFLED
Join Date: May 2008
Old 11-04-2011 , 09:00   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1695

Quote:
Originally Posted by GoD-Tony View Post
This appears to be fixed in r156. Are you just keeping track internally now?
Yup.

Got a CBitVec of the entity limit. Check all for existance and set bit for each on start. If already set on ent create, don't fire forward, set bit. Unset on ent destroy.

The probably seems to be from there being two paths that could call the OnEntityCreated listeners (anything in the game using that would also be affected). Depending on how the entity was created, both could be called.

I've updated the links to point to r156.

Thanks for testing! Let me know if you run into any other trouble.
psychonic is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 11-04-2011 , 10:36   Re: SDK Hooks 2.0
#1696

psychonic please add this feature : )

Quote:
Originally Posted by xbatista View Post
Suggestion Add new SDKHook forward :
SDKHook(client/entity, SDKHook_ModelChange, OnModelChanged);
public Action:OnModelChanged( client/entity , const String:oldmodel[], const String:newmodel[] );

Returning it Handle will not let change model to the new one :)
__________________

Last edited by xbatista; 11-04-2011 at 10:38.
xbatista is offline
Send a message via Skype™ to xbatista
psychonic

BAFFLED
Join Date: May 2008
Old 11-04-2011 , 10:37   Re: SDK Hooks 2.0
#1697

Quote:
Originally Posted by xbatista View Post
psychonic please add this feature : )
Not all model changes go through that function. It would be confusing and inconsistent to expose it.
psychonic is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 11-09-2011 , 11:15   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1698

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
Attached Files
File Type: sp Get Plugin or Get Source (crashy.sp - 330 views - 698 Bytes)
__________________

Last edited by Mecha the Slag; 11-09-2011 at 11:15.
Mecha the Slag is offline
trinityforge
Junior Member
Join Date: Nov 2011
Location: Norwich, England
Old 11-09-2011 , 14:08   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1699

What/Where do i put these files n' Which ones do i download

ServeR: Linux

Thanks quick responses help alot!
trinityforge is offline
Larsen
Senior Member
Join Date: Oct 2011
Old 11-09-2011 , 15:00   Re: SDK Hooks 2.1 - Updated 2011-9-10
#1700

Guys I hate to be the ignorant American, but it says updated: 2011-9-10. Does this mean September 10th, or October 9th?
__________________

Larsen 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 15:43.


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