-
Автор темы
- #1
Код:
while (auto cEnt = cEntIt->Next())
{
Vec3 Boness = ZERO;
if (auto cActor = cGameFramework->GetActorSystem()->GetActor(cEnt->GetEntityId()))
{
if (CheckDead(cAct, cActor))
continue;
auto POS = GetBonePositionByID(cEnt, GetKeyState(F1) ? "Bip01 Spine3" : "Bip01 Head");
if (GetAsyncKeyState(VK_LBUTTON))
if (cRender->IsFov(POS, FOV) && cGlobal->GetIPhysicalWorld()->isVisible(cEnt, cRender->GetViewCamera(), POS))
cWeapon->SetFiringPos(POS);
if (GetKeyState(F2)) FOV = FOV - 15;
if (GetKeyState(F5)) FOV = FOV + 15;
}
Последнее редактирование: