/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////
| 3821 | // |
| 3822 | //////////////////////////////////////////////////////////////////////////////////////// |
| 3823 | void NAV::ShowDebugInfo(const vec3_t& PlayerPosition, int PlayerWaypoint) |
| 3824 | { |
| 3825 | mUser.ClearActor(); |
| 3826 | CVec3 atEnd; |
| 3827 | |
| 3828 | // Show Nodes |
| 3829 | //------------ |
| 3830 | if (NAVDEBUG_showNodes || NAVDEBUG_showCombatPoints || NAVDEBUG_showNavGoals) |
| 3831 | { |
| 3832 | for (TGraph::TNodes::iterator atIter=mGraph.nodes_begin(); atIter!=mGraph.nodes_end(); atIter++) |
| 3833 | { |
| 3834 | CWayNode& at = (*atIter); |
| 3835 | atEnd = at.mPoint; |
| 3836 | atEnd[2] += 30.0f; |
| 3837 | |
| 3838 | |
| 3839 | if (gi.inPVS(PlayerPosition, at.mPoint.v)) |
| 3840 | { |
| 3841 | if (at.mType==NAV::PT_WAYNODE && NAVDEBUG_showNodes) |
| 3842 | { |
| 3843 | if (NAVDEBUG_showPointLines) |
| 3844 | { |
| 3845 | if (at.mFlags.get_bit(CWayNode::WN_FLOATING)) |
| 3846 | { |
| 3847 | CG_DrawEdge(at.mPoint.v, atEnd.v, EDGE_NODE_FLOATING ); |
| 3848 | } |
| 3849 | else |
| 3850 | { |
| 3851 | CG_DrawEdge(at.mPoint.v, atEnd.v, EDGE_NODE_NORMAL ); |
| 3852 | } |
| 3853 | } |
| 3854 | else |
| 3855 | { |
| 3856 | if (at.mFlags.get_bit(CWayNode::WN_FLOATING)) |
| 3857 | { |
| 3858 | CG_DrawNode(at.mPoint.v, NODE_FLOATING ); |
| 3859 | } |
| 3860 | else |
| 3861 | { |
| 3862 | CG_DrawNode(at.mPoint.v, NODE_NORMAL ); |
| 3863 | } |
| 3864 | } |
| 3865 | if (NAVDEBUG_showRadius && at.mPoint.Dist2(PlayerPosition)<(at.mRadius*at.mRadius)) |
| 3866 | { |
| 3867 | if (at.mFlags.get_bit(CWayNode::WN_FLOATING)) |
| 3868 | { |
| 3869 | CG_DrawRadius(at.mPoint.v, at.mRadius, NODE_FLOATING ); |
| 3870 | } |
| 3871 | else |
| 3872 | { |
| 3873 | CG_DrawRadius(at.mPoint.v, at.mRadius, NODE_NORMAL ); |
| 3874 | } |
| 3875 | } |
| 3876 | } |
| 3877 | else if (at.mType==NAV::PT_COMBATNODE && NAVDEBUG_showCombatPoints) |
| 3878 | { |
| 3879 | if (NAVDEBUG_showPointLines) |
| 3880 | { |
nothing calls this directly
no test coverage detected