| 522 | } |
| 523 | |
| 524 | void HeavyGuardHit(ItemInfo& target, ItemInfo& source, std::optional<GameVector> pos, int damage, bool isExplosive, int jointIndex) |
| 525 | { |
| 526 | if (pos.has_value()) |
| 527 | { |
| 528 | if (jointIndex == 2) |
| 529 | { |
| 530 | DoBloodSplat(pos->x, pos->y, pos->z, 10, source.Pose.Orientation.y, pos->RoomNumber); |
| 531 | DoDamage(&target, INT_MAX); |
| 532 | } |
| 533 | else |
| 534 | { |
| 535 | SoundEffect(SFX_TR4_BADDY_SWORD_RICOCHET, &target.Pose); |
| 536 | TriggerRicochetSpark(*pos, source.Pose.Orientation.y, false); |
| 537 | } |
| 538 | } |
| 539 | } |
| 540 | } |
nothing calls this directly
no test coverage detected