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

Function EnableVisualEffects

engine/Poseidon/World/Simulation/Simul.cpp:1179–1189  ·  view source on GitHub ↗

namespace Poseidon

Source from the content-addressed store, hash-verified

1177
1178} // namespace Poseidon
1179bool EnableVisualEffects(Vector3Par effPos, SimulationImportance prec)
1180{
1181 using namespace Poseidon;
1182 if (IsDedicatedServer())
1183 {
1184 return false;
1185 }
1186 Vector3 pos = GScene->GetCamera()->Position();
1187 float dist2 = pos.Distance2(effPos);
1188 return dist2 < Square(ENGINE_CONFIG.objectsZ);
1189}
1190namespace Poseidon
1191{
1192

Callers 15

EnableVisualEffectsMethod · 0.85
SimulateMethod · 0.85
AdvanceMoveQueueMethod · 0.85
SimulateExhaustMethod · 0.85
FireWeaponEffectsMethod · 0.85
SimulateMethod · 0.85
SimulateMethod · 0.85
FireWeaponEffectsMethod · 0.85
FireWeaponEffectsMethod · 0.85
SimulateMethod · 0.85
FireWeaponEffectsMethod · 0.85
SimulateOneIterMethod · 0.85

Calls 5

IsDedicatedServerFunction · 0.85
GetCameraMethod · 0.80
SquareFunction · 0.50
PositionMethod · 0.45
Distance2Method · 0.45

Tested by

no test coverage detected