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

Method FadingPositionAccuracy

engine/Poseidon/AI/AICenterStats.cpp:702–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702float AITargetInfo::FadingPositionAccuracy() const
703{
704 if (_time < Glob.time - AccuracyLast - 2)
705 {
706 return 0;
707 }
708 const float invT = 1.0 / AccuracyLast;
709 float fade = 1 - (Glob.time - _time - 2) * invT;
710 saturate(fade, 0, 1);
711 return fade;
712}
713
714LSError AIGuardingGroup::Serialize(ParamArchive& ar)
715{

Callers 4

TestVehicleMethod · 0.80
ScanMethod · 0.80
DrawExtMethod · 0.80
FindSignMethod · 0.80

Calls 1

saturateFunction · 0.85

Tested by 1

TestVehicleMethod · 0.64