MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Flash

Method Flash

TombEngine/Game/effects/weather.cpp:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 void EnvironmentController::Flash(int r, int g, int b, float speed)
92 {
93 FlashProgress = 1.0f;
94 FlashSpeed = std::clamp(speed, 0.005f, 1.0f);
95 FlashColorBase = Vector3(std::clamp(r, 0, UCHAR_MAX) / (float)UCHAR_MAX,
96 std::clamp(g, 0, UCHAR_MAX) / (float)UCHAR_MAX,
97 std::clamp(b, 0, UCHAR_MAX) / (float)UCHAR_MAX);
98 }
99
100 void EnvironmentController::UpdateSky(const ScriptInterfaceLevel& level)
101 {

Callers 7

FlameEmitter2ControlFunction · 0.80
ControlMineFunction · 0.80
BaboonDieEffectFunction · 0.80
RespawnAhmetFunction · 0.80
FlashOrangeFunction · 0.80
EmitFromProjectileFunction · 0.80
FlashScreenFunction · 0.80

Calls 1

Vector3Function · 0.50

Tested by

no test coverage detected