AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [Help] SDK Call (https://forums.alliedmods.net/showthread.php?t=252835)

Inhib 12-10-2014 04:18

[Help] SDK Call
 
SDK Calls seems really useful, unfortunately, I have no clue how to do it.

I know I need to use StartPrepSDKCall to prepare it.
,PrepSDKCall_ABCD to set stuff for it
And EndPrepSDKCall to end it and start the call.
It also seems like there are some other files which help define stuff for SDKCall.

But that's it, I have no clue how to use it beyond that, I would like to know what I can use the fiction for and how.

Thanks in advance

Root_ 12-10-2014 06:47

Re: [Help] SDK Call
 
At first I would recommend you to go to sdktools api, it has some SDKCall params.
AFAIK you need to define sdkcall params depends on signature... As an example plugin you can take a look here and there.

Bacardi 12-10-2014 14:15

Re: [Help] SDK Call
 
https://forums.alliedmods.net/showthread.php?t=243347

Powerlord 12-10-2014 14:26

Re: [Help] SDK Call
 
Of course... first you have to *know* what the SDK call is, its return type, and what its arguments are... and find its offset/signature.

Inhib 12-10-2014 20:33

Re: [Help] SDK Call
 
Guess I wasn't very clear with my post, here are some questions I have.

What are the call types I can use with StartPrepSDKCall? I know what they names of the types are but have no idea the difference between them function wise.

What can I do with SDKCall?

I'm guessing PrepSDKCall_SetFromConf defined what function I'm calling by looking into a game file, where are these game files located? What's the difference between offsets and signatures? Is there any place where all the functions are clearly defined for what they do?

In the sample code I see:
PHP Code:

PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain); 

The parameters of the function, what do they do? They seem pretty meaningless to me, in which case, why are they there?

WildCard65 12-10-2014 21:07

Re: [Help] SDK Call
 
Quote:

Originally Posted by Inhib (Post 2233638)
Guess I wasn't very clear with my post, here are some questions I have.

What are the call types I can use with StartPrepSDKCall? I know what they names of the types are but have no idea the difference between them function wise.

What can I do with SDKCall?

I'm guessing PrepSDKCall_SetFromConf defined what function I'm calling by looking into a game file, where are these game files located? What's the difference between offsets and signatures? Is there any place where all the functions are clearly defined for what they do?

In the sample code I see:
PHP Code:

PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain); 

The parameters of the function, what do they do? They seem pretty meaningless to me, in which case, why are they there?

Offset is an offset in a VTable.
EG(note, offset listed is not true):
vtable CTFPlayer:
0 0 bool CanBreatheUnderwater()

Inhib 12-11-2014 02:55

Re: [Help] SDK Call
 
Quote:

Originally Posted by WildCard65 (Post 2233654)
Offset is an offset in a VTable.
EG(note, offset listed is not true):
vtable CTFPlayer:
0 0 bool CanBreatheUnderwater()

What's a vtable and where can I find them?

Bacardi 12-11-2014 10:09

Re: [Help] SDK Call
 
...did you even look my link and read it ???

edit
https://forums.alliedmods.net/showthread.php?t=191171

Inhib 12-11-2014 13:13

Re: [Help] SDK Call
 
Quote:

Originally Posted by Bacardi (Post 2233916)
...did you even look my link and read it ???

edit
https://forums.alliedmods.net/showthread.php?t=191171

Sorry, did not check the link within your post

Inhib 12-13-2014 03:31

Re: [Help] SDK Call
 
Offsets are listed here: https://www.sourcemodplugins.org/vtableoffsets/tf
Still, what do they do? Is there anywhere their functions are listed?
And my earlier question is still unanswered,

In the sample code I see:
PHP Code:

PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain); 

The parameters of the function, what do they do? They seem pretty meaningless to me, in which case, why are they there?


All times are GMT -4. The time now is 05:36.

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