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

Method FadingTypeAccuracy

engine/Poseidon/AI/AICenterStats.cpp:690–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688}
689
690float AITargetInfo::FadingTypeAccuracy() const
691{
692 if (_timeType < Glob.time - AccuracyLast - 2)
693 {
694 return 0;
695 }
696 const float invT = 1.0 / AccuracyLast;
697 float fade = 1 - (Glob.time - _timeType - 2) * invT;
698 saturate(fade, 0, 1);
699 return _accuracyType * fade;
700}
701
702float AITargetInfo::FadingPositionAccuracy() const
703{

Callers 4

CreateTargetListMethod · 0.80
AssignTargetsMethod · 0.80
UpdateTargetMethod · 0.80
FindSignMethod · 0.80

Calls 1

saturateFunction · 0.85

Tested by

no test coverage detected