View Single Post
Author Message
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 08-16-2008 , 01:31   Killer info display 1.4.1 (health, weapon, distance, works for all games)
Reply With Quote #1

(multi-language)



Plugin on Github: https://github.com/bcserv/killer_info_display - Forks & Pull requests are welcome

Description

Displays the weapon name and the remaining health left of the player who has killed you, kill distance, armor/suitpower in chat and/or in a panel, configurable by ConVars.
Can be turned on/off per player using client cookies/preferences.
It also prints info about domination and revenge for games like CS:S if supported.
Should work with any game.


Examples / Screenshots

[IMG]http://img535.**************/img535/2539/screen1hh.png[/IMG]


Downloads

killer_info_display-release-1.4.1.zip

Compiled with smlib 0.11

Installation

Simply copy the extracted contents of the zip file into your sourcemod folder.
Load to plugin on the server and then edit the settings in cfg/sourcemod/plugin.killer_info_display.cfg.

Translations / Languages

Currently supported languages:

  • English
  • German
  • Russian (thanks to Snake60)

Any new translations for other languages are welcome (any other language beside Russian, German or English)

ConVars
Code:
// Time in seconds after an announce about turning killer infos on/off is printed to chat, set to -1 to disable.
// -
// Default: "5"
kid_announcetime "5"

// Default client preference (0 - killer info display off, 1 - killer info display on)
// -
// Default: "1"
kid_defaultpref "1"

// Set to "meters" to show the distance in "meters" or "feet" for feet.
// -
// Default: "meters"
kid_distancetype "meters"

// Prints the killer info to the victims chat
// -
// Default: "1"
kid_printtochat "1"

// Displays the killer info to the victim as a panel
// -
// Default: "1"
kid_printtopanel "1"

// Set to 0 to disable, 1 to show the armor, 2 to show the suitpower the killer has left.
// -
// Default: "1"
kid_showarmorleft "1"

// Set to 1 to show the distance to the killer, 0 to disable.
// -
// Default: "1"
kid_showdistance "1"

// Set to 1 to show the weapon the player got killed with, 0 to disable.
// -
// Default: "1"
kid_showweapon "1"


Config

cfg/sourcemod/plugin.killer_info_display.cfg
(auto generated, deleted this file before updating)

Commands

sm_killerinfo - Enable/Disable Killer Info Display

Tested Games

Works with any game that supports the player_death event.
  • Counter-Strike: Global Offensive
  • Half-Life 2: Deathmatch
  • Team Fortress 2
  • Counter-Strike: Source
  • Day of Defeat: Source
  • Neotokyo
  • Zombie Panic!
  • Insurgency
  • Age of Chivalry
  • Left 4 Dead
  • Fistful of Frags
  • Pirates, Vikings and Knights II
  • Zombie Master
  • Stargate: The Last Stand
  • Obsidian Conflict
  • Team Deathmatch
Changelog

Date: 31.01.2013
Version: 1.4.1
  • CS:GO protobuf support: Recompiled the plugin with the latest smlib code from GIT
  • Added code to not let the plugin fail to load on older sourcemod versions (< 1.5)

Date: 06.01.2013
Version: 1.4.0
  • Fixed handle leak in the panel code
  • Migrated color functions to use smlib now (this also affects the translation files)
  • Improved some colors and texts
  • The announcement-hint-message is now always shown after connecting

Date: 18.02.2011
Version: 1.3.1
  • Fixed wrong version ConVar.

Date: 17.02.2011
Version: 1.3

Thanks to Snake60, gH0sTy & Smurfy1982 for the plugin updates in the meanwhile.
  • Added support for HL2:DM's suitpower (set kid_showarmorleft to 2)
  • Added German Translations
  • Changed some Convars
  • Added ConVar kid_showweapon
  • Heavily rewrote the existing code and included smlib
  • Added cookies (clienprefs) support. Now type in chat !settings and tweak your prefs. Or simple !killerinfo or /killerinfo in chat for on/off plugin.
  • Added announce in chat about ability on/off plugin. Only once, after 30sec left when player connect to your server.
  • Added new cvars (see file plugin.killer_info_display.cfg and don't forget update it!)
  • Added translations support (now Russian & English but need others)
  • Added teamcolor to attaker name (thx Exvel for this)
  • Added displaying armor in chat & panel (added new Cvar, see above)

Date: 23.08.2009
Version: 1.0
  • Support for Panels (Thanks to gH0sTy)
  • Added 4 new ConVars kid_printtochat, kid_printtopanel, kid_showdistance, kid_metricdistance
  • Added colors to the chattext
  • Added displaying the victim <-> killer distance in meters or ft
  • Code cleanup
Date: 16.08.2008
Version: 0.9
  • Initial release

download here

Last edited by berni; 01-30-2013 at 18:43.
berni is offline