Skip to content

Commit 762f2b5

Browse files
committed
adjust initial target timer when DistributeTargetingFrame is enabled
- in vanilla there's a 45 frames delay for TargetTimer when initiating a techno, but with DistributeTargetingFrame set it'll be 0-15 frames - this shorter delay makes preplaced units engage things earlier than intended, which is problematic in some scenarios - set the delay to 45-60 to cover the original 45 frames
1 parent 698343d commit 762f2b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Ext/Techno/Hooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ DEFINE_HOOK(0x6F42F7, TechnoClass_Init, 0x2)
285285
if (!(pThis->Owner->IsControlledByHuman() && RulesExt::Global()->DistributeTargetingFrame_AIOnly)
286286
&& pTypeExt->DistributeTargetingFrame.Get(RulesExt::Global()->DistributeTargetingFrame))
287287
{
288-
pThis->TargetingTimer.Start(ScenarioClass::Instance->Random.RandomRanged(0, 15));
288+
pThis->TargetingTimer.Start(ScenarioClass::Instance->Random.RandomRanged(45, 60));
289289
}
290290

291291
if (pThis->AbstractFlags & AbstractFlags::Foot)

0 commit comments

Comments
 (0)