| 1794 | } |
| 1795 | |
| 1796 | void ShapeBase::getMuzzleVector(U32 imageSlot,VectorF* vec) |
| 1797 | { |
| 1798 | MatrixF mat; |
| 1799 | getMuzzleTransform(imageSlot,&mat); |
| 1800 | |
| 1801 | GameConnection * gc = getControllingClient(); |
| 1802 | if (gc && !gc->isAIControlled()) |
| 1803 | { |
| 1804 | MountedImage& image = mMountedImageList[imageSlot]; |
| 1805 | |
| 1806 | bool fp = gc->isFirstPerson(); |
| 1807 | if ((fp && image.dataBlock->correctMuzzleVector) || |
| 1808 | (!fp && image.dataBlock->correctMuzzleVectorTP)) |
| 1809 | if (getCorrectedAim(mat, vec)) |
| 1810 | return; |
| 1811 | } |
| 1812 | |
| 1813 | mat.getColumn(1,vec); |
| 1814 | } |
| 1815 | |
| 1816 | void ShapeBase::getMuzzlePoint(U32 imageSlot,Point3F* pos) |
| 1817 | { |
nothing calls this directly
no test coverage detected