Impulser
01-13-2010, 06:54 PM
Hey guys at GD, i've recently been reading upon the PE File format, manually mapping memory and things like that. After writing an Injector (In C#) which manually maps my dll into CS:S, the crosshair shows up etc.. meaning that I have hooked things like PaintTransverse, CreateMove and so on successfully. However, when I fire my gun with spread removal disabled my game doesn't crash but when I turn on spread removal it does.
When I use a normal injector with a slightly modified dll (just the main stub) the no spread works without fail. I don't see any reason to as why it crashes unless there is a fault when coppying sections of my dll to CS:S (Which I doubt because I have tested this over and over, not once has it "Magically" worked).
Hope you guys can help me out because i'm stumped...
Edit: It's none of my no-spread methods because if I stop calling the spread hooks and set the spread value to 0 it still crashes.
When I use a normal injector with a slightly modified dll (just the main stub) the no spread works without fail. I don't see any reason to as why it crashes unless there is a fault when coppying sections of my dll to CS:S (Which I doubt because I have tested this over and over, not once has it "Magically" worked).
Hope you guys can help me out because i'm stumped...
Edit: It's none of my no-spread methods because if I stop calling the spread hooks and set the spread value to 0 it still crashes.