How does hit detection work in COD4?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vreki
    Senior Member
    • Oct 2007
    • 4226

    #1

    How does hit detection work in COD4?

    According to this chart below, a M14 with stopping power should be able to kill anything in two hits, juggernaut or not.

    And yet in CQB I will at times make 3-4 hits on an opponent without killing him, so I was wondering if there are additional hitboxes for arms and legs with a lower modifier?



  • AllFoamNoBeer
    Member
    • Apr 2007
    • 4034

    #2
    I believe that arms and legs take the same damage modifier as the gut.

    Comment

    • The_Eliminator
      Senior Member
      • Aug 2006
      • 5486

      #3
      There are no hitboxes in CoD4 i didnt think, it is all Pixel Collision.

      Comment

      • Chris_Redfield
        Member
        • Oct 2006
        • 5986

        #4
        The only way to accurately check the problem out, would be through extensive testing. I dont believe youre killing people in more than 2 shots at CQB, provided the shots actually hit. Go play around with the M14, record a demo, and evaluate later. I am not convince that theres a problem.

        Comment

        • b` m3ow

          #5
          Originally posted by The_Eliminator
          There are no hitboxes in CoD4 i didnt think, it is all Pixel Collision.
          What he said, its all about pixels.

          Comment

          • Vreki
            Senior Member
            • Oct 2007
            • 4226

            #6
            Originally posted by The_Eliminator
            There are no hitboxes in CoD4 i didnt think, it is all Pixel Collision.
            Pixel Collision? How does that work in a 3D environment?
            Or is it automatically considered a hit if my "cross-hair-pixel" covers a "soldier-pixel" when I pull the trigger?

            Originally posted by Chris_Redfield
            The only way to accurately check the problem out, would be through extensive testing. I dont believe youre killing people in more than 2 shots at CQB, provided the shots actually hit. Go play around with the M14, record a demo, and evaluate later. I am not convince that theres a problem.
            Hmm, so far you seem to be correct, things do look different in slow motion.

            Comment

            • Sars99
              Member
              • Apr 2007
              • 1708

              #7
              can someone explain to me the pixel collison as opposed to hitboxes?

              Comment

              • AllFoamNoBeer
                Member
                • Apr 2007
                • 4034

                #8
                Originally posted by Sars99
                can someone explain to me the pixel collison as opposed to hitboxes?
                I don't see how it will work in a game like this. Its usually done on 2D sprites and flash games stuff like that.

                But COD4? No idea dude.

                Comment

                • TheDesert_Fox

                  #9
                  Pixel collision doesn't work in 3D does it? Unless it's like how Vreki suggested by being from your perspective with a crosshair pixel and what not...

                  Comment

                  • The_Eliminator
                    Senior Member
                    • Aug 2006
                    • 5486

                    #10
                    Well from what i have been told many times, and i think the developers also said it too, this game does use pixel collision in the 3D environment.

                    Basically this game fires actual projectiles which travel at a certain speed, it then hits the pixel of another player and is registered as damage, this is why you have to ridiculously lead your targets in this game, even if they are only 5 feet away.

                    Pixel Collision imo is very poorly implemented in this game though.

                    Comment

                    • sturat

                      #11
                      I think there is a difference between arms/legs/torso because M40 with Stopping power is a one shot kill even for full health, but sometimes if I hit an arm, then it comes up with a hit indicator and doesnt kill the player.

                      Comment

                      • Vreki
                        Senior Member
                        • Oct 2007
                        • 4226

                        #12
                        Originally posted by The_Eliminator
                        Well from what i have been told many times, and i think the developers also said it too, this game does use pixel collision in the 3D environment.

                        Basically this game fires actual projectiles which travel at a certain speed, it then hits the pixel of another player and is registered as damage, this is why you have to ridiculously lead your targets in this game, even if they are only 5 feet away.

                        Pixel Collision imo is very poorly implemented in this game though.
                        But but but.....
                        Pixels are 2D objects, you will have to add a 3D coordinate for that to work. And as far as I can see that would effectively cover the objects with millions of 1x1x1 hitboxes, which must be incredible costly to compute.

                        Then there is also is the factor that pixels are clientside, and vary depending on resolution and the detail level of objects.

                        Comment

                        • The_Eliminator
                          Senior Member
                          • Aug 2006
                          • 5486

                          #13
                          Dont look at me im just the messenger

                          Comment

                          • jackal22
                            Member
                            • Jul 2007
                            • 515

                            #14
                            if it was a 'cross-hair pixel over enemy pixel = hit' type thing then how comes some one has not enlarged their cross-hair to a big square which consumes the whole screen.

                            off topic, pollys are not like pixels right? they are more to do with models?

                            Comment

                            • Vreki
                              Senior Member
                              • Oct 2007
                              • 4226

                              #15
                              Originally posted by jackal22
                              if it was a 'cross-hair pixel over enemy pixel = hit' type thing then how comes some one has not enlarged their cross-hair to a big square which consumes the whole screen.

                              off topic, pollys are not like pixels right? they are more to do with models?
                              Polygons? No, that's the "wireframe" that makes up the 3D objects.
                              Like this:


                              Originally posted by jackal22
                              if it was a 'cross-hair pixel over enemy pixel = hit' type thing then how comes some one has not enlarged their cross-hair to a big square which consumes the whole screen.
                              I suspect that only the centre pixel would be used for the calculation, regardless of the size of the cross-hair.

                              Comment

                              Working...