View Single Post
Author Message
toazron1
Senior Member
Join Date: Oct 2006
Old 03-31-2008 , 22:08   TF2: Killer's Info
Reply With Quote #1

[TF2] Killer's Info
Shows who killed you, with what, and how much hp left.

This plugin is designed for TF2 and will not work with any other mod.

Background:
This is based loosely off of the now unsupported plugin hp_left by TSCDan. Being written for CS:S severely limited it on our TF2 server and since I was looking for something closer to my Natural Selection plugin I used hp_left as a starting point to get me into TF2 and SM development, however the only thing that still remains the original code is a modified distance check.
Features:
  • How you died (killed, backstabbed, headshot, revenge, DOMINATED, humiliated, ect)
  • Health remaining your killer
  • Multilingual support
  • Colored message support
  • Weapon names that are "pretty"
  • Client output enable/disable
  • Crit, mini-crits distinctions
Commands:
  • sm_ki_toggle - enables clients to toggle the output on or off (defaults on)
Change log:
  • 0.1 - cleaned up unused code... recoded functions. fixed TF2 specific events, output looks better.
  • 0.2 - fixed distance (stupid error)
  • 0.3 - fix colors / fixed customkill check. Spelling errors on weapons (lol).
  • 0.4 - Killer already dead check to fix weird outputs
  • 0.5 - ability to disable output
  • 0.6 - merged changes for output saving (thanks Urus)
  • 0.7 - better distance check, metric option
  • 0.8 - cleaned up some more code - added assist info
  • 0.8.1 - Medic/Pyro update support
  • 0.8.2 - Heavy update support - HUMILIATION
  • 0.8.3 - Merged multi-lang support (thanks Vader_666). Optimized
  • 0.8.3a- Fixed a define I forgot to include
  • 0.8.4 - Added "finished off", minor optimizations
  • 0.8.5 - Reworked if elses, removed useless weapon loop, added humiliation
  • 0.9.0 - Scout update, crit alert, sentry levels
  • 1.0.0 - Spy/ Sniper update - updated for deathflag changes
  • 1.0.1 - Added crit in the output (thanks psychonic) fixed more Spy/Sniper update weapon changes
  • 1.0.2 - Updated translations - cleaned up code
  • 1.1.0 - Logic rework. Mini crits. Removed assist/distance. Colors.ini needed. ClientPref storage rather than KV file.
  • 1.1.1 - Removed need for Colors.ini to fix format error. Easier to change colors (defines at the top)
  • 1.1.2 - Minor formatting fixes.
  • 1.2.0 - Reworked/cleaned up/updated translations / AddCommandListener / Support for colors . Revenge notification.
  • 1.2.1 - Fixed minor error. Cleaned up again. Translations.
  • 1.2.2 - I'm dumb.
  • 1.3.0 - Polycount translations, added more customkill checks, using SM constants, code optimizations.
  • 1.4.0 - Check for translation errors and logging for missing weapon names
  • 1.4.1 - Minor optimizaion - log file error checking
Current Translations:
  • English
  • French - Partial (thanks Vader_666)
  • Hungarian - Partial (thanks KhyrOO)
  • German - Partial (thanks Guggie)
  • Polish - Partial (thanks Kemsan)
Colors Note:
If you want to use colors you MUST uncomment the #define USECOLORS line.
You MUST have colors.ini and manually compile to use colors.
All colors must go into the translations file. This is an example to give something similar to the screen shot.
Code:
"en" "{teamcolor}{1}{default} {olive}{2}{default} you with {olive}{3}{default} ({olive}{4}{default}hp left)"
Screenshot:

Previous downloads: 6476
Attached Files
File Type: txt killersinfo[colorexample].phrases.txt (16.2 KB, 2771 views)
File Type: txt killersinfo.phrases.txt (15.2 KB, 3504 views)
File Type: sp Get Plugin or Get Source (killersinfo.sp - 7383 views - 9.4 KB)
__________________

Last edited by toazron1; 01-11-2011 at 13:16. Reason: Updated to 1.4.1
toazron1 is offline
Send a message via AIM to toazron1