View Single Post
Author Message
Dionys
Senior Member
Join Date: Sep 2008
Location: Terra, Russia
Old 12-14-2008 , 15:52   [L4D] Damage Info Display 1.3.5
Reply With Quote #1

Description:
Show in hint window the information on the damages put to the player during his life and during death of the player or in the end of a round show on in-game panels the information on the total put and received damages.
User displays mode settings in in-game menu (!did_mode in the chat).

CVAR:
sm_did_version - Version of Display Damage plugin
sm_did_enabled - Enables Display Damage to players
sm_did_defhint - Default Display Damage mode for enter on a server of players.
sm_did_deftotal - Default Display Damage on Death mode. 1 = Display Total Damage; 2 = Display Damage Since Last Spawn; any other = no display.
sm_did_survivor_block - Block HintInfo about infected damages for survivor.
sm_did_announce - Enables Display Damage to advertise to players
sm_did_hmode (!did_hmode in chat) - client command for call select Display Damage mode in-game menu
sm_did_tmode (!did_tmode in chat) - client command for call select Display Damage type at player death in-game menu
sm_did (!did in chat) - client command for DID Total Panel
sm_did_clear (!did_zero in chat) - client command for Clear all Damages

Autostart of a configuration and file of language support (current Russian, English, German, Spanish and Polish).

[IMG]http://img218.**************/img218/6127/didhurtal6.th.jpg[/IMG] [IMG]http://img7.**************/img7/6369/diddisplay01wm6.th.jpg[/IMG] [IMG]http://img165.**************/img165/5495/diddisplay02mu2.th.jpg[/IMG] [IMG]http://img165.**************/img165/3159/didhmodefd8.th.jpg[/IMG] [IMG]http://img165.**************/img165/6964/didtmodehy8.th.jpg[/IMG]

WIP
1.3.5 (2009.09.10)
Portuguese support is added
1.3.5 (2009.04.24)
Ready for L4D version 1.0.1.2
Fix hook/unhook events when players abandons a server.
1.3.1 (2009.02.20)
Fix hook/unhook events should now work properly.
1.3.0 (2009.02.08)

Save user settings on server side is added.
Total Damage will always display at end of round, unless you are infected, recently died, and already saw your total damage.
Fix display not showing up when a player dies from common infected or entities (fire, fall damage, etc).
improved round end detection in coop mode, no longer using door_close events.
Fix menu "array index out of bounds" error when pressing menu exit button.
removed cvar sm_did_gmode (autodetect gamemode now)
warning: need use new sm_did.cfg and plugin.sm_did.txt
1.2.8 (2009.02.06)
Command !did will now ask which damage to display TOTAL DAMAGE or DAMAGE SINCE SPAWN
removed comand sm_did_default (use sm_did_hmode instead)
command sm_did_tmode is added
1.2.7 (2009.02.05)
Fix door_close bug in coop mode.
Fix duplicate RoundEnd events in versus mode, which caused stats to show up empty for 10 seconds.
Fix finale now triggers damage display at end of round (vehicle ready event).
1.2.6 (2009.02.04)
Added menu mode Display on Death. 1=Total Damage, 2=Damage Since Last Spawn, 3=Disabled.
cvar sm_did_deftotal is added to support future possibilities
removed cvar sm_did_total_onlyrend (use sm_did_deftotal instead)
removed cvar sm_did_mode (use sm_did_defhint instead)
1.2.5 (2009.02.03)
find bug in previous version is fixed
cvar sm_did_total_onlyrend (Show DID Total Panel only in a RoundEnd. 0 = off; 1 = on.) is added
1.2.3 fixed (2009.02.02)

Code optimisation
find bug 1.2.2 version is fixed (THX: -pk- for bug hunting)
1.2.2 (2009.02.01)
Func Block HintInfo about infected damages for survivor is added (thx headseeker for remark)
cvar sm_did_survivor_block is added
1.2.1 (2009.01.19)
Fix incorrect info in DID Total Panel if client Display Mode != 1
1.2.0 (2009.01.19)
display of damages from infected is added
display of quantity killed infected is added
display of quantity killed players is added
client chat command !did (Call DID Total Panel) is added
client chat command !did_zero (Clear all Damages) is added
small errors are corrected
1.1.5 (2008.12.23)
Fix translation
1.1.5 (2008.12.20)
Really fixed wrong calculation of TA current damages.
Support coop mode is added (In a coop mode the counter of damages is nulled at safe room door closing).
new cvar is added.
1.1.4 (2008.12.18)
Wrong calculation of current damages at round start is corrected.
1.1.3
Wrong calculation of current damages at change map is corrected.
1.1.2
Wrong calculation of total damages is corrected.

co-author:
- -pk-

special thx:
- DDR Khat


credits:
- Sammy-ROCK! (thx for interesting idea of a show in a real-time information about damages in hint window)
- captain-pot-noodle (thx for english lang adaptation)
- DarkAnubis (thx for german lang support)
- macing (thx for german and spanish lang support)
- YourEnemyPL (thx for polish lang support)
- danmala(thx for portuguese lang support)

warning: I ask not to suggest to change a code (there is no free time it to do) a plug-in works perfectly. Use as is. There is a desire to change code - make it - I not against. In a this topic I ask to write only about the found errors.

Дополнительная информация для русскоязычных серверов:
для включения поддержки русского языка в сурсмоде:
- в настройках сурсмода в language.cfg добавить
Code:
"ru" "Russian"
- в настройках сурсмода в core.cfg изменить
Code:
"AllowClLanguageVar" "On"
- если не помогло:
удалить из языкового файла plugin.sm_did.txt все языки кроме русского
файл должен быть сохранен в формате utf (без тега BOM), лучше использовать для этого notepad++
Attached Files
File Type: sp Get Plugin or Get Source (sm_did.sp - 5542 views - 30.3 KB)
File Type: cfg sm_did.cfg (547 Bytes, 2731 views)
File Type: txt plugin.sm_did.txt (6.3 KB, 2836 views)
File Type: zip Damage Info Display (l4d) 1.3.5.zip (384.0 KB, 5064 views)

Last edited by Dionys; 09-10-2009 at 02:52.
Dionys is offline