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

Function TriggerChaffEffects

TombEngine/Game/effects/chaffFX.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24constexpr auto MAX_TRIGGER_RANGE = BLOCK(16);
25
26void TriggerChaffEffects(int flareLife)
27{
28 auto offset = g_GameFlow->GetSettings()->Flare.Offset.ToVector3i() + Vector3i(11, 32, -4);
29 auto pos = GetJointPosition(LaraItem, LM_LHAND, offset);
30 auto vec = GetJointPosition(LaraItem, LM_LHAND, Vector3i(11, 32, BLOCK(1) + Random::GenerateInt(0, 256)));
31 auto vel = vec - pos;
32 TriggerChaffEffects(*LaraItem, pos, vel, LaraItem->Animation.Velocity.z, TestEnvironment(ENV_FLAG_WATER, LaraItem->RoomNumber), flareLife);
33}
34
35void TriggerChaffEffects(ItemInfo& item, int age)
36{

Callers 2

FlareControlFunction · 0.85
DoFlareInHandFunction · 0.85

Calls 15

GetJointPositionFunction · 0.85
GenerateIntFunction · 0.85
TestEnvironmentFunction · 0.85
GetRandomDrawFunction · 0.85
SoundEffectFunction · 0.85
TriggerChaffSparklesFunction · 0.85
TestProbabilityFunction · 0.85
SpawnChaffBubbleFunction · 0.85
TriggerFlareSmokeFunction · 0.85
GetSettingsMethod · 0.80
IsLaraMethod · 0.80
Vector3iClass · 0.70

Tested by

no test coverage detected