View Single Post
Mrs cheng
Member
Join Date: Mar 2017
Old 11-23-2018 , 06:07   Re: [L4D] How to count the distance in map route?
Reply With Quote #7

The following is an introduction to the script, I hope to help you.


float GetCurrentFlowDistanceForPlayer(CTerrorPlayer player)
Returns the navigation flow distance from the start to the specified player.

float GetCurrentFlowPercentForPlayer(CTerrorPlayer player)
Returns how far in the navigation flow from the start to the end the player is.

float GetFlowDistanceForPosition(Vector position)
Returns the navigation flow distance from the start to the specified point.

float GetCurrentFlowPercentForPosition(Vector position, bool unknown)
Returns how far in the navigation flow from the start to the end the position is.

float GetMaxFlowDistance()
Returns the navigation flow distance from the start to the end of the level.

float GetAverageSurvivorFlowDistance()
Returns the navigation flow distance from the start to the survivors position averaged.
Mrs cheng is offline