MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / FadingSideAccuracy

Method FadingSideAccuracy

engine/Poseidon/AI/AICenterStats.cpp:678–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676}
677
678float AITargetInfo::FadingSideAccuracy() const
679{
680 if (_timeSide < Glob.time - AccuracyLast - 2)
681 {
682 return 0;
683 }
684 const float invT = 1.0 / AccuracyLast;
685 float fade = 1 - (Glob.time - _timeSide - 2) * invT;
686 saturate(fade, 0, 1);
687 return _accuracySide * fade;
688}
689
690float AITargetInfo::FadingTypeAccuracy() const
691{

Callers 6

CreateTargetListMethod · 0.45
AddTargetMethod · 0.45
AssignTargetsMethod · 0.45
UpdateTargetMethod · 0.45
DrawTargetInfoMethod · 0.45
GrpKnowsAboutFunction · 0.45

Calls 1

saturateFunction · 0.85

Tested by

no test coverage detected