Guide: Hitbox
Since many people often can't understand the difference between hitbox and latency, I wanna make this guide to help those who keep making posts about it. Saying "the hitboxes are broken" and things like that is very inaccurate, let's start.
β
In this example we can see the survivors hitbox. It won't change unless you crouch which will reduce it by roughly 50% but won't be pixel perfect.
β
Example Of Survivor Hitbox. Source: BHVR
Everything tangible have an hitbox. Yes, also the hatchets you like to catch with your teeth. Pallets, Gens, Jungle Gyms, Tires, Survivors, anything except hag's traps when activated unless she runs a certain add on.
Note: When working on generators your hitbox is registered like you are standing still, so an hatchet can hit you if the Huntress has a good aim
β
When the cone of the Killer's attack range connects to the Survivor's hitbox, you'll get hit. Same thing for any throwable object like hatchets and gas potions.
Now, why people confuses this term and keep saying the hitboxes are broken?
It's pretty easy to be honest. People think, most of the time (just google "Dead By Daylight hitbox" and you'll see this atrocity everywhere) hitbox and latency are the same thing. Before I continue I have to explain how the NetCode of DbD works.
P2P (peer to peer)
Peer-to-peer (P2P) computing or networking is a distributed application architecture that partitions tasks or workloads between peers. Peers are equally privileged, equipotent participants in the application. They are said to form a peer-to-peer network of nodes.
Peers make a portion of their resources, such as processing power, disk storage or network bandwidth, directly available to other network participants, without the need for central coordination by servers or stable hosts. Peers are both suppliers and consumers of resources, in contrast to the traditional client-server model in which the consumption and supply of resources is divided. Emerging collaborative P2P systems are going beyond the era of peers doing similar things while sharing resources, and are looking for diverse peers that can bring in unique resources and capabilities to a virtual community thereby empowering it to engage in greater tasks beyond those that can be accomplished by individual peers, yet that are beneficial to all the peers. (source Wikipedia)
Difference Between Dedicated Servers and P2P
In dedicated server games, there is a server set up to run the game. This server is not a player, and often runs a different version of the game software. It doesn't need a video card, it doesn't need the game assets that are only needed for rendering (e.g, textures, detailed 3d models, etc).
With a dedicated server, all players connect to that server - this is called a "star" topology. The dedicated server runs the simulation. What the player's computer sends to the server is something like: "I am moving in this direction, I am facing this direction, and I am shooting". The server updates the simulation and informs all of the players of the new state of things.
There may be a lobby host player who controls the game settings, but that's where their responsibility ends.
In Peer to Peer games, the players connect directly to each other. One player's computer (we'll say Player A) sends packets directly to the other player's computer (lets call them Players B and C).
There are two common forms here - the game may have a dedicated host player that all the players will connect to (you get A-B and A-C). This is similar to how dedicated servers work. One player is both the server and a player.
A second form of peer to peer game is when all players connect to each other, and there is no dedicated host player. This is called a "mesh". Everyone runs the logic and then try to negotiate with each other. It is usually something like "I am here, facing in this direction, moving in this direction, I am shooting, and my shots are doing damage to this enemy".
-----------------------------------------------------------------------------------------------------------------------------------
So what this explanation was for?
Now I can explain why people get confused so often. When you are in a P2P environment, the host's connection is the one that's more important. Based on distance from the host, connection speed, upload and download of host's connection and yours, can result in different outcomes. For example, been hit through a vault, that in your end, you got through milliseconds before, but that's not what the Host saw on its end, which take priority. Same thing happens for pallets, drops and so on.
Dedicated Servers are awful now
Yes, they are not the best right now, for one simple reason. The game was designed around P2P connection with the host, which is the killer since is usually the last person who'll DC. If a survivor was the host, he/she could just disconnect and "save" the game for the other survivors making it easily abusable. The game, being designed for a P2P connection, have a tough time to be transferred to a dedicated server environment, due to coding and how the NetCode would drastically change. Unlike fighting games, that are designed to be on servers with solid NetCode even on P2P and be as pixel perfect as the can get, to perform well online since every frame is precious, for DbD that's not the case.
β
Latency in a P2P connection can make you feel like the game is broken, or even these "hitbox" are, but its wrong to attribute that to them. Usually is due to connectivity issues, from the host or the guests that might be too far from the host, making the connection unstable. At least, not stable as any other major Software House, having the money and capability to do so. The only thing we can do for now is wait and give time to BHVR to make their tests to ensure a good experience for everybody.
Posted Oct 5, 2019, 5:42 AM UTC Β· edited
finally someone said it
Was about to comment this :P