Simple addon that shows damage as floating text above players and NPC's heads (doesn't show anything else)
The text color is based on the damage type. All base damage types are included.
Color tables are as follows:
[B]-RED TEXT-[/B]
Blast, Blast_Surface, Slowburn, Burn
[B]-BLUE TEXT-[/B]
Sonic, Drownrecover, Plasma, Dissolve
[B]-YELLOW TEXT-[/B]
Shock, Energybeam, Physgun
[B]-WHITE TEXT-[/B]
Generic, Crush, Slash, Vehicle, Fall, Club, Prevent_physics_force, Nevergib,
Alwaysgib, Removenoragdoll, Direct, Buckshot
As I was typing this list it occured to me in that in the download DMG_SONIC is in both the blue and yellow section.
It's a minor issue that I'll fix if I add more features, it shouldn't affect performance, the color just might be one or the other randomly.
[B]Display is toggleable: [/B]Added a concommand "DrawFCT" to enable/disable the drawing of the labels, use 1 and 0 respectively.
[img_thumb]http://dl.dropbox.com/u/9780864/gm_flatgrass0002.jpg[/img_thumb]
[img_thumb]http://dl.dropbox.com/u/9780864/gm_flatgrass0008.jpg[/img_thumb]
[B]Plans for the future:[/B]
-VGUI menu to control
--Life Time
--Movement pattern
-DamageType icons
--Will be toggleable
[B]Download:[/B]
[URL="http://www.garrysmod.org/downloads/?a=view&id=114712"][IMG]http://www.garrysmod.org/img/?t=dll&id=114712[/IMG][/URL]
Please let me know if there are any bugs.
I love it!
Just wanted to added a note: this is NOT clientside only. It has to be run on the server to send the damageinfo to the client.
Starting to work on additional features. Is there anything anyone would like to see with this?
perhaps add a - showing that you subtract it
I really enjoy this! Thank you.
P.S. Some extra fonts and customization would be stellar...definitely tracking this!
[editline]17th December 2010[/editline]
[QUOTE=commander204;26696516]perhaps add a - showing that you subtract it[/QUOTE]
I could see that if this also worked with healing, but if it doesn't, that seems a bit superfluous...
[QUOTE=Rayjingstorm;26765924]I really enjoy this! Thank you.
P.S. Some extra fonts and customization would be stellar...definitely tracking this!
[editline]17th December 2010[/editline]
I could see that if this also worked with healing, but if it doesn't, that seems a bit superfluous...[/QUOTE]
Changing fonts is easy, just crack open notepad
sexy :O
Nice, this one doesn't lag, unlike the Damage Indicator.
I just realized how I'm detecting the colors is really shitty, I'm direct comparing the damagetype thats incoming with a static table of values. If there is a composite damagetype that has a type from two different tables, I'm not sure how it would react, would probably default to white or go with the first type encountered.
[editline]18th December 2010[/editline]
Just tested - if there's a composite type (such as DMG_SHOCK and DMG_DROWN) the color will default to white because it doesn't have an exact match to one of the tables.
Trying to think of a fix for this right now.
What is green... I saw it in the picture that theres green numbers
Oh crap forgot to put that on the list in the OP
Green is
Poison, Paralyze, NerveGas, and radiation
What default fonts would you guys like to see in this?
coolvetica is the one it uses right now
[QUOTE=Feihc;26880990]What default fonts would you guys like to see in this?
coolvetica is the one it uses right now[/QUOTE]
Make a convar instead,and hook on the change callback,so we can change it to our liking.
[QUOTE=Jvs;26881036]Make a convar instead,and hook on the change callback,so we can change it to our liking.[/QUOTE]
Do you think a set of convars would be better than a derma menu for this? Because right now I'm having a hell of a time getting these god forsaken objects to work correctly and I cba to write my own.
[QUOTE=Feihc;26881405]Do you think a set of convars would be better than a derma menu for this? Because right now I'm having a hell of a time getting these god forsaken objects to work correctly and I cba to write my own.[/QUOTE]
Convars are always useful,the derma could always depend on them.
So,having a derma could be not necessary to tweak the values,but would be a nice alternatives to inputting random numbers to modify certain parameters,especially if you make it noob-friendly.
I like the font as it is
[editline]23rd December 2010[/editline]
I also like the errors for antlions with (assumingly) no antlions on the map
[editline]23rd December 2010[/editline]
So... a magnum with poison bullets? thats...new
[QUOTE=Andriko1;26911894]So... a magnum with poison bullets? thats...new[/QUOTE]
[url]http://toybox.garrysmod.com/ingame/?view=440[/url]
[QUOTE=Andriko1;26911894]I also like the errors for antlions with (assumingly) no antlions on the map
[/QUOTE]
Could you share the error please so I can fix it?
[QUOTE=Andriko1;26911894]
So... a magnum with poison bullets? thats...new[/QUOTE]
It's the Toybox SWEP Venom, was just using it cause it had the poison explosives in it, and I didn't have much else to display other colors.
This is a great addon, I've always wanted to know how much damage I've done to npcs, maybe the next step is to show the health?
Sorry, you need to Log In to post a reply to this thread.