Well, i got request from one of my comrades, and made this small utility.
CVARS
l4d_dmeter_version Plugin version
l4d_dmeter_enabled (Default 1, enabled) Enabled/Disabled cvar
Commands for
1.1 version:
/distance or
!distance in chat will activate distance calculating timer which will print distance into
center text (above crosshair) for crouching hunters.
1.2 version works with SM 1.3 only, but is more convenient, as it activates whenever hunter crouching
1.3 version added, see changelog.
Credits
One of my comrades for idea.
Atomic Striker for info.
And p3tsin for this thread
http://forums.alliedmods.net/showthr...168#post885168
Everyone on the alliedmods.net.
Valve for great game.
Things to do
Change infected type detection from GetClientModel to class property.
Changelog
1.1 Included trace system, using trace functions (thanx Atomic Striker), try new version. Should get distance between anything.
1.2 SM 1.3 version - autoactivates when hunter crouch.
1.3 Modified by Dragonshadow. Will compile as 1.2 or 1.3 version depending on your SM version. Added enabled/disabled cvar. Take a note - if you compile on forum it will be compiled as 1.2 version. EDIT: To make it more clear - 1.2 version now uses OnGameFrame and autoactivating on crouching.