I think you don't understand my problem properly - my camera rotates around pivot point. When I making SetParent to player its choosing the axises of pivot from player model. Pivot of player's model located at the foots. So any changes of origin and angles - won't help becase the problem is in the parent. Maybe I can some way attach to the standart camera entity (if it's exist) or any another entity that in the center of player?
My target - is to have custom thirdperson view like in Resident Evil from the shoulder.
P.S. I also tryed those function instead of game frame:
Code:
SDKHook(client, SDKHook_PostThinkPost, onThinkFunk);
SDKHook(client, SDKHook_PreThink, onThinkFunk);
SDKHook(client, SDKHook_PreThinkPost, onThinkFunk);
and it was still laggy.