| 85 | } |
| 86 | |
| 87 | short GunMiss(int x, int y, int z, short velocity, short yRot, short roomNumber) |
| 88 | { |
| 89 | auto pos = GameVector( |
| 90 | LaraItem->Pose.Position.x + ((GetRandomControl() - 0x4000) << 9) / 0x7FFF, |
| 91 | LaraItem->Floor - 128, |
| 92 | LaraItem->Pose.Position.z + ((GetRandomControl() - 0x4000) << 9) / 0x7FFF, |
| 93 | LaraItem->RoomNumber); |
| 94 | |
| 95 | pos.y = GetPointCollision(pos.ToVector3i(), pos.RoomNumber).GetFloorHeight(); |
| 96 | |
| 97 | Ricochet(Pose(pos.ToVector3i())); |
| 98 | SpawnDecal(pos.ToVector3(), pos.RoomNumber, DecalType::BulletHole); |
| 99 | return GunShot(x, y, z, velocity, yRot, roomNumber); |
| 100 | } |
| 101 | |
| 102 | short GunHit(int x, int y, int z, short velocity, short yRot, short roomNumber) |
| 103 | { |
nothing calls this directly
no test coverage detected