| 1822 | |
| 1823 | |
| 1824 | void ShapeBase::getRenderMuzzleVector(U32 imageSlot,VectorF* vec) |
| 1825 | { |
| 1826 | MatrixF mat; |
| 1827 | getRenderMuzzleTransform(imageSlot,&mat); |
| 1828 | |
| 1829 | GameConnection * gc = getControllingClient(); |
| 1830 | if (gc && !gc->isAIControlled()) |
| 1831 | { |
| 1832 | MountedImage& image = mMountedImageList[imageSlot]; |
| 1833 | |
| 1834 | bool fp = gc->isFirstPerson(); |
| 1835 | if ((fp && image.dataBlock->correctMuzzleVector) || |
| 1836 | (!fp && image.dataBlock->correctMuzzleVectorTP)) |
| 1837 | if (getCorrectedAim(mat, vec)) |
| 1838 | return; |
| 1839 | } |
| 1840 | |
| 1841 | mat.getColumn(1,vec); |
| 1842 | } |
| 1843 | |
| 1844 | void ShapeBase::getRenderMuzzlePoint(U32 imageSlot,Point3F* pos) |
| 1845 | { |
nothing calls this directly
no test coverage detected