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

[EXTENSION] Hooker


Post New Thread Reply   
 
Thread Tools Display Modes
franzcis066
Member
Join Date: Nov 2007
Old 05-18-2008 , 16:05   Re: [EXTENSION] Hooker *BETA
Reply With Quote #11

I tried the code also when buying new weapons.. It doesn't replace the old weapon.. It deletes the ammo and keeps the old one.

Is it possible to only hook a drop event on death?
franzcis066 is offline
raydan
Senior Member
Join Date: Aug 2006
Old 05-18-2008 , 22:49   Re: [EXTENSION] Hooker *BETA
Reply With Quote #12

RegisterHook(HK_Spawn, OnSpawnFunction, false);

if AddHooksToEntity a entity A "prop_physics" , B "prop_dynamic".
these 2 entity will use a same function "OnSpawnFunction".

in "OnSpawnFunction", it need to find out which entity is.
raydan is offline
Fredd
Veteran Member
Join Date: Jul 2007
Old 05-18-2008 , 22:51   Re: [EXTENSION] Hooker *BETA
Reply With Quote #13

get the class name of the entity in the OnSpawnFunction using the entity param....
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!

Last edited by Fredd; 05-18-2008 at 22:54.
Fredd is offline
LocutusH
Senior Member
Join Date: Dec 2007
Location: Hungary
Old 05-19-2008 , 03:04   Re: [EXTENSION] Hooker *BETA
Reply With Quote #14

Can we replace the hacks extension with this, so that plugins that require the hacks extension will still work?
__________________
LocutusH is offline
Fredd
Veteran Member
Join Date: Jul 2007
Old 05-19-2008 , 03:26   Re: [EXTENSION] Hooker *BETA
Reply With Quote #15

what do you mean by replace? the hacks extension are both 3rd party extensions...
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
raydan
Senior Member
Join Date: Aug 2006
Old 05-19-2008 , 08:37   Re: [EXTENSION] Hooker *BETA
Reply With Quote #16

hook aprop_physics entity with HK_StartTouch not work
raydan is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 05-19-2008 , 10:39   Re: [EXTENSION] Hooker *BETA
Reply With Quote #17

Good job Fredd! Nice release!

__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
SAMURAI16
BANNED
Join Date: Sep 2006
Old 05-19-2008 , 13:11   Re: [EXTENSION] Hooker *BETA
Reply With Quote #18

would be nice if an EmitSound hook would be implemented
SAMURAI16 is offline
Send a message via MSN to SAMURAI16
Fredd
Veteran Member
Join Date: Jul 2007
Old 05-19-2008 , 14:27   Re: [EXTENSION] Hooker *BETA
Reply With Quote #19

Quote:
Originally Posted by raydan View Post
hook aprop_physics entity with HK_StartTouch not work
most entities tend not to have a start touch, use just HK_Touch on that one...
Quote:
Originally Posted by L. Duke View Post
Good job Fredd! Nice release!

thanks
Quote:
Originally Posted by SAMURAI16 View Post
would be nice if an EmitSound hook would be implemented
i thought it but there asa EmitSound hook in the sdktools, look under sdktools_sound you will find something like AddAmbientSoundHook and AddNormalSoundHook
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd is offline
raydan
Senior Member
Join Date: Aug 2006
Old 05-19-2008 , 21:58   Re: [EXTENSION] Hooker *BETA
Reply With Quote #20

i try all Touch on prop_physics, not work
raydan is offline
Reply



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 01:16.


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