View Single Post
Author Message
tcviper
Veteran Member
Join Date: Oct 2005
Location: Netherlands
Old 11-29-2007 , 11:36   Basic HP Left 1.2.1
Reply With Quote #1

Basic HP Left 1.2.1
This is a somewhat simple plugin that, on your death, will display who killed you, with what, and how much HP that player had left. This gets displayed to chat, and can be re-displayed by typing "hp" in chat.

Installation
1. Place hp_left.smx in your plugins directory,
2. Put hp_left_weapons.txt in your sourcemod/configs directory,
3. Put hp_left.phrases.txt in your sourcemod/translations directory,
4. Change map and it should be loaded.

Changelog
1.0 - Release
1.1 - Stupid mistake fix
1.1.1 - Changed colors of playername to light green and changed the other information to the default mod color (CSS: Yellow, TF2: White).
- Removed the Distance part
- Fixed the Native "GetClientAbsOrigin" reported: Client index 0 is invalid bug.
1.1.2 - Fixed [SM] Native "GetClientHealth" reported: Client index 0 is invalid
1.1.3 - Fixed [SM] Native "IsClientConnected" reported: Client index 0 is invalid
1.1.4 - Fixed world detection and GetEventString 0 to a strlen (thanks EKS)
1.1.5 - Optmized code and changed a few things to make sure it wont break with source engine updates
- Added support for DIPRIP and Insurgency
- Compiled against SourceMod 1.2
1.2.0 - Added Multi language support including the option to change colors in the language file
- Added custom weapon name support through a simple .txt file in sourcemod/configs
1.2.1 - Changed color codes in translation file to make sure they actually work
- Changed lines to say "xx hp left"
1.2.1a - Added new hp_left_weapons file for i /sourcemod/configs to support more TF2 weapons

Credits:
Original version by Vir-Dan I basically just did some tweaking to it to make it look better and fixed the bugs plus added options and optimized the code.
Thanks to Flyingmongoose for helping me out with this one.
Thanks to Tsunami for helping out with some parts of the code.

Screenshot example:
In Counter-Strike: Source:


Mods Supported:
- Age of Chivalry
- Counter-Strike: Source
- Day of Defeat: Source
- DIPRIP
- Dystopia
- Empires
- Fistfull of frags
- Half Life 2 Deathmatch
- Insurgency
- PVK II
- Team Fortress 2
- Should work on all other Source engine games/mods except l4d.

If you want more then just a simple plugin for Sourcemod like this then you might want to checkout MiniStats for MetaMod: Source.

Want more statistics?

MiniStats is a MetaMod: Source plugin for Source engine based servers like CS:S, DOD:S and TF2 that provides the interactivity with HLStatsX ingame, gives extra logging required for hit detection and adds a feature called morestats to show damage stats to the player.

More info about this plugin over here.
Attached Files
File Type: smx hp_left.smx (4.1 KB, 831 views)
File Type: sp Get Plugin or Get Source (hp_left.sp - 2172 views - 3.1 KB)
File Type: txt hp_left.phrases.txt (371 Bytes, 1085 views)
File Type: txt hp_left_weapons.txt (1.3 KB, 848 views)
__________________

Last edited by tcviper; 05-22-2009 at 07:21. Reason: Updated to 1.2.1
tcviper is offline
Send a message via MSN to tcviper