| 1565 | } |
| 1566 | |
| 1567 | void GuardHit(ItemInfo& target, ItemInfo& source, std::optional<GameVector> pos, int damage, bool isExplosive, int jointIndex) |
| 1568 | { |
| 1569 | if (pos.has_value()) |
| 1570 | { |
| 1571 | if (jointIndex == GUARD_HEAD_MESH) |
| 1572 | { |
| 1573 | DoBloodSplat(pos->x, pos->y, pos->z, 10, source.Pose.Orientation.y, pos->RoomNumber); |
| 1574 | DoDamage(&target, INT_MAX); |
| 1575 | |
| 1576 | return; |
| 1577 | } |
| 1578 | else |
| 1579 | DoBloodSplat(pos->x, pos->y, pos->z, 10, source.Pose.Orientation.y, pos->RoomNumber); |
| 1580 | } |
| 1581 | |
| 1582 | DoItemHit(&target, damage, isExplosive); |
| 1583 | } |
| 1584 | } |
nothing calls this directly
no test coverage detected