Description
Pounce Announce will announce each successful pounce done by an infected hunter player to every player on the server. It will display the pouncer, the pounced, the damage and the distance traveled for the pounce.
This allows the survivor to see exactly how deadly each pounce was, and even compete with distance.
It supports uncapped hunter pounce servers (see
https://forums.alliedmods.net/showpo...02&postcount=4) and *should* be fine with modified super versus servers with more than 8 players.
Screenshots
[IMG]http://img195.**************/img195/1636/pounceannounce.th.jpg[/IMG]
CVARS
pounceannounce_minimum - The minimum amount of damage required to announce the pounce. Default is 0.
pounceannounce_centerchat - Announces the pounce to center chat. Use 0 for regular player chat. Default is 1.
pounceannounce_capdamage - Caps the displayed pounce damage to the maximum able to be dealt. Use 0 for theoretical max. Default is 0.
pounceannounce_showdistance - Announces the distance in game units and feet of the pounce. Default is 2.
Acceptable values for showdistance are:
0 - Do not display distance.
1 - Display units only.
2 - Display units and feet.
3 - Display units and meters.
4 - Display feet only.
5 - Display meters only.
CHANGELOG
1.5 - Added pounceannounce_capdamage, Added colors to announced line, and switched to AutoExecConfig for individual pounceannounce.cfg file
1.4 - Extended pounceannounce_showdistance to allow you to display units and/or feet and/or meters.
1.3 - Added pounce distance in feet and showdistance cvar
1.2 - Fixed a bug causing minimum pounce damage pounces to not be shown.
1.1 - Added pounce minimum, center chat/main chat cvar, and max available pounce damage to output.
1.0 - Initial version.
Installation
This plugin now uses the individualized config system. This means that you must set the cvar options in the pounceannounce.cfg file located in your cfg\sourcemod folder.
If the cfg file does not exist, run the plugin and it will generate one for you automatically.
Thanks
-Fyren, his assistance and example code helped me correctly calculate the distance between hunter lunges. The thread about the lunge_pounce event and the hunter pounce formula is
https://forums.alliedmods.net/showthread.php?t=93207
Suggestions for additions and improvement are welcomed. Eventually I'd like to use this code for a hunter (or infected) stats plugin.