vipoo / iRacingReplayOverlay.net

Tools to capture game data, and then transcode a captured video file - overlaying race status
GNU General Public License v3.0
37 stars 14 forks source link

Refinement to battle direction #28

Closed vipoo closed 10 years ago

vipoo commented 10 years ago

For races with lots of battles, the camera can switch constantly from 1 battle to the next.

But increasing the battle time, can result in following cars that have since stopped battling (cars have crashed etc).

So suggest a fix to allow the increase of battle time, but not follow battles that have since stopped.

Every n seconds evaluate if battle is still active, if not, then change to another random battle as per existing logic. Change the code in HasBattleTimeout method in RuleBattle to also evaluate if cars are still within the required time.

vipoo commented 10 years ago

Done. Checks if cars are still within time period (battleGap) during interim camera switches - if battle no longer active, a new battle is searched for.