Raised This Month: $ Target: $400
 0% 

how can i find out functnion of virtual offs argements?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tjdgns9246
Member
Join Date: Dec 2009
Old 01-07-2012 , 19:00   how can i find out functnion of virtual offs argements?
Reply With Quote #1

hello modders!

i have a question about virtual function.

now i have 3 kinds of virtual table, CCSPlayer, CCSGameRules and

CBaseCombatWeapon from IDA.

i get the picture little bit by searching the other threads.


but, i can't find out what the argments do in their virtual offset


for examble,

PHP Code:
460    CCSPlayer::Blind(float,float,float
i don't know what that 3 floats means and return.

i need your helps, modders.

thanks.


p.s it would be better if you teach me how to use virtual offset in detail, not by wiki

Last edited by tjdgns9246; 07-20-2013 at 13:17.
tjdgns9246 is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 01-07-2012 , 19:23   Re: how can i find out functnion of virtual offs argements?
Reply With Quote #2

There's probably some info on what the parameters do in the server library you're looking at. If you can't find anything, take a shot and start doing some guessing. I attached a plugin that will attempt to create an sdkcall for CSSPlayer::Blind. I also included the gamedata. If what I wrote works, great , if not start changing the pass type for the parameters. You can test the sdkcall plugin with "sm_sdkblind 10.0 10.0 10.0" You have to be in game though.
Attached Files
File Type: sp Get Plugin or Get Source (blind.sp - 243 views - 1.2 KB)
File Type: txt blind.txt (146 Bytes, 143 views)
__________________

Last edited by McFlurry; 01-07-2012 at 19:23.
McFlurry is offline
Send a message via Skype™ to McFlurry
tjdgns9246
Member
Join Date: Dec 2009
Old 01-07-2012 , 19:33   Re: how can i find out functnion of virtual offs argements?
Reply With Quote #3

Quote:
Originally Posted by McFlurry View Post
There's probably some info on what the parameters do in the server library you're looking at. If you can't find anything, take a shot and start doing some guessing. I attached a plugin that will attempt to create an sdkcall for CSSPlayer::Blind. I also included the gamedata. If what I wrote works, great , if not start changing the pass type for the parameters. You can test the sdkcall plugin with "sm_sdkblind 10.0 10.0 10.0" You have to be in game though.
so, how can i find parameters information in server library?

and i still don't know how can i get their returns.

Last edited by tjdgns9246; 01-07-2012 at 19:39.
tjdgns9246 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-07-2012 , 21:18  
Reply With Quote #4

If its not in the SDK, you aren't going to get much info about what the parameters do or the return type without learning ASM.
__________________
asherkin is offline
tjdgns9246
Member
Join Date: Dec 2009
Old 01-08-2012 , 03:23   Re: how can i find out functnion of virtual offs argements?
Reply With Quote #5

Quote:
Originally Posted by asherkin View Post
If its not in the SDK, you aren't going to get much info about what the parameters do or the return type without learning ASM.
hm, how can i find them which are in sdk?

and is there any tut for getting them if there aren't in sdk?

sorry for asking again and again

Last edited by tjdgns9246; 07-20-2013 at 13:18.
tjdgns9246 is offline
tjdgns9246
Member
Join Date: Dec 2009
Old 01-08-2012 , 04:44   Re: how can i find out functnion of virtual offs argements?
Reply With Quote #6

Quote:
Originally Posted by McFlurry View Post
There's probably some info on what the parameters do in the server library you're looking at. If you can't find anything, take a shot and start doing some guessing. I attached a plugin that will attempt to create an sdkcall for CSSPlayer::Blind. I also included the gamedata. If what I wrote works, great , if not start changing the pass type for the parameters. You can test the sdkcall plugin with "sm_sdkblind 10.0 10.0 10.0" You have to be in game though.
i have tested with your plugin.

at first when i typed !sdkblind 10.0 10.0 10.0, console showed me an error, array index out of bounds.

so i fixed it simply.

anyway, it didn't work at all even when i changed SDKPassMethod.

and i now i have another problem.

if some virtual functions numbers are overriding, how can i set them?

thanks

Last edited by tjdgns9246; 07-20-2013 at 13:18.
tjdgns9246 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 22:00.


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