Fix legit backtrack Backstab not being done correctly
This commit is contained in:
parent
fd32b0662d
commit
081f145b39
@ -330,6 +330,8 @@ bool IsTickGood(hacks::tf2::backtrack::BacktrackData tick)
|
|||||||
target_worldspace += (RAW_ENT(ent)->GetCollideable()->OBBMins() + RAW_ENT(ent)->GetCollideable()->OBBMaxs()) / 2.0f;
|
target_worldspace += (RAW_ENT(ent)->GetCollideable()->OBBMins() + RAW_ENT(ent)->GetCollideable()->OBBMaxs()) / 2.0f;
|
||||||
|
|
||||||
Vector angle = GetAimAtAngles(g_pLocalPlayer->v_Eye, target_worldspace);
|
Vector angle = GetAimAtAngles(g_pLocalPlayer->v_Eye, target_worldspace);
|
||||||
|
if (legit_stab)
|
||||||
|
angle = current_user_cmd->viewangles;
|
||||||
|
|
||||||
if (!angleCheck(ent, target_worldspace, angle))
|
if (!angleCheck(ent, target_worldspace, angle))
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user