Code:
........... ... ... ......... ........... ........... ..........
........... ... ... ........... ........... ........... ..........
... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ...
... ...... ........... ... ... ........... ... ..........
... ...... ........... ... ... ........... ... ..........
... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ... ...
........... ... ... ........... ........... ... ..........
........... ... ... ......... ........... ... ..........
Description:
This plugin makes players less visible as they run faster. With the default values, they will be totaly invisible if they run all the time. This plugin emphasizes the gamer's ability to use sound as a vital tool in its success.
CVARs:
ghosts_mode:0: off (default)
1: on without glow
2: on with glow
ghosts_team:0: both teams (default)
1: CT only
2: T only
ghosts_speed:1 - 50: the speed above which players become totally invisible (default 20)
ghosts_glow:0 - 100: if the player speed is below ghosts_glow / 100 of ghosts_speed, he will glow (default 25)
Change Log: 0.3a:
code optimizations (thanks Lord_Destros for pointing them out)
0.3:
added cvar ghosts_team (thanks paulg for the ideea)
modified default values of ghosts_speed and ghosts_glow
removed cstrike from include directive
0.2:
added 2 cvars (ghosts_speed & ghosts_glow)
renamed amx_ghosts to ghosts_mode
bug fix on average distance traveled
0.1:
initial release