| 24 | constexpr auto MAX_TRIGGER_RANGE = BLOCK(16); |
| 25 | |
| 26 | void 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 | |
| 35 | void TriggerChaffEffects(ItemInfo& item, int age) |
| 36 | { |
no test coverage detected