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)

#9
(05-13-2012, 06:20 PM)nowego4 Wrote: So if I'm understanding this correctly, you're basically creating bounding boxes for each bone (i.e., not using the player mesh). Would this be prone to holes (and overlaps)? I guess I'm unclear on how it's actually receiving the damage, as animation bones have no physical area.

No, the bones don't have bounding boxes. Basically, I know the origin where the damage took place. Next I loop through all skeletal bones of the player model, and read each bone's origin. Using a vlen, I then get the distance between each bone and the point of impact. Then use this to calculate if the bone was in range of the blast, and deal the appropriate damage if any it so be dealt.

So there's no bbox scanning... I only loop and scan the origins, then tell distance based on that. Note that projectiles themselves still explode when they hit the bounding box as usual... just that damage isn't calculated for that any more.

(05-13-2012, 07:10 PM)FruitieX Wrote: I'm in favor of this, even by default if you find a way to make it so that damage calculations work the same for any model.... Don't think the model you select should really have any effects on gameplay!

Sadly I don't see one. If I use skeletal bones to calculate damage, I'm using the player's animation skeleton, which depends on model. But on the good side, almost no model should be using a custom skeleton. So with the default models in Xonotic at least, there should be no difference.
Reply



Messages In This Thread
RE: Bone based damage system (feature vote and debate) - by MirceaKitsune - 05-13-2012, 08:04 PM

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