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

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 05-05-2011 , 06:24   Re: SDK Hooks 2.0
#1371

yeah assuming that they are the only thing he uses hooks for or he'd be complaining about allot more. Which is why I suspected the plugs. I had a plug that failed to work until I recompiled with the latest source and sdkhooks v2
__________________
Happy Happy Joy Joy

sinblaster is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-05-2011 , 08:24   Re: SDK Hooks 2.0
#1372

Quote:
Originally Posted by asherkin View Post
Well, you can't delete it without knowing if it's unloaded (since Windows just wont let you, and Linux will segfault).
And you can't unload it without knowing it's index (since there is no extension manager interface).
And you can't get it's index without some really nasty hacks (since, again, there is no extension manager interface).

Refusing to load was, and still is, the correct solution.
Minor nit, there is an extension manager iface (IExtensionManager), and you can unload without the index, but you would still need an IExtension pointer which I don't know that there's an easy (if any) way to get for other extensions.
psychonic is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-05-2011 , 13:44   Re: SDK Hooks 2.0
#1373

Can't you SM_GET_IFACE(EXTENSIONAPI, extsys) and extsys->FindExtensionByFile/Name it? And yes, the first one should be added to smsdk_* if it works.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-05-2011 , 14:00   Re: SDK Hooks 2.0
#1374

Quote:
Originally Posted by DJ Tsunami View Post
Can't you SM_GET_IFACE(EXTENSIONAPI, extsys) and extsys->FindExtensionByFile/Name it? And yes, the first one should be added to smsdk_* if it works.
Those methods do exist internally in SM but are not exposed to the public IExtensionManager.
psychonic is offline
Nail
BANNED
Join Date: May 2008
Location: PetrovЪ GradЪ
Old 05-09-2011 , 07:22   Re: SDK Hooks 2.0
#1375

prop_dynamic has no option OnPlayerUse
There are ways to determine OnPlayerUse for this entity?
Nail is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-09-2011 , 07:52   Re: SDK Hooks 2.0
#1376

Quote:
Originally Posted by Nail View Post
prop_dynamic has no option OnPlayerUse
There are ways to determine OnPlayerUse for this entity?
A prop_physics can be used. Is the SF_PHYSPROP_ENABLE_PICKUP_OUTPUT spawn flag being set?
psychonic is offline
Nail
BANNED
Join Date: May 2008
Location: PetrovЪ GradЪ
Old 05-09-2011 , 13:23   Re: SDK Hooks 2.0
#1377

prop_physics breaking physics on the server, therefore not suitable
Nail is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 05-09-2011 , 21:12   Re: SDK Hooks 2.0
#1378

No matter what I do, I can't change the force part of OnTakeDamage.

Specifically I'm attempting to remove the force altogether, but it's not working. I tried ScaleVector(fForce, 0.0) but it had no effect.

I'm also returning Plugin_Changed

any help appreciated, thanks!
__________________
Mecha the Slag is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-09-2011 , 21:21   Re: SDK Hooks 2.0
#1379

Quote:
Originally Posted by Mecha the Slag View Post
No matter what I do, I can't change the force part of OnTakeDamage.

Specifically I'm attempting to remove the force altogether, but it's not working. I tried ScaleVector(fForce, 0.0) but it had no effect.

I'm also returning Plugin_Changed

any help appreciated, thanks!
set it to {0.0,0.0,0.0}
psychonic is offline
Mecha the Slag
Veteran Member
Join Date: Jun 2009
Location: Denmark
Old 05-10-2011 , 12:55   Re: SDK Hooks 2.0
#1380

Quote:
Originally Posted by psychonic View Post
set it to {0.0,0.0,0.0}
It has no effect.

Any chance you could show me how to make it work?
__________________
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 21:13.


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