Resolver not flipping yaw

Пользователь
Статус
Оффлайн
Регистрация
2 Июл 2019
Сообщения
129
Реакции[?]
34
Поинты[?]
0
void Resolverswitch (C_BaseEntity * entity)
{
static float ResolvedYaw [65];
shots_missed [entity-> EntIndex ()] = shots_fire [entity-> EntIndex ()] - shots_hit [entity-> EntIndex ()];
const auto entity_animstate = entity-> AnimState ();
switch (shots_missed [entity-> EntIndex ()]% 5) {
case 0:
entity-> AnimState () -> m_flAbsRotation () = -60.f;
break;
case 1:
entity-> AnimState () -> m_flAbsRotation () = 60.f;
break;
case 2:
entity-> AnimState () -> m_flAbsRotation () = -89.f;
break;
case 4:
entity-> AnimState () -> m_flAbsRotation () = 89.f;
break;
}
}

I KNOW REALLY DISGUSTING but it wont brute at all it will just stay one side even when im missing
ITS BEING CALLED IN if (stage == FRAME_NET_UPDATE_POSTDATAUPDATE_START)
 
Dreammmless.
Эксперт
Статус
Оффлайн
Регистрация
19 Мар 2019
Сообщения
2,957
Реакции[?]
962
Поинты[?]
1K
void Resolverswitch (C_BaseEntity * entity)
{
static float ResolvedYaw [65];
shots_missed [entity-> EntIndex ()] = shots_fire [entity-> EntIndex ()] - shots_hit [entity-> EntIndex ()];
const auto entity_animstate = entity-> AnimState ();
switch (shots_missed [entity-> EntIndex ()]% 5) {
case 0:
entity-> AnimState () -> m_flAbsRotation () = -60.f;
break;
case 1:
entity-> AnimState () -> m_flAbsRotation () = 60.f;
break;
case 2:
entity-> AnimState () -> m_flAbsRotation () = -89.f;
break;
case 4:
entity-> AnimState () -> m_flAbsRotation () = 89.f;
break;
}
}

I KNOW REALLY DISGUSTING but it wont brute at all it will just stay one side even when im missing
ITS BEING CALLED IN if (stage == FRAME_NET_UPDATE_POSTDATAUPDATE_START)
idk if you still need this, but i called it in FRAME_RENDER_START and it works!
 
Сверху Снизу