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

[Help] SDK Call


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Inhib
Member
Join Date: Oct 2014
Old 12-10-2014 , 04:18   [Help] SDK Call
Reply With Quote #1

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
Inhib is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 12-10-2014 , 06:47   Re: [Help] SDK Call
Reply With Quote #2

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.
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-10-2014 , 14:15   Re: [Help] SDK Call
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=243347
Bacardi is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-10-2014 , 14:26   Re: [Help] SDK Call
Reply With Quote #4

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.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 12-10-2014 at 14:35.
Powerlord is offline
Inhib
Member
Join Date: Oct 2014
Old 12-10-2014 , 20:33   Re: [Help] SDK Call
Reply With Quote #5

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?
Inhib is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 12-10-2014 , 21:07   Re: [Help] SDK Call
Reply With Quote #6

Quote:
Originally Posted by Inhib View Post
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()
__________________
WildCard65 is offline
Inhib
Member
Join Date: Oct 2014
Old 12-11-2014 , 02:55   Re: [Help] SDK Call
Reply With Quote #7

Quote:
Originally Posted by WildCard65 View Post
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?
Inhib is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-11-2014 , 10:09   Re: [Help] SDK Call
Reply With Quote #8

...did you even look my link and read it ???

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

Last edited by Bacardi; 12-11-2014 at 10:10.
Bacardi is offline
Inhib
Member
Join Date: Oct 2014
Old 12-11-2014 , 13:13   Re: [Help] SDK Call
Reply With Quote #9

Quote:
Originally Posted by Bacardi View Post
...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 is offline
Inhib
Member
Join Date: Oct 2014
Old 12-13-2014 , 03:31   Re: [Help] SDK Call
Reply With Quote #10

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?
Inhib is offline
Reply


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


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