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

Method FadingAccuracy

engine/Poseidon/World/Detection/Target.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59float Target::FadingAccuracy() const
60{
61 float fade = 1 - (Glob.time - accuracyTime - ValidTime - 1) * (1.0f / 240);
62 saturate(fade, 0, 1);
63 return accuracy * fade;
64}
65
66float Target::FadingSideAccuracy() const
67{

Callers 5

TrackTargetsMethod · 0.80
AddTargetMethod · 0.80
UpdateTargetMethod · 0.80
DrawTargetInfoMethod · 0.80
DrawTacticalDisplayMethod · 0.80

Calls 1

saturateFunction · 0.85

Tested by

no test coverage detected