AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Basic HP Left 1.2.1 (https://forums.alliedmods.net/showthread.php?t=63759)

tcviper 11-29-2007 11:36

Basic HP Left 1.2.1
 
5 Attachment(s)
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 :P
- 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:
http://www.steamfriends.com/temp/css_stats.gif

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.

doa 11-29-2007 17:33

Re: Basic HP Left 1.1.1
 
Any plans to include who I manage to kill and injure before I died into this plugin?

bl4nk 11-29-2007 21:22

Re: Basic HP Left 1.1.1
 
You should make it so it displays the actual weapon name, instead of what the mod describes it. Looking at your second screenshot, it says "tf_projectile_rocket" where you could change it to say "Rocket Launcher" or something.

tcviper 11-30-2007 03:18

Re: Basic HP Left 1.1.1
 
- That manage to kill could indeed be one line above this one, ill check it out.
- The updates of the names is possible but then it requires txt files per mod to specify the weapon names since right now i wanted to keep it as basic as possible (just like Vir-Dan) without needing to many extra's, ill think about it.

bl4nk 11-30-2007 03:21

Re: Basic HP Left 1.1.1
 
It wouldn't need an extra text file. Just a large section that checks to see if a string equals a weapon name, and then if it does, replace the string with the new name.

tcviper 12-01-2007 07:46

Re: Basic HP Left 1.1.2
 
Small update: 1.1.2 - Fixed [SM] Native "GetClientHealth" reported: Client index 0 is invalid

tcviper 12-05-2007 10:09

Re: Basic HP Left 1.1.3
 
1.1.3: Fixed another small bug: Native "IsClientConnected" reported: Client index 0 is invalid.

TSCDan 12-05-2007 12:28

Re: Basic HP Left 1.1.3
 
Thanks viper, makes things easier for me :D

tcviper 12-05-2007 13:03

Re: Basic HP Left 1.1.3
 
Haha, doing my best :)

tcviper 12-08-2007 12:14

Re: Basic HP Left 1.1.4
 
Minor bug fix, thx to EKS.


All times are GMT -4. The time now is 11:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.