mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-27 11:34:14 +01:00
style change
This commit is contained in:
parent
229b8f304a
commit
b3f97cdce4
@ -1334,14 +1334,14 @@ CPed::ProcessObjective(void)
|
|||||||
// I hope so
|
// I hope so
|
||||||
CVector ourHead = GetMatrix() * CVector(0.5f, 0.0f, 0.6f);
|
CVector ourHead = GetMatrix() * CVector(0.5f, 0.0f, 0.6f);
|
||||||
CVector maxShotPos = m_carInObjective->GetPosition() - ourHead;
|
CVector maxShotPos = m_carInObjective->GetPosition() - ourHead;
|
||||||
maxShotPos.Normalise();
|
maxShotPos *= wepInfo->m_fRange / maxShotPos.Magnitude();
|
||||||
maxShotPos = maxShotPos * wepInfo->m_fRange + ourHead;
|
maxShotPos += ourHead;
|
||||||
|
|
||||||
CWorld::bIncludeDeadPeds = true;
|
|
||||||
CColPoint foundCol;
|
CColPoint foundCol;
|
||||||
CEntity *foundEnt;
|
CEntity *foundEnt;
|
||||||
CWorld::ProcessLineOfSight(ourHead, maxShotPos, foundCol, foundEnt,
|
|
||||||
true, true, true, true, false, true, false);
|
CWorld::bIncludeDeadPeds = true;
|
||||||
|
CWorld::ProcessLineOfSight(ourHead, maxShotPos, foundCol, foundEnt, true, true, true, true, false, true, false);
|
||||||
CWorld::bIncludeDeadPeds = false;
|
CWorld::bIncludeDeadPeds = false;
|
||||||
if (foundEnt == m_carInObjective) {
|
if (foundEnt == m_carInObjective) {
|
||||||
SetAttack(m_carInObjective);
|
SetAttack(m_carInObjective);
|
||||||
|
Loading…
Reference in New Issue
Block a user