Raised This Month: $32 Target: $400
 8% 

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Jindo
AlliedModders Donor
Join Date: May 2009
Location: England, UK
Old 10-21-2009 , 12:28   Re: [EXTENSION] SDK Hooks
#21

Quote:
Originally Posted by berni View Post
And do you have examples what could be done with the SetTransmit() hook ? Why would I not let it send an entity to a player ?
Well, in TF2, you could fake a Nemesis or Domination and have the icon appear for a certain player exclusively above another player's head, if I'm not mistaken.

There's also general mind tricks to be done with a hook like that D:
__________________
Jindo is offline
Jindo
AlliedModders Donor
Join Date: May 2009
Location: England, UK
Old 10-21-2009 , 14:26   Re: [EXTENSION] SDK Hooks
#22

Hmm, just tried to use this on my Linux server, the extension wouldn't load.

I've got sdkhooks.ext.so in the extensions directory and sdkhooks.games.txt in the gamedata directory, I get a sourcemod error log telling me the extension failed to load.

Code:
undefined symbol: _Z11Native_HookPN10SourcePawn14IPluginContextEPKi
__________________
Jindo is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 10-21-2009 , 17:02   Re: [EXTENSION] SDK Hooks
#23

Quote:
Originally Posted by berni View Post
And do you have examples what could be done with the SetTransmit() hook ? Why would I not let it send an entity to a player ?
For example.
http://www.youtube.com/watch?v=xJ_wzO7cZZE
But this is high expensive for server's cpu.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
FoxMulder
Senior Member
Join Date: Jan 2009
Location: Orlando, FL
Old 10-21-2009 , 17:57   Re: [EXTENSION] SDK Hooks
#24

Would like to have something similiar to:
Code:
dhTakeDamage (apply damage to a player or entity by another player or entity)
So I can quit my DukeHacks addiction and switch over
__________________
FoxMulder is offline
Sammy-ROCK!
Senior Member
Join Date: Jun 2008
Location: Near Mrs.Lag
Old 10-23-2009 , 12:59   Re: [EXTENSION] SDK Hooks
#25

It could be
Code:
Action:TakeDamage(victim, &attacker, &inflictor, &Float:damage, &damagetype);
"Action:" so you can track if other plugins blocked or changed it. And if plugin_changed you can check their changes.
Sammy-ROCK! is offline
Kigen
BANNED
Join Date: Feb 2008
Old 10-24-2009 , 01:50   Re: [EXTENSION] SDK Hooks
#26

Nice extension.

I'ma play around with it.

Last edited by Kigen; 10-24-2009 at 02:05.
Kigen is offline
Jindo
AlliedModders Donor
Join Date: May 2009
Location: England, UK
Old 10-24-2009 , 04:02   Re: [EXTENSION] SDK Hooks
#27

Any sign of a fix for the Linux download yet? I'd love to try this!
__________________
Jindo is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 10-24-2009 , 12:17   Re: [EXTENSION] SDK Hooks
#28

The problem is DJ Tsunami didn't include the file natives.cpp as include file in the linux makefile...

I compiled it for ep1 engine successfully:
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0

Last edited by berni; 10-27-2009 at 15:07.
berni is offline
pRED*
Join Date: Dec 2006
Old 10-24-2009 , 15:23   Re: [EXTENSION] SDK Hooks
#29

What project?
pRED* is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 10-24-2009 , 17:25   Re: [EXTENSION] SDK Hooks
#30

sdkhooks_src.zip/Makfile:

Code:
OBJECTS = sdk/smsdk_ext.cpp extension.cpp
natives.cpp needs to be added to the objects list, otherwise it won't fine the symbols for the two functions in there on loading.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
Closed Thread


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 19:46.


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