Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReplayCoolsRight

Fixes incorrect heat animation on replay cars.

Problem

Replay cars can appear to overheat in situations where they shouldn't:

  • WarpAnchor — hitting a warp anchor normally broadcasts a cooldown event, which replay cars don't receive
  • SetAbilitiesTrigger — trigger zones that set infinite cooldown use GUtils.IsRelevantLocalCar internally, which filters out replay cars

Fix

Two Harmony patches:

  • PlayerDataBase.OnEventWarpAnchorHit — Postfix broadcasts Cooldown.Data for PlayerDataReplay instances
  • SetAbilitiesTrigger.OnTriggerEnter — Postfix calls CarLogic.SetInfiniteCooldown directly on the replay car when the trigger has infiniteCooldown_ = true

Scope

Only heat/cooldown state in replay is affected. Any other abilities (enableFlying_, enableBoosting_, etc.) or the abilities for real cars/drivers are intentionally untouched.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages