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

SDK Hooks 2.1 - Updated 2011-9-10


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Flyflo
Senior Member
Join Date: Jun 2008
Location: Grenoble, France
Old 04-05-2010 , 15:01   Re: [EXTENSION] SDK Hooks 1.3 (Updated 02/02/10)
#501

Okay, thanks.
Flyflo is offline
Pawn 3-pg
Senior Member
Join Date: Jul 2009
Old 04-05-2010 , 15:04   Re: [EXTENSION] SDK Hooks 1.3 (Updated 02/02/10)
#502

Quote:
Originally Posted by psychonic View Post
Probably not. It's likely just a quirk of the game/engine that you can't teleport them until the next frame.
It doesn't have to be the next frame, it just has to be later in that frame.

I use this:
PHP Code:
//Used to teleport players when they touch
new bool:g_PlayerInTeleport[MAXPLAYERS+1]
new 
Float:g_PlayerInTeleport_Pos[MAXPLAYERS+1][3]
new 
Float:g_PlayerInTeleport_Ang[MAXPLAYERS+1][3]
new 
Float:g_PlayerInTeleport_Vel[MAXPLAYERS+1][3]

public 
OnPreThinkPost(client)
{
  if (
IsClientInGame(client) && IsPlayerAlive(client))
  {
    if (
g_PlayerInTeleport[client])
    {
      
TeleportEntity(clientg_PlayerInTeleport_Pos[client], g_PlayerInTeleport_Ang[client], g_PlayerInTeleport_Vel[client])
      
g_PlayerInTeleport_Pos[client] = NULL_VECTOR
      g_PlayerInTeleport_Ang
[client] = NULL_VECTOR
      g_PlayerInTeleport_Vel
[client] = NULL_VECTOR
      g_PlayerInTeleport
[client] = false
    
}
  }

When I want to teleport someone, I just set g_PlayerInTeleport and the other variables and it teleports them at the end of the frame.

The only problem with this method is that you can't use NULL_VECTOR properly.

Doing this:
PHP Code:
g_PlayerInTeleport_Pos[client] = NULL_VECTOR
g_PlayerInTeleport_Ang
[client] = NULL_VECTOR
g_PlayerInTeleport_Vel
[client] = NULL_VECTOR
TeleportEntity
(clientg_PlayerInTeleport_Pos[client],  g_PlayerInTeleport_Ang[client], g_PlayerInTeleport_Vel[client]) 
Is not the same as doing this:
PHP Code:
TeleportEntity(clientNULL_VECTORNULL_VECTORNULL_VECTOR
Pawn 3-pg is offline
OtterNas3
Senior Member
Join Date: Apr 2009
Old 04-06-2010 , 01:45   Re: [EXTENSION] SDK Hooks 1.3 (Updated 02/02/10)
#503

I'm gettin frustrated...

Code:
public OnClientPostAdminCheck(client)
{
    if (!IsFakeClient(client))
    {
        SDKHook(client, SDKHook_PreThink, OnPreThink);
    }
}

public OnPreThink(client)
{
    new iButtons = GetClientButtons(client);
    if (iButtons & IN_USE && GetClientAimTarget(client, false) == Door1Entity)
    {
        PrintToChat(client, "DEBUG# Door1Entity = %s", Door1Entity);
        PrintToChat(client, "DEBUG# ClientAimTarget = %s", GetClientAimTarget(client, false));
        
        iButtons &= ~IN_USE;
        SetEntProp(client, Prop_Data, "m_nButtons", iButtons);
    }
}
SourceMod Version Information:
SourceMod Version: 1.3.2
SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.3.2)
SourcePawn API: v1 = 4, v2 = 3
Compiled on: Apr 5 2010 02:55:29
Build ID: 2934:5b30a46671f1

Metamod:Source version 1.8.1-dev
Build ID: 695:1d1bc0e3eb0e-dev
Loaded As: Valve Server Plugin
Compiled on: Jan 11 2010
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/

Description: L4D - Versus
Mod Path: R:\ZZ_VALVE_Server\l4d_24\left4dead
DLL Path: r:\zz_valve_server\l4d_24\left4dead\bin\serve r.dll
Interface: ServerGameDLL005
Engine: Left 4 Dead (200

Using this SDKHooks version
http://tsunami-productions.googlecod...3-l4d-sm13.zip


What it should do
It should block Use commands on Door1Entity

What it does
When i look at Door (Door1Entity) and press use button, it opens as normal...

Both DEBUG prints show same entity id: "



Moo,
OtterNas3
OtterNas3 is offline
Senapi
Junior Member
Join Date: Jan 2010
Old 04-07-2010 , 09:01   Re: [EXTENSION] SDK Hooks 1.3 (Updated 02/02/10)
#504

I was wondering if someone could help me get this working /: i can't seem to sorry if i sound like a n00b im very new to this and still learnign
Senapi is offline
PteJack
Junior Member
Join Date: Apr 2010
Location: Canada
Old 04-09-2010 , 11:24   Re: [EXTENSION] SDK Hooks 1.3 (Updated 02/02/10)
#505

Hi Gang,

I'm hoping this is not a closed thread and it is being monitored!

I use to be an avid TFC Host and ran Pte Jack's TFC Server. I've owned HL2 for about 3 years now and have just started to set up my TF2 Server.
I really appreciate the plugins listed here and wish I had half the skill most of you do at creating this stuff.
I have a question regarding SDK_Hooks. Is this a plugin that feeds others, or is it a development tool that is added to maps and plugins at their compile time?
If this is a plugin required to enhance other plugins, is there a compile/instruction site on how to install into the server.
I've downed both ob sm124 and sm13 but can only find the dll extensions, gamedata and scripting files (in other words no .smx) to load it into the server.
Can someone give me a quick lowdown (in laymans terms) on how to use this, install it or point me to a tutorial? I'd appreciate it.

Server is Pte George's TF2 Server

Running TF2 Dedicated Server on a Windows 7 Home Premium 64bit Edition Box (not quite in console mode yet, still setting up right now and learning the new configs and stuff)

] meta version
Metamod:Source version 1.8.0
Build ID: 691:92ea98d22d75
Loaded As: Valve Server Plugin
Compiled on: Dec 19 2009
Plugin interface version: 15:14
SourceHook version: 5:5
http://www.metamodsource.net/

] meta list
Listing 4 plugins:
[01] SourceMod (1.3.1) by AlliedModders LLC
[02] TF2 Tools (1.3.1) by AlliedModders LLC
[03] BinTools (1.3.1) by AlliedModders LLC
[04] SDK Tools (1.3.1) by AlliedModders LLC

] sm version
SourceMod Version Information:
SourceMod Version: 1.3.1
SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.3.1)
SourcePawn API: v1 = 4, v2 = 3
Compiled on: Feb 10 2010 00:222
Build ID: 2917f33d01fcc28
http://www.sourcemod.net/

with the following plugins
] sm plugins list
[SM] Listing 24 plugins:
01 "Admin File Reader" (1.3.1) by AlliedModders LLC
02 "Admin Help" (1.3.1) by AlliedModders LLC
03 "Admin Menu" (1.3.1) by AlliedModders LLC
04 "Anti-Flood" (1.3.1) by AlliedModders LLC
05 "Basic Ban Commands" (1.3.1) by AlliedModders LLC
06 "Basic Chat" (1.3.1) by AlliedModders LLC
07 "Basic Comm Control" (1.3.1) by AlliedModders LLC
08 "Basic Commands" (1.3.1) by AlliedModders LLC
09 "Basic Info Triggers" (1.3.1) by AlliedModders LLC
10 "Basic Votes" (1.3.1) by AlliedModders LLC
11 "TF2 Birthday hack" (0.0.3) by R-Hehl
12 "TF2 Class Restrictions" (0.6) by Tsunami
13 "Class Enforcer" (0.2) by linux_lover
14 "Client Preferences" (1.3.1) by AlliedModders LLC
15 "Fun Commands" (1.3.1) by AlliedModders LLC
16 "Fun Votes" (1.3.1) by AlliedModders LLC
17 "MapChooser" (1.3.1) by AlliedModders LLC
18 "Nextmap" (1.3.1) by AlliedModders LLC
19 "Player Commands" (1.3.1) by AlliedModders LLC
20 "[TF2] Pumpkin" (0.2) by linux_lover
21 "RandomCycle" (1.3.1) by AlliedModders LLC
22 "Reserved Slots" (1.3.1) by AlliedModders LLC
23 "Rock The Vote" (1.3.1) by AlliedModders LLC
24 "Sound Commands" (1.3.1) by AlliedModders LLC

and extensions
] sm exts list
[SM] Displaying 8 extensions:
[01] Automatic Updater (1.3.1): Updates SourceMod gamedata files
[02] Webternet (1.3.1): Extension for interacting with URLs
[03] TF2 Tools (1.3.1): TF2 extended functionality
[04] BinTools (1.3.1): Low-level C/C++ Calling API
[05] Top Menus (1.3.1): Creates sorted nested menus
[06] SDK Tools (1.3.1): Source SDK Tools
[07] Client Preferences (1.3.1): Saves client preference settings
[08] SQLite (1.3.1): SQLite Driver

Thanks

Pte Jack (aka Pte Joe and Pte George)

Last edited by PteJack; 04-09-2010 at 11:40.
PteJack is offline
DaFox
Senior Member
Join Date: Mar 2005
Old 04-09-2010 , 18:51   Re: [EXTENSION] SDK Hooks 1.3 (Updated 02/02/10)
#506

Quote:
Originally Posted by OtterNas3 View Post
I'm gettin frustrated...
Use OnPlayerRunCmd
http://docs.sourcemod.net/api/index....d=show&id=937&

Quote:
Originally Posted by PteJack View Post
I have a question regarding SDK_Hooks. Is this a plugin that feeds others, or is it a development tool that is added to maps and plugins at their compile time?
If this is a plugin required to enhance other plugins, is there a compile/instruction site on how to install into the server.
I've downed both ob sm124 and sm13 but can only find the dll extensions, gamedata and scripting files (in other words no .smx) to load it into the server.
Can someone give me a quick lowdown (in laymans terms) on how to use this, install it or point me to a tutorial? I'd appreciate it.
SDK Hooks is an extension that plugins can utilize to do more advanced things. Plugins that use SDK Hooks require it to be running, sooo you don't need it unless you have a plugin that requires it.
__________________
Quote:
Originally Posted by Peoples Army
your from Finland? what country is that in?
DaFox is offline
PteJack
Junior Member
Join Date: Apr 2010
Location: Canada
Old 04-09-2010 , 21:44   Re: [EXTENSION] SDK Hooks 1.3 (Updated 02/02/10)
#507

Quote:
Originally Posted by DaFox View Post


SDK Hooks is an extension that plugins can utilize to do more advanced things. Plugins that use SDK Hooks require it to be running, sooo you don't need it unless you have a plugin that requires it.
Thanks for the quick reply DaFox.

I have the files put into the proper folders but I do not see the plugin list as started in Meta or SM. (Disregard and read next line!)

DOH!!! I guess that you need a plugin loaded that requires the SDK Hooks in order for it to load. I see it now in MM. I just didn't have a plugin that needed it before.


] Meta list
Listing 5 plugins:
[01] SourceMod (1.3.1) by AlliedModders LLC
[02] TF2 Tools (1.3.1) by AlliedModders LLC
[03] BinTools (1.3.1) by AlliedModders LLC
[04] SDK Tools (1.3.1) by AlliedModders LLC
[05] SDK Hooks (1.3.0) by Tsunami

Again Thanks

Pte Jack

Last edited by PteJack; 04-10-2010 at 00:29. Reason: I guess I'm a noob and I got it to work!! Doh!!!
PteJack is offline
deriggs007
Senior Member
Join Date: May 2009
Location: USA
Old 04-09-2010 , 23:53   Re: [EXTENSION] SDK Hooks 1.3 (Updated 02/02/10)
#508

This would be great if someone could possibly port this to Dark Messiah. It would be greatly appreciated!
deriggs007 is offline
Send a message via MSN to deriggs007
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 04-10-2010 , 03:32   Re: [EXTENSION] SDK Hooks 1.3 (Updated 02/02/10)
#509

I would compile it for Dark Messiah, however the SDK is throwing compile errors under Visual Studio 2008. I don't know if I'm supposed to compile under 2005 or what to make it work.
__________________
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
deriggs007
Senior Member
Join Date: May 2009
Location: USA
Old 04-12-2010 , 03:32   Re: [EXTENSION] SDK Hooks 1.3 (Updated 02/02/10)
#510

I talked to Psychonic he tried compiling to get it to work as well. SM's kinda buggy. It doesn't list the reason why it won't load.... feel sorry for him
deriggs007 is offline
Send a message via MSN to deriggs007
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:24.


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