AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   TF2: Killer's Info (https://forums.alliedmods.net/showthread.php?t=69284)

toazron1 03-31-2008 22:08

TF2: Killer's Info
 
3 Attachment(s)
[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:
http://lolsup.com/TF2/img/plugins/killersinfo.png
Previous downloads: 6476

tony2kownz 03-31-2008 23:55

Re: TF2: Killer's Info
 
really nice, I have it running on my 2fort server for now, we'll see how it goes and we'll probably run it on the rest of my servers, thanks

Zalaxy 04-01-2008 00:52

Re: TF2: Killer's Info
 
Installed on all of my servers. Very nice. I like it. Good color choice and good information. If there is ever a possibility the information of how much damage the killshot did would be awesome. But I don't think it's possible with tf2 so ignore miz! :).


Good plugin!

DontWannaName 04-01-2008 01:03

Re: TF2: Killer's Info
 
Can you add settings so clients can turn this off if they want to.

imported_Anth0ny 04-01-2008 01:18

Re: TF2: Killer's Info
 
Quote:

Originally Posted by DontWannaName (Post 605084)
Can you add settings so clients can turn this off if they want to.

+1

killinfo 1
killinfo 0

and i think it's will be better if you can remove distance digits from info IF melee weapon used...
and please add a metric system, not fts only

VERY nice plugin! =)

CrimsonGT 04-01-2008 01:21

Re: TF2: Killer's Info
 
Looks good man. I would suggest getting rid of the distance of the attack as it doesn't really offer any useful benefeit, and all I ever heard was people complain about how ridiculous the distance is for melee kills. It will say you were killed with Bonesaw from 8 Feet away, and people will flip. I heard it daily.

Zalaxy, that will be easy to add for TF2.

toazron1 04-01-2008 01:43

Re: TF2: Killer's Info
 
I am aware of the distance issue and I am working on a "fix" for it, I do like the idea of ignoring melee weapons. For now I have included a define (default disabled) to exclude the distance from the output.

I also added in a command to toggle the output on and off.

imported_Anth0ny 04-01-2008 02:15

Re: TF2: Killer's Info
 
Quote:

Originally Posted by toazron1 (Post 605104)
I am aware of the distance issue and I am working on a "fix" for it, I do like the idea of ignoring melee weapons. For now I have included a define (default disabled) to exclude the distance from the output.

I also added in a command to toggle the output on and off.

thanks master! =)

SixSicSix 04-01-2008 13:19

Re: TF2: Killer's Info
 
Idea: make this plugin advertise in the top left corner something like:

Type killinfo to toggle on/off.

And allow clients to use this command to toggle it on or off. Sometimes chats get very clogged :P

toazron1 04-01-2008 14:55

Re: TF2: Killer's Info
 
sm_ki_toggle is a client command


All times are GMT -4. The time now is 00:18.

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