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

Method FadingSpotability

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

Source from the content-addressed store, hash-verified

45const float MinVisibleFire = 0.63f;
46
47float Target::FadingSpotability() const
48{
49 float old = Glob.time - spotabilityTime - ValidTime - 1;
50 if (old < 0)
51 {
52 return spotability;
53 }
54 float ret = spotability - old * (1.0f / 30);
55 saturate(ret, 0, 4);
56 return ret;
57}
58
59float Target::FadingAccuracy() const
60{

Callers 7

TrackTargetsMethod · 0.80
AddTargetMethod · 0.80
DrawExtMethod · 0.80
FindSignMethod · 0.80
DrawTargetInfoMethod · 0.80
DrawTacticalDisplayMethod · 0.80
RevealTargetMethod · 0.80

Calls 1

saturateFunction · 0.85

Tested by

no test coverage detected