Author Topic: How does hit detection work?  (Read 764 times)

Offline Kweassa

  • Platinum Member
  • ******
  • Posts: 6425
How does hit detection work?
« on: April 30, 2007, 06:27:46 AM »
We all know how collision detection works..

 but then.. how does hit detection work??

 What if I shoot and land hits on my FE, but the other guy has evaded hits in his FE??

Offline CFYA

  • Copper Member
  • **
  • Posts: 197
How does hit detection work?
« Reply #1 on: April 30, 2007, 06:37:25 AM »
Your FE determines the damage from collisions and bullet impacts. If a hit is detected your computer sends a message to his front end saying "I just took your tail off" etc etc. I am a little hazy on this but your bullets are actually going to in front of or behind his aircraft when you score a hit (on his frontend). The exception to this would be if a target is stalled with little airspeed where he deserves to die regardless :)

Coming for your ....

Ryan

Offline hubsonfire

  • Plutonium Member
  • *******
  • Posts: 8658
How does hit detection work?
« Reply #2 on: April 30, 2007, 08:53:28 AM »
If you shoot the guy, and it's a hit on your FE, it's a hit on his, whether he tried to evade or not.
mook
++Blue Knights++

Proper punctuation and capitalization go a long way towards people paying attention to your posts.  -Stoney
I was wondering why I get ignored so often.  -Hitech

Offline Engine

  • Silver Member
  • ****
  • Posts: 1195
How does hit detection work?
« Reply #3 on: April 30, 2007, 08:56:25 AM »
I assume this is why you get that short delay between your hitting someone, and their tail/wing falling off. Your client tells the server you scored hits, the server tells the other guy's client, and then his tail falls off. :)

Offline Tilt

  • Platinum Member
  • ******
  • Posts: 7358
      • FullTilt
How does hit detection work?
« Reply #4 on: April 30, 2007, 09:42:42 AM »
Hunter FE advises the hunted FE of hits location (on the object) and calibre (or damage value) and hunted FE adds this to those he has already incurred.

Hunted FE advises other FE's of stuff he has broken.
Ludere Vincere

Offline killnu

  • Gold Member
  • *****
  • Posts: 3056
How does hit detection work?
« Reply #5 on: April 30, 2007, 10:45:01 AM »
I got nice film of this...guy shoots, but bullets miss me, no hit sprites...yet my tail falls off.  Great stuff....really...:mad:
Karma, it follows you every where you go...

++The Blue Knights++

Offline Lusche

  • Radioactive Member
  • *******
  • Posts: 23931
      • Last.FM Profile
How does hit detection work?
« Reply #6 on: April 30, 2007, 10:56:07 AM »
Quote
Originally posted by killnu
I got nice film of this...guy shoots, but bullets miss me, no hit sprites...yet my tail falls off.  Great stuff....really...:mad:


Almost all my films look that way.
And without hit determination only on the shooters FE, this game could not work.
Steam: DrKalv
E:D Snailman

In November 2025, Lusche will return for a 20th anniversary tour. Get your tickets now!

Offline JB73

  • Plutonium Member
  • *******
  • Posts: 8780
How does hit detection work?
« Reply #7 on: April 30, 2007, 12:19:03 PM »
It has been explained before IIRC by Dale..

your FE detects any hits from your guns. there is lag some times in the time it takes the damage to be sent to his PC... thats why in really laggy areas you sometimes see someone be shot up fly a few seconds before they "die"



I don't knwo about other people in the area, and how that is transmitted, but I can imagine a scenario:

you shoot off a wing of an enemy, your FE shows the hits and the damage (say shooting 1 wing off) and sends that info out to the server. the server relays that to the damaged guy, and obviously to all others in the area so they see the missing wing too... only the guy with the missing wing is in austraila or something, and the lag for the damage to get to him is longer than others in the area. he "appears" to fly a few seconds with 1 wing missing.

I could be totally wrong with that, and probably am as HTC would know how to fix that or change it, whatever.


but point is if you damage the plane on your FE with your guns it is then transmitted to him.
I don't know what to put here yet.

Offline E25280

  • Gold Member
  • *****
  • Posts: 3475
      • http://125thspartanforums.com
How does hit detection work?
« Reply #8 on: April 30, 2007, 01:18:43 PM »
Quote
Originally posted by JB73
It has been explained before IIRC by Dale..

your FE detects any hits from your guns. there is lag some times in the time it takes the damage to be sent to his PC... thats why in really laggy areas you sometimes see someone be shot up fly a few seconds before they "die"



I don't knwo about other people in the area, and how that is transmitted, but I can imagine a scenario:

you shoot off a wing of an enemy, your FE shows the hits and the damage (say shooting 1 wing off) and sends that info out to the server. the server relays that to the damaged guy, and obviously to all others in the area so they see the missing wing too... only the guy with the missing wing is in austraila or something, and the lag for the damage to get to him is longer than others in the area. he "appears" to fly a few seconds with 1 wing missing.

I could be totally wrong with that, and probably am as HTC would know how to fix that or change it, whatever.


but point is if you damage the plane on your FE with your guns it is then transmitted to him.
Not quite correct.  Actually, you would witness a bunch of hit sprites on the wing, and he would appear to fly undamaged for a short period.  Then everyone would witness his wing fall off at (roughly) the same time without you shooting at him anymore.

Your damage is transmitted, but the effects would be on his end.  It would take a short amount of time for his end to then transmit the effects and accompanying visuals back to your PC.


This type of lag is the cause of the occasional whines like "how do you shoot out of the top of your airplane", "He wasn't even pointed at me", etc. etc.  You didn't see him pointed at you, but on his PC he was, thus had a guns solution on you.

Put a better way by many others many times -- by the time you actually see him start to fire, it is already too late.  You might start your evasives, but most likely in the preceding 10th of a second he has already pegged you -- you just don't know it yet.
Brauno in a past life, followed by LTARget
SWtarget in current incarnation
Captain and Communications Officer~125th Spartans

"Proudly drawing fire so that my brothers may pass unharmed."

Offline Yeager

  • Plutonium Member
  • *******
  • Posts: 10167
How does hit detection work?
« Reply #9 on: April 30, 2007, 01:18:58 PM »
Who needs hit detection.  If your in a LA7 just chase them into the ground :aok
"If someone flips you the bird and you don't know it, does it still count?" - SLIMpkns

Offline Bucky73

  • Silver Member
  • ****
  • Posts: 826
How does hit detection work?
« Reply #10 on: April 30, 2007, 01:19:58 PM »
Quote
Originally posted by Engine
Your client tells the server you scored hits, the server tells the other guy's client, and then his tail falls off. :)



My "client" is blind- I want a new one.

Offline zorstorer

  • Silver Member
  • ****
  • Posts: 950
How does hit detection work?
« Reply #11 on: April 30, 2007, 01:51:47 PM »
Quote
Originally posted by Bucky73
My "client" is blind- I want a new one.


14.95 and I can have one in the mail to you ;)