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

Sigscanning, datamaps, and vfuncs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
your-name-here
Member
Join Date: May 2007
Old 06-13-2008 , 10:09   Sigscanning, datamaps, and vfuncs
Reply With Quote #1

Hey everyone.

I figured I'd post my little project here. In this project, you will find code examples for the use of sigscanning, use of virtual functions, and the use of datamaps. I hope this helps people out.

I'd like to thank everyone in #sourcemod, especially LDuke, and Olly, who helped me out quite a lot!

There is a bit of untested code in this project at the moment. I take no responsibility for anything that happens to your computer, server, dog, mother, etc.. The source code is for DEMONSTRATION PURPOSES only!

The code uses BAILOPAN's signature scanner.

UPDATE:
-------June 22, 2008: Added a partial, but fully working menu system.
Attached Files
File Type: rar source_hacks1.1.rar (3.39 MB, 215 views)

Last edited by your-name-here; 06-22-2008 at 12:26.
your-name-here is offline
your-name-here
Member
Join Date: May 2007
Old 06-15-2008 , 10:57   Re: Sigscanning, datamaps, and vfuncs
Reply With Quote #2

Seriously, post something!

Did it help out? What can be made better? What isn't there that should be?
your-name-here is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 06-15-2008 , 13:36   Re: Sigscanning, datamaps, and vfuncs
Reply With Quote #3

hi
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 06-15-2008 , 15:57   Re: Sigscanning, datamaps, and vfuncs
Reply With Quote #4

I would like hook a method in the hl2sdk, that isn't virtual, do you know a way I could do that ?
berni is offline
your-name-here
Member
Join Date: May 2007
Old 06-15-2008 , 16:59   Re: Sigscanning, datamaps, and vfuncs
Reply With Quote #5

Yes, hooking non-virtual functions is possible, but it is VERY TOUGH from what I hear. pRED explained it to me. It involves modifying opcodes and a bunch of other stuff. I have never done it myself. Maybe I could make it my next addition to this project ;P
your-name-here is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 06-15-2008 , 17:33   Re: Sigscanning, datamaps, and vfuncs
Reply With Quote #6

oh, sounds difficult, this would be very neat
berni is offline
your-name-here
Member
Join Date: May 2007
Old 06-22-2008 , 12:31   Re: Sigscanning, datamaps, and vfuncs
Reply With Quote #7

I deleted the above message as it's not current anymore.

I did add a partial version of the "Dynamic Menu System" into my plugin.
My next objective is to work on adding "pages" to the menus.

At the moment, it's really simple to use. In the MenuHandler constructor, you would initialize your menu object and add it into the CUtlVector member variable. Then, you would add your choices to the menu. Finally, in the CMenuHandler::MenuHandler method, you would handle each choice accordingly. An example has been provided. Disregard the std::map and std::pair stuff. I will using those in order to "remember" what page each player is on.

I hope to comment my code more fully than it already is (which isn't much ).

Again, questions, comments, and suggestions are welcome.
your-name-here 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 20:29.


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