Sigscanning, datamaps, and vfuncs
1 Attachment(s)
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. |
Re: Sigscanning, datamaps, and vfuncs
Seriously, post something!
Did it help out? What can be made better? What isn't there that should be? |
Re: Sigscanning, datamaps, and vfuncs
hi
|
Re: Sigscanning, datamaps, and vfuncs
I would like hook a method in the hl2sdk, that isn't virtual, do you know a way I could do that ? :|
|
Re: Sigscanning, datamaps, and vfuncs
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
|
Re: Sigscanning, datamaps, and vfuncs
oh, sounds difficult, this would be very neat :grrr:
|
Re: Sigscanning, datamaps, and vfuncs
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 :P). Again, questions, comments, and suggestions are welcome. |
All times are GMT -4. The time now is 03:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.