AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Show Damage (1.0.7) (https://forums.alliedmods.net/showthread.php?t=85901)

exvel 02-17-2009 16:10

Show Damage (1.0.7)
 
1 Attachment(s)
Show Damage
Version: 1.0.7


[IMG]http://img196.**************/img196/4317/about1q.jpg[/IMG] Description:

Shows your damage in the center of the screen or in the any specified place like chat or hint-text. Supports all mods and has client preferences integration.
Servers running this plugin.


Requirements:[IMG]http://img38.**************/img38/3856/install3.png[/IMG] Installation:
  1. Extract the contents of ShowDamage_v1.0.7.zip into addons/sourcemod folder.
  2. Start your server. Config file will be automatically generated.
  3. Configure plugin.showdamage.cfg in cfg/sourcemod folder and restart your server.

[IMG]http://img20.**************/img20/2184/settings3.png[/IMG] Settings:
Quote:

  • sm_show_damage
    default: 1
    Enabled/Disabled show damage functionality, 0 = off/1 = on
  • sm_show_damage_ff
    default: 0
    Show friendly fire damage, 0 = off/1 = on
  • sm_show_damage_own_dmg
    default: 0
    Show your own damage, 0 = off/1 = on
  • sm_show_damage_text_area
    default: 1
    Defines the area for damage text:
    1 = in the center of the screen
    2 = in the hint text area
    3 = in chat area of screen

Notes:
  • When you are running any deathmatch game (except team-deathmatch) you should always enable sm_show_damage_ff.
  • If you are using ES_Tools then any damage you will see will be twice higher then it actually is. This is an ES_Tools' problem and there is no fix yet except of removing ES_Tools from the server.

[IMG]http://img30.**************/img30/5649/lang2.jpg[/IMG] Supported Languages:
  • English
  • Russian

[IMG]http://img269.**************/img269/2707/screenshot2j.png[/IMG] Screenshots:

[IMG]http://img17.**************/img17/5000/cssz.th.jpg[/IMG] [IMG]http://img15.**************/img15/2696/dodpum.th.jpg[/IMG]

[IMG]http://img25.**************/img25/9085/left4dead20090321181500.th.jpg[/IMG] [IMG]http://img11.**************/img11/4817/73879786.th.jpg[/IMG]

ToDo:
  • Remove showing damage for disguised spys in TF2
  • Maybe HUD support
  • Add an option to remove showing some types of damage
  • Add an option for binding show damage functionality to admin flags

[IMG]http://img38.**************/img38/4548/changelog1.png[/IMG] Changelog:
  • 1.0.7
    • Players now can switch plugin on/off through the !settings menu
    • Added translations
    • Added colors (colors.inc) support for chat damage text
    • Plugin now requires SourceMod 1.3.0+
  • 1.0.6
    • Left 4 Dead 2 support
  • 1.0.5
    • Added damage count for simple zombies in Left 4 Dead
    • Fixed Left 4 Dead bug when plugin showed -5000 HP on Tank death
  • 1.0.4
    • Minor code changes for better performance
    • Added config file
    • Changed damage text color in chat to green
  • 1.0.3
    • Added cvar for player own damage (sm_show_damage_own_dmg)
  • 1.0.2
    • Fixed sm_show_damage_ff problem
  • 1.0.1
    • Added cvar that controls damage text output
    • Damage text now shows faster
    • Better performance
    • Fixed error in logs "client not in game"
  • 1.0.0
    • Initial Release

Credits: SourceMod Developers.

exvel 02-17-2009 16:13

Re: Show Damage v1.0.0
 
I tested this plugin only in CS:S and TF2 but it should work in any source game. Please test it in other mods and post reply if you can. :)

{7~11} TROLL 02-17-2009 16:47

Re: Show Damage v1.0.0
 
OMG! thank you i been looking for another version of this i was gonna try to code one my self but you already done it. the current version on one of my clans servers has a few errors.

i will check this out

thx

exvel 02-18-2009 07:45

Re: Show Damage v1.0.0
 
I also tested plugin in L4D and DoD:S. All works fine.

Quote:

Originally Posted by {7~11} TROLL (Post 763438)
the current version on one of my clans servers has a few errors.

i will check this out

report if there are any errors and I will fix them

sfPlayer 02-18-2009 10:26

Re: Show Damage v1.0.0
 
You probably want to use sm_show_damage_version in the cvar field, sm_show_damage lacks FCVAR_NOTIFY

Snake60 02-18-2009 10:39

Re: Show Damage v1.0.0
 
WOW! Good job. Try it and like it :up:
Glad to see you here Exvel :wink:

exvel 02-18-2009 10:39

Re: Show Damage v1.0.0
 
Quote:

Originally Posted by sfPlayer (Post 763896)
You probably want to use sm_show_damage_version in the cvar field, sm_show_damage lacks FCVAR_NOTIFY

Oh!!!11 Thanks :) This was a mistake.

OziOn 02-18-2009 12:45

Re: Show Damage v1.0.0
 
Would it be possible to add a cvar to control where the damage info is displayed? Like in hint, chat, etc.?

exvel 02-18-2009 12:51

Re: Show Damage v1.0.0
 
Quote:

Originally Posted by OziOn (Post 764041)
Would it be possible to add a cvar to control where the damage info is displayed? Like in hint, chat, etc.?

It is possible. I will add this in next version if you need it.

OziOn 02-18-2009 16:48

Re: Show Damage v1.0.0
 
If I can get anything I need, can you also add a cvar for players to individually choose to turn it on/off? :D

{7~11} TROLL 02-18-2009 20:58

Re: Show Damage v1.0.0
 
great plugin im gonna install this tommrow on my clans left4dead server really nice work bro

+karama

exvel 02-18-2009 23:55

Re: Show Damage v1.0.0
 
Quote:

Originally Posted by OziOn (Post 764208)
If I can get anything I need, can you also add a cvar for players to individually choose to turn it on/off? :D

Ok.

exvel 02-19-2009 10:25

Re: Show Damage v1.0.1
 
1.0.1
  • Added cvar that controls damage text output
  • Damage text now shows faster
  • Better performance
  • Fixed error in logs "client not in game"

{7~11} TROLL 02-19-2009 13:19

Re: Show Damage v1.0.1
 
[request for next version]
can you maybe add a function to change the color of the damage?

OziOn 02-19-2009 13:57

Re: Show Damage v1.0.1
 
The plugin didn't work on SM 1.2.0, after I compiled it myself it did work as it should, except that sm_show_damage_ff didn't work in L4D.
Otherwise the plugin is great!

exvel 02-19-2009 14:17

Re: Show Damage v1.0.1
 
Quote:

Originally Posted by {7~11} TROLL (Post 764711)
[request for next version]
can you maybe add a function to change the color of the damage?

It is only possible to change a color of the chat text. You really want it?

exvel 02-19-2009 14:18

Re: Show Damage v1.0.1
 
Quote:

Originally Posted by OziOn (Post 764748)
The plugin didn't work on SM 1.2.0, after I compiled it myself it did work as it should, except that sm_show_damage_ff didn't work in L4D.
Otherwise the plugin is great!

This is strange. I tested it in l4d and all functions worked fine for me (i used version which was compiled in sm 1.1.0). Magic. :shock:
p.s. are you sure you have the latest sm 1.2.0 build?
p.p.s about sm_show_damage_ff, I think I know why such kind of problem could happen. Will fix it.

exvel 02-19-2009 14:49

Re: Show Damage v1.0.2
 
1.0.2
  • Fixed sm_show_damage_ff problem

Thanks to OziOn for reporting

OziOn 02-19-2009 15:55

Re: Show Damage v1.0.1
 
Quote:

Originally Posted by exvel (Post 764771)
This is strange. I tested it in l4d and all functions worked fine for me (i used version which was compiled in sm 1.1.0). Magic. :shock:
p.s. are you sure you have the latest sm 1.2.0 build?

Well, it did work for the first 5 minutes, but after a while it stopped doing anything. Newly connected clients would see it, but after some time it would disappear from them too.

p.s. I re-installed SM not more than a couple of days ago, so I think I do. Is there a command to see what build I've got?

{7~11} TROLL 02-19-2009 18:24

Re: Show Damage v1.0.1
 
Quote:

Originally Posted by exvel (Post 764766)
It is only possible to change a color of the chat text. You really want it?

yeah please if you dont mind and have time to code it im some parts depending on the lighting you can really see it now it you can change it to red or green you could see it almost anywhere

exvel 02-20-2009 00:25

Re: Show Damage v1.0.1
 
Quote:

Originally Posted by OziOn (Post 764838)
Well, it did work for the first 5 minutes, but after a while it stopped doing anything. Newly connected clients would see it, but after some time it would disappear from them too.

p.s. I re-installed SM not more than a couple of days ago, so I think I do. Is there a command to see what build I've got?

Anyway, did you try a new version? Is there all ok?
p.s. "sm version" -> Build ID

OziOn 02-20-2009 09:57

Re: Show Damage v1.0.2
 
I'm using version 1.0.2 of this plugin, and everything is working as it should.
I do have a couple things to add though...
It would be really helpful to have a different message for friendly fire, so that you can extinct when you do FF damage to normal damage, like "FF -30 HP", to keep it simple.
Also, in L4D, when you wound yourself the plugin will tell you how much damage you're loosing. Dunno if this is a bug. For instance, if you stand in fire, it will show -1 HP for each "hit" you take while standing in the flames.

ulx 02-20-2009 10:15

Re: Show Damage v1.0.2
 
looks very cool ... question: will it also show damage, if you throw a HE grenade around a corner and hurt an enemy beeing there (which you don't see from your current position)? If so, its kinda cheating then as you know now that there's an enemy, althought you can't see him.

If it doesn't show damage from enemies you don't see, I'll put it onto our huge public server. Did anyone already tried that out?

exvel 02-20-2009 10:56

Re: Show Damage v1.0.2
 
Quote:

Originally Posted by OziOn (Post 765287)
I'm using version 1.0.2 of this plugin, and everything is working as it should.
I do have a couple things to add though...
It would be really helpful to have a different message for friendly fire, so that you can extinct when you do FF damage to normal damage, like "FF -30 HP", to keep it simple.
Also, in L4D, when you wound yourself the plugin will tell you how much damage you're loosing. Dunno if this is a bug. For instance, if you stand in fire, it will show -1 HP for each "hit" you take while standing in the flames.

If you think this disabling your own damage is needed very much I will do it. This feature is not important for me so I can disable it. :)
About "FF" prefix damage. I think this already done by Valve. Each game (especially in L4D) already has it own mechanism for showing warning messages when you hit your teammate. Also there are many plugins for such kind of warning messages.

exvel 02-20-2009 10:59

Re: Show Damage v1.0.2
 
Quote:

Originally Posted by ulx (Post 765302)
looks very cool ... question: will it also show damage, if you throw a HE grenade around a corner and hurt an enemy beeing there (which you don't see from your current position)? If so, its kinda cheating then as you know now that there's an enemy, althought you can't see him.

If it doesn't show damage from enemies you don't see, I'll put it onto our huge public server. Did anyone already tried that out?

Yeap, it will show your damage anyway. But I will think about how to add such kind of feature (I think I need to understand how to work with vector functions of sourcemod for this).

ulx 02-20-2009 11:03

Re: Show Damage v1.0.2
 
Quote:

Originally Posted by exvel (Post 765337)
Yeap, it will show your damage anyway. But I will think about how to add such feature (I think I need to understand how to work with vectors functions of sourcemod for this).

thanks, but I can't use it then. if it shows damage only of enemies that you see it would be perfect. please check our what you can do :)

OziOn 02-20-2009 13:41

Re: Show Damage v1.0.2
 
Quote:

Originally Posted by exvel (Post 765336)
If you think this disabling your own damage is needed very much I will do it. This feature is not important for me so I can disable it. :)
About "FF" prefix damage. I think this already done by Valve. Each game (especially in L4D) already has it own mechanism for showing warning messages when you hit your teammate. Also there are many plugins for such kind of warning messages.

I actually think that adding the FF prefix is actually more important than the own damage thing :D

exvel 02-20-2009 14:06

Re: Show Damage v1.0.2
 
Quote:

Originally Posted by OziOn (Post 765445)
I actually think that adding the FF prefix is actually more important than the own damage thing :D

There is a one thing that makes it to be hard. When plugin shows damage it actually summarizes each damage done in game frame. This allows right calcullation of damge for such kind of weapon like shotgun or bomb when multiple damages done at the moment to multiple enemies (and teammates). So it is impossible for the plugin to separate normal damage and FF damage, it only can don't count FF damage if the option is set. =(

OziOn 02-20-2009 15:46

Re: Show Damage v1.0.2
 
Ow :(
Oh well, I still find the plugin very useful. Thanks for all your support!

exvel 02-21-2009 11:38

Re: Show Damage v1.0.3
 
1.0.3
  • Added cvar for player own damage (sm_show_damage_own_dmg)

KiloSwiss 02-23-2009 11:58

Re: Show Damage v1.0.3
 
Hi.
I got a Problem when i download the File ShowDamage_v1.0.3.zip from the first post.

The folder "scripting" contains a file named "showdamage.sp" but the folder "plugins" is empty...


|edit|
Thanks, now i have redownloadet the file, installed the plugin on my server and now it works.
Great work, thank You!

exvel 02-24-2009 09:01

Re: Show Damage v1.0.3
 
Quote:

Originally Posted by KiloSwiss (Post 767420)
Hi.
I got a Problem when i download the File ShowDamage_v1.0.3.zip from the first post.

The folder "scripting" contains a file named "showdamage.sp" but the folder "plugins" is empty...

Oh, thanks for reporting about this. I reuploaded a plugin.

exvel 03-20-2009 11:17

Re: Show Damage v1.0.4
 
1.0.4
  • Minor code changes for better performance
  • Added config file
  • Changed damage text color in chat to green

exvel 03-21-2009 11:24

Re: Show Damage v1.0.5
 
1.0.5
  • Added damage count for simple zombies in Left 4 Dead
  • Fixed Left 4 Dead bug when plugin showed -5000 HP on Tank death

onlyamd 04-22-2009 00:35

Re: Show Damage v1.0.5
 
Cannot compile in anything lower than 1.2. Can you post an .smx for 1.1 ? Error 017: undefined symbol "MaxClients" when compiling. Thanks!

exvel 04-22-2009 02:08

Re: Show Damage v1.0.5
 
Quote:

Originally Posted by onlyamd (Post 811278)
Cannot compile in anything lower than 1.2. Can you post an .smx for 1.1 ? Error 017: undefined symbol "MaxClients" when compiling. Thanks!

I think you are trying to compile it with old 1.0.x version. Current version is compiled with forum's 1.1.0 compiler. You can download it by clicking on a "Get plugin" link.

Alfie99999 05-16-2009 19:31

Re: Show Damage v1.0.5
 
is there any way I can change the size of the text on the file?
(I have some folks that would like it bigger)

exvel 05-17-2009 04:39

Re: Show Damage v1.0.5
 
Text size can't be changed at all AFAIK. :)

Alfie99999 05-18-2009 01:01

Re: Show Damage v1.0.5
 
Quote:

Originally Posted by exvel (Post 829089)
Text size can't be changed at all AFAIK. :)

Thank you for the reply exvel :cry::cry:

SaToRiO 05-19-2009 07:43

Re: Show Damage v1.0.5
 
Quote:

  1. Start your server. Config file will be automatically generated.
  2. Configure plugin.showdamage.cfg in cfg/sourcemod folder and restart your server.

I did everything you wrote, but there is no "plugin.showdamage.cfg" in my sourcemod!
Can anybody upload a cfg pls :).


All times are GMT -4. The time now is 05:42.

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