Well hello guys here is my first public release. anyway, this is my first shot at debugging a game and finding the necesssary addresses so I can detour the proper functions. PROPS to okidoki for his MOHAA addresses because I was able to trace back from them... Debugging them in MOHAA and then again in the Medal of honor spearhead add-on. I hope this can help anyone in anyway. I know all of the intelligent post at GD have really helped me learn the fundamentals of game-hacking so like everybody else I like to give back. Its been alot of reading and learning, not only with game-hacking, but also compiling in C. Ebooks never really helped me do anything but organize my codez really, everything I learned was from forums/websites; though I dont know how long this will stay true.. haha I really havent found a book that I can understand from. Anyway I guess my point is without the necessary resources I would be lost. Anyway I have attached a version for both MOHAA and MOHSH. Ive also included a cvartable in which you can easily add cvars.
What is reversed:
CG_Draw2D
R_AddRefEntityToScene
R_RegisterFont
Cvar_Get
a little side note R_Drawstring is called from a function called CG_DrawString The void takes 5 arguments which are (x,y *text, *fontname, scale) This may be a little bit ghetto because instead of makeing a struct in which I could list all the possible fonts I just made a type char pointer to R_Registerfont(fontname) so there is no data structure which holds the fonts it just registers whatever text you put in. I was going to just make a slash-star list to reference them but I decided that would just be dumb. Anyway, im done with this base now so im not going to have any updates or anything. You call the function like this CG_DrawString( 100, 0, "MOHAA Basehook by eXoloon", "handle-23", 1) and here are the possible fonts.Code:Cvars: entityhack 0/1 makes all entitys visible behind walls which demonstrates how to use the R_AddRefEntityToScene function. drawtext 0/1 draws text at the top of the screen which demonstrates how to use the R_Draw2D function.
Code:"facfont-20" "courier-16" "courier-18" "courier-20" "handle-16" "handle-18" "handle-22" "handle-23" "marlett" "verdana-12" "verdana-14" possibly a few more in SH.




Reply With Quote
