Post: [SPRX/C++] CG_Trace (Alternate to AimTarget_IsTargetVisible)
09-05-2016, 06:29 AM #1
gopro_2027
Vault dweller
(adsbygoogle = window.adsbygoogle || []).push({}); My old source code for my private mw2 menu was lost on my corrupted harddrive so I have no motive to recreate a whole menu.
However, I did recently find CG_Trace address. I also found a forum post on another site on how to use CG_Trace to simulate AimTarget_IsTargetVisible.
I might just use snow engine and add it in idk. This should be public anyways.
You must login or register to view this content.
Have fun.

EDIT: I have found CG_CanSeeFriendlyHead but it works... very shittily. It doesn't seem to always recognize it properly. I think I also need to patch the function to work in 360 degrees and not just on my screen but otherwise I combined it with always shoot at visible but if no players are visible (or at least, it thinks none are) then to aim at the nearest and it seems to be a little bit more fluid and working but still not the bo2 style aimbot I want. If anybody knows how to patch it to make it work in 360 that would be great. I also think I found AImTarget_IsTargetVisible but according to sc58 it is like inside of a parent function or something so I haven't bothered to try it yet.
Last edited by gopro_2027 ; 09-08-2016 at 04:53 AM.

The following 3 users say thank you to gopro_2027 for this useful post:

Elemxnt, filon1001, lucasaf01
09-11-2016, 10:10 AM #11
TheGreenPlanet
Do a barrel roll!
Originally posted by 2027 View Post
Also how do I find refdef? I looked in the cod4 pdb to try to find a link and couldn't find anything to help.


Honestly ive tried finding refdef for mw2 but I dont know how to find it. If you look in the cod4 pdb theres a function called CG_InitView, this function should hold refdef but it isnt there in the mw2 function of CG_initView. I posted a thread asking for help, but I stil couldnt find it. The RefDef struct for MW3 was realesed. And I tried finding were it was located in the MW3 PDB but when I searched for it i found nothing.
You must login or register to view this content.
CG_InitView: 0x80628
CL_RenderScene: 0x47AE0

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo