Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum? Say hello in this topic! Also make sure to read the rules.
New to the forum? Say hello in this topic! Also make sure to read the rules.
weird melee hitbox
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
- Alexbra25
- Superfighter
- Posts: 89
- Joined: Sat Mar 19, 2016 2:35 pm
- Title: lucky boy
- SFD Account: Alexbra25
- SFD Alias: |LPH| Just me
- Started SFD: PreAlpha 1.0.6
- Location: Brazil/São Paulo
- Gender:
- Age: 23
weird melee hitbox
Not sure how this happened, but the axe is hitting really far in this video. Sometimes the ranges of melee weapons are weird: sometimes they seem too short, sometimes too long.
https://www.youtube.com/watch?v=ZirodSmdkp8
https://www.youtube.com/watch?v=wda-FDvteX8
in this other video, it seems like the hitbox doesn't outline the back arm. I think it's not a bug in this case, but I think it could be improved.
https://www.youtube.com/watch?v=ZirodSmdkp8
https://www.youtube.com/watch?v=wda-FDvteX8
in this other video, it seems like the hitbox doesn't outline the back arm. I think it's not a bug in this case, but I think it could be improved.
3 x
Love will tear us apart
- Sree
- Superfighter
- Posts: 325
- Joined: Sun May 08, 2016 8:19 pm
- SFD Account: phasmic
- SFD Alias: sree
- Gender:
- Age: 23
My understanding is that the range of a melee weapon is irrelevant to it's visual art. It makes sense, the fire axe strikes should have higher range than a machete's hit and if they alter the range according to the visual art of the weapons, the fireaxe would have lesser range. so I suppose they should just alter the visual art of the weapons?
0 x
- Noble
- Moderator
- Posts: 482
- Joined: Wed Mar 30, 2016 6:46 pm
- Title: Modest guy
- SFD Alias: Best player
- Location: Brazil
- Gender:
Wrong,Sree wrote: ↑Tue Jun 05, 2018 4:37 pmMy understanding is that the range of a melee weapon is irrelevant to it's visual art. It makes sense, the fire axe strikes should have higher range than a machete's hit and if they alter the range according to the visual art of the weapons, the fireaxe would have lesser range. so I suppose they should just alter the visual art of the weapons?
Unless recent updates changed it, I think machete and fire axe always 've been having the very same range.
However, I'm not sure about if what is in this topic is a bug, but sometimes (playing with a good ping btw), the range from punch or melee weapons seems distorted, it's sometimes way higher or lower than usual. It can be our mind blowing us up but yeah, often, it doesn't seem very consistent.
2 x
When I was 22 I read this book
And I swore
"I'll stay my way, I'll stay my way"
And I swore
"I'll stay my way, I'll stay my way"
- Splinter
- Superfighter
- Posts: 314
- Joined: Sat Mar 19, 2016 5:03 pm
- Title: Grenade chef
- Started SFD: 1.1.6
- Location: Brazil
- Gender:
@Sree It's not just the visual art. I tested it a bit more, here's the video:
https://youtu.be/X-g_Z_TuA_4
Zoom in and notice how the chain visually touches him while I'm on his left side, but on the right side, the chain doesn't even touch him and the hit connects. Maybe it has something to do with the hitbox shifting when a character turns around? You can see better in these screenshots:
https://youtu.be/X-g_Z_TuA_4
Zoom in and notice how the chain visually touches him while I'm on his left side, but on the right side, the chain doesn't even touch him and the hit connects. Maybe it has something to do with the hitbox shifting when a character turns around? You can see better in these screenshots:
5 x
Hold your breath.
- Sree
- Superfighter
- Posts: 325
- Joined: Sun May 08, 2016 8:19 pm
- SFD Account: phasmic
- SFD Alias: sree
- Gender:
- Age: 23
machete and fire axe does have the very same range. I messed up right there, what I tried to convey was that if they formulated the range of a weapon according to it's visual art then machete and fire axe would have different range since the range of the fire axe looks much lesser art wise.Noble wrote: ↑Tue Jun 05, 2018 6:33 pm
Wrong,
Unless recent updates changed it, I think machete and fire axe always 've been having the very same range.
However, I'm not sure about if what is in this topic is a bug, but sometimes (playing with a good ping btw), the range from punch or melee weapons seems distorted, it's sometimes way higher or lower than usual. It can be our mind blowing us up but yeah, often, it doesn't seem very consistent.
but anyway I seem to be wrong. as splinter depicted, it seems to be something wrong with the hitboxes.
1 x
- Gurt
- Lead Programmer
- Posts: 1884
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Gender:
- Age: 34
There will always be small variations (like a few "SFD-pixels") for players in online games.
Analyze the pattern in the map editor as it strips away the client/server side + ping variations introduced otherwise.
The hitbox is just centered around the middle of the fighters feet which let's us keep it simple. It's not a pixel-perfect collision we're doing here, just an AABB (this also means the back arm is sticking out of the AABB while the chest is slightly inside). Some weapons' hitbox is also one pixel short of the model and some animations (like being hit) offsets you another pixel for "animation-feedback" purposes.
Analyze the pattern in the map editor as it strips away the client/server side + ping variations introduced otherwise.
The hitbox is just centered around the middle of the fighters feet which let's us keep it simple. It's not a pixel-perfect collision we're doing here, just an AABB (this also means the back arm is sticking out of the AABB while the chest is slightly inside). Some weapons' hitbox is also one pixel short of the model and some animations (like being hit) offsets you another pixel for "animation-feedback" purposes.
1 x
Gurt
- Splinter
- Superfighter
- Posts: 314
- Joined: Sat Mar 19, 2016 5:03 pm
- Title: Grenade chef
- Started SFD: 1.1.6
- Location: Brazil
- Gender:
I repeated what I did in the video (the one with the chain and the bot) in the map editor, and you're right, the hitboxes were perfect. Except for the arm being out of the hibox, but I can live with that, not every single animation will fit on a rectangle.
But, still thinking about the video I posted, I don't understand why the hitbox was wrong. I was hosting alone with this bot, how can lag interefere in a situation like this? Honestly, 1 "sfd pixel" is not a big deal for me, just wondering if it could be a simple, fixable bug, such as the hitbox not "updating" properly when a character rolls (the bot did a recovery roll before the video started, just so you know).
About the first video Alex posted, I remember I had "alt+tabbed" out of the game for a bit, so maybe my game freezing had something to do with it.
0 x
Hold your breath.