Originally posted by 2027
I posted CG_Trace in the pastebin link. That was the whole point lol. And I did get CG_CanSeeFriendlyHead working in mw2
EDIT:
FX_GetClientVisibility is in CG_CanSeeFriendlyHead in MW2. You must have had the wrong FX_GetClientVisibility
lol, sorry I didnt notice that you posted the CG_Trace address in the pastebin

//Easier way
CG_LocationalTrace(&trace, cg_t->refdef.viewOrigin, Headpos, cg_t->clientNumber, 0x2803001, false, 0); //You wont need a null vector3
btw I dubble-checked my FX_GetClientVisibility (0x15BB20) but couldnt find any errors. Is there any sub_15BB20 in your CG_CanSee function?