Borderlands/RPG-Style Damage Counter (DM-Only)

Maps, modifications, add-ons, projects, and other releases for Zandronum. Also includes announcers.
Post Reply
User avatar
StrikerMan780
Forum Regular
Posts: 279
Joined: Tue May 29, 2012 9:16 pm
Clan: Shadow Mavericks
Clan Tag: [SM]

Borderlands/RPG-Style Damage Counter (DM-Only)

#1

Post by StrikerMan780 » Sat May 25, 2013 2:27 pm

I decided to recreate one of my SourceMod server plugins into a PK3 Mutator for Zandronum. (With Deathmatch in mind.)

Basically, what it does is show the amount of damage a player is taking as a little pop-up above their head. Much like in Final Fantasy, Borderlands, or the Damage Popup Mutator for UT2004.

I've tried my best to make this as simple scripting-wise, and light on the CPU as possible, and I think I've succeeded. The drawback, is this only works on players, not on monsters. (It would be too taxing to check the health of every actor in a map.) So, this is for Deathmatch only, or for seeing how much damage your buddy just took from that missile in COOP.

[spoiler]Image[/spoiler]
-
DOWNLOAD
Last edited by StrikerMan780 on Sat May 25, 2013 7:13 pm, edited 1 time in total.

one_Two
Addicted to Zandronum
Posts: 1753
Joined: Thu Jun 07, 2012 4:47 pm

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#2

Post by one_Two » Sat May 25, 2013 2:43 pm

That's really cool, although it'd never be allowed in ctf it'd make it interesting.

User avatar
StrikerMan780
Forum Regular
Posts: 279
Joined: Tue May 29, 2012 9:16 pm
Clan: Shadow Mavericks
Clan Tag: [SM]

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#3

Post by StrikerMan780 » Sat May 25, 2013 2:44 pm

Might be useful for practice at least, because it'd allow one to get the feel for the average damages for each weapon.

I'm probably going to host a server with UDMX to see how people like it. (And to stress-test this thing.)
Last edited by StrikerMan780 on Sat May 25, 2013 2:45 pm, edited 1 time in total.

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#4

Post by Watermelon » Sat May 25, 2013 4:22 pm

I'm going to play with this in a practice CTF server when I get back. Looks cool

User avatar
CloudFlash
Zandrone
Posts: 1074
Joined: Mon Jun 04, 2012 5:35 pm
Location: Wonderland (except not really)

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#5

Post by CloudFlash » Sat May 25, 2013 4:26 pm

would be nice if you'd put a small hp bar, too. Then I imagine this would work quite cool in AoW mechs.
https://i.imgflip.com/i5tpe.jpg
*Hey, who wants to hear my solution to the modern world's problems? ^Me! %Me! @Me! #Me! *WELL TOO BAD @Did he just stab himself with this butcher knife? %Looks like it ^Hey, the pizza guy arrived! %Pizza! Yey

User avatar
Lord_of_D:
Posts a lot
Posts: 691
Joined: Sun Aug 26, 2012 5:31 am
Location: Mexico
Contact:

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#6

Post by Lord_of_D: » Sat May 25, 2013 5:00 pm

this can help on testing weapons and shit, good job :D
CloudFlash wrote: would be nice if you'd put a small hp bar, too. Then I imagine this would work quite cool in AoW mechs.
^
Last edited by Lord_of_D: on Sat May 25, 2013 5:02 pm, edited 1 time in total.
Image

doomwolf555
Forum Regular
Posts: 108
Joined: Sat Oct 20, 2012 5:16 pm

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#7

Post by doomwolf555 » Sat May 25, 2013 5:42 pm

Can it be used in other mods?

User avatar
Combinebobnt
Retired Staff / Community Team Member
Posts: 1905
Joined: Mon Jun 04, 2012 3:37 am
Location: Earth
Contact:

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#8

Post by Combinebobnt » Sat May 25, 2013 5:54 pm

This could be very useful for testing

You might want to add a way to customize the colors though. I'd rather have just red numbers over rainbow tutti fruity ones
Last edited by Combinebobnt on Sat May 25, 2013 5:55 pm, edited 1 time in total.

User avatar
StrikerMan780
Forum Regular
Posts: 279
Joined: Tue May 29, 2012 9:16 pm
Clan: Shadow Mavericks
Clan Tag: [SM]

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#9

Post by StrikerMan780 » Sat May 25, 2013 6:09 pm

doomwolf555 wrote: Can it be used in other mods?
Only if it doesn't modify the Player Class, nor uses Script Numbers 800/801/802.
Combinebobnt wrote: This could be very useful for testing

You might want to add a way to customize the colors though. I'd rather have just red numbers over rainbow tutti fruity ones
They are that way for readability's sake when things get chaotic and there's a bunch of numbers close together or overlapping.

User avatar
StrikerMan780
Forum Regular
Posts: 279
Joined: Tue May 29, 2012 9:16 pm
Clan: Shadow Mavericks
Clan Tag: [SM]

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#10

Post by StrikerMan780 » Sat May 25, 2013 7:14 pm

Updated. Edited the font to have more contrast, and is doubled in resolution so Filtering in OpenGL doesn't blur it all out beyond readability.

Hosting a server with it at: 64.74.97.177:10670
Last edited by StrikerMan780 on Sat May 25, 2013 7:20 pm, edited 1 time in total.

Nati46
Forum Regular
Posts: 379
Joined: Mon Jun 04, 2012 11:39 am
Location: Ramat Aviv

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#11

Post by Nati46 » Sat May 25, 2013 10:09 pm

Looks quite innovative and cool - But what about weapons like the shotgun/supershotgun with multiple pellets or weapons with splash damage in addition to direct damage such as the RL? Does your counter add them up correctly?
Want to know how to run faster? Check this out!

Zandronum Duel Championships

Image

User avatar
StrikerMan780
Forum Regular
Posts: 279
Joined: Tue May 29, 2012 9:16 pm
Clan: Shadow Mavericks
Clan Tag: [SM]

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#12

Post by StrikerMan780 » Sat May 25, 2013 10:19 pm

Nati46 wrote: Looks quite innovative and cool - But what about weapons like the shotgun/supershotgun with multiple pellets or weapons with splash damage in addition to direct damage such as the RL? Does your counter add them up correctly?
Yes it does.

User avatar
Medicris
Forum Regular
Posts: 614
Joined: Mon Jun 04, 2012 5:29 am

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#13

Post by Medicris » Sat May 25, 2013 11:08 pm

I like it. In fact, I kind of wish it were a clientside option standard, like some other games out there.

I'd go and ask for optional Quake-like hitsounds to be a Z& standard too, but that's probably too far out of line

Good job.
Last edited by Medicris on Sat May 25, 2013 11:10 pm, edited 1 time in total.

User avatar
Hypnotoad
Retired Staff / Community Team Member
Posts: 528
Joined: Tue May 29, 2012 8:50 pm
Location: Britland

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#14

Post by Hypnotoad » Sat May 25, 2013 11:28 pm

Is this script capable of tracking who does the damage (the attacker)?

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#15

Post by Ænima » Sat May 25, 2013 11:40 pm

Do you only see the damage YOU inflict to enemies (TF2-style), or do you see the damage everyone else inflicts as well (MMO style)?

EDIT:
Just tested it and found the latter to be the case.

I also opened the PK3 up and noticed you used DECORATE and custom sprites (with some TEXTURES defs) to achieve the effect. A pretty good idea, although personally I would have used a different method (purely ACS, using HudmessageOnActor). But eh, yours still works pretty well. :P

I think it just might be more suited for duel, since a deathmatch game with a decent amount of players gets kind of hectic with all of the numbers flying around.
Last edited by Ænima on Sun May 26, 2013 2:33 am, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
Doomkid
Frequent Poster Miles card holder
Posts: 943
Joined: Sun Nov 25, 2012 2:04 am
Location: Aussie Land
Clan: UniDoom
Clan Tag: [UD]
Contact:

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#16

Post by Doomkid » Sun May 26, 2013 5:09 am

This is too damn cool Striker. Seeing an 800 from a direct BFG blast is pretty damn satasfying!

I think having it so you only see the damage you inflict is a great option, as well as switching the number colors between tutti frutti or a solid color. Yellow seems to suit the pixel font because of the HUD. Overall this is really cool stuff and interesting too.

EDIT
Medicris wrote: I like it. In fact, I kind of wish it were a clientside option standard, like some other games out there.

I'd go and ask for optional Quake-like hitsounds to be a Z& standard too, but that's probably too far out of line
Personally, I think that would be awesome.
Last edited by Doomkid on Sun May 26, 2013 5:11 am, edited 1 time in total.
Image
Image

User avatar
StrikerMan780
Forum Regular
Posts: 279
Joined: Tue May 29, 2012 9:16 pm
Clan: Shadow Mavericks
Clan Tag: [SM]

RE: Borderlands/RPG-Style Damage Counter (DM-Only)

#17

Post by StrikerMan780 » Sun May 26, 2013 9:37 am

Hypnotoad wrote: Is this script capable of tracking who does the damage (the attacker)?
That's impossible due to the limits of ACS, and since the script has to be executed on the victim. This wasn't a problem in SourceMod when I made it there (new Attacker = GetEventInt("attacker");), but here, no go.
Ænima wrote: I would have used a different method (purely ACS, using HudmessageOnActor).
Also impossible due to the fact that there's no way to determine who the attacker is as it is absolutely necessary for the victim to execute the script in order to process how much health he has.

Also, HudMessageOnActor looks like ass when in motion... very jittery. Also very CPU heavy when called every tic, which I want to avoid.

If only ACS had SetActivatorToLastAttacker, and SpawnVisibleTo...
Last edited by StrikerMan780 on Sun May 26, 2013 7:02 pm, edited 1 time in total.

Post Reply