Skip to content

Commit

Permalink
Spawn Fire Around Player fix
Browse files Browse the repository at this point in the history
Doesn't spawn / create fires as the player anymore as it was causing them to boost the wanted level really fast
  • Loading branch information
Lordmau5 committed Aug 27, 2024
1 parent ce7b569 commit 4fa33ba
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SpawnFireAroundPlayerEffect : public EffectBase
p.y += inst->Random (-5.0f, 5.0f);
p.z = CWorld::FindGroundZForCoord (p.x, p.y);
auto *fire
= gFireManager.StartFire (p, 1.0f, 0, player, 6000, 0, 1);
= gFireManager.StartFire (p, 1.0f, 0, nullptr, 6000, 0, 1);
fireCoords.emplace_back (fire);
spawnFireTimer -= SPAWN_FIRE_TIME;
}
Expand All @@ -60,8 +60,7 @@ class SpawnFireAroundPlayerEffect : public EffectBase
if (pointInRadius (ped->GetPosition (), fire->m_vecPosition,
1.5f))
{
gFireManager.StartFire (ped, fire->m_pEntityCreator,
1.0f, 0, 500, 0);
gFireManager.StartFire (ped, nullptr, 1.0f, 0, 500, 0);
}
}
}
Expand Down

0 comments on commit 4fa33ba

Please sign in to comment.