Create an account


Poll: How do you think bone-based damage should be added to Xonotic?
You do not have permission to vote in this poll.
In the damage code and enabled by default (replace the current damage system)
35.71%
10 35.71%
In the damage code but disabled by default
3.57%
1 3.57%
As a mutator (disabled by default)
28.57%
8 28.57%
Don't even bother coding this, the idea is too bad
32.14%
9 32.14%
Total 28 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bone based damage system (feature vote and debate)

#11
(05-14-2012, 12:26 AM)Mr. Bougo Wrote: How do you determine that something "hit the player"? You say in your first post that only then do you scan each bone.

And what do you do about crouching which brings bones closer to eachother and therefore makes the player more vulnerable to splash damage?

The bounding box collision is still used to detect a player was hit, so we know what bones to check. The code would be written (or mutator hooked) from void Damage() which always runs for each entity that takes damage. This would work exactly like my damage effects which IIRC are in qcsrc\client\damage.qc if anyone wants to see the code.

And the crouching thing would be intentional. Because each body part is in another position, you would take damage over the current animation. I believe this makes things even more awesome.

For example, if someone is shooting you straight into the back while you're standing still: You might take more damage because your arms are positioned more closely to your side. But if you shoot someone from the same spot and orientation while they're firing, arms take less damage because you brought them more in front. If you were shooting the player in the face instead, the effect would be the opposite (arms would be closer to the blast spot with that animation).

Only thing I don't agree with is the idea that Xonotic is too fast-paced for such a feature. A good damage system doesn't go to waste because movement and firing are fast. No matter how fast, one will probably notice when a shot aimed toward the head takes more damage and one fired at the legs takes less.

On another note, I might also add bone culling. So the closest bone takes more damage, then the further the rest are the lower they are rated (as an addition to existing range checking). This will make it so that being shot in the right arm from the right side will cause your torso to take less damage, because your arm absorbed the shot and covered your torso.
Reply



Messages In This Thread
RE: Bone based damage system (feature vote and debate) - by MirceaKitsune - 05-14-2012, 06:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  A Garry's Mod / sandbox system MirceaKitsune 20 38,250 01-05-2019, 10:52 PM
Last Post: 3agle427
  Spawn system Mirio 57 42,085 05-28-2016, 03:49 AM
Last Post: Smilecythe
  New feature review/test: Private Server List BuddyFriendGuy 17 17,697 01-07-2016, 08:05 AM
Last Post: BuddyFriendGuy
  Please vote on Map Filter UI Design BuddyFriendGuy 2 3,673 04-24-2015, 09:03 PM
Last Post: BuddyFriendGuy
Brick Seeking art for Xonotic based project MirceaKitsune 27 25,741 06-10-2014, 08:42 PM
Last Post: unfa
  entities - damage if func_pointparticles It'sMe 4 4,958 07-11-2013, 10:04 AM
Last Post: aa
  What is the general consensus on "dodging"? (UT's greatest feature IMO) ambition 7 6,955 01-26-2013, 02:42 PM
Last Post: lda17h
  Question and Rant on the LG and MG changes. GegoXAREN 5 5,656 11-26-2012, 04:16 PM
Last Post: hutty
Lightbulb Easy to configure *map* balance system Samual 8 12,165 11-17-2012, 04:14 AM
Last Post: Mr. Bougo
Brick Weapons defined in text files / de-harding weapons [feature debate] MirceaKitsune 41 45,047 10-10-2012, 03:59 PM
Last Post: hutty

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-