hitting condition? - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Community (https://forums.xonotic.org/forumdisplay.php?fid=6) +--- Forum: Xonotic - General (https://forums.xonotic.org/forumdisplay.php?fid=18) +--- Thread: hitting condition? (/showthread.php?tid=433) |
hitting condition? - Rage_ATWM - 05-14-2010 Just a pure curiosity question about the aiming model in Nexuiz: let's consider an hitscan weapon for instance. Geometrically speaking, the closer a target is, the larger the aiming angle tolerancy to hit this target is. This is pretty intuitive. Nevertheless, it often occurs that someone with a nex is able to hit you even if he is, let say, at 1 km away from you. If you assume that a player is 2m tall, this makes a vertical tolerancy angle of about 0.05 deg... which is not so large... It can be also noticed that sometimes, you do hit the opponent in spite of the aiming point is not exactly on the opponent body. So i feel that the hitting condition would not be based on the angle tolerancy... but then, does anyone know which criterion it is based on? RE: hitting condition? - Roanoke - 05-14-2010 Well, regarding the angle, the nex has a zoom that increases the tolerance. Zoom scripts can increase it further, sometimes enough to make the player fill the screen (fast reaction). Also, all players are in a rectangle. However, not all playerMODELS are rectangular. So while they fit inside the rectangle, they do not occupy all space within the rectangle. Hitting is based on the rectangle, so if you shoot in between their legs, you get a hit. RE: hitting condition? - Rage_ATWM - 05-15-2010 (05-14-2010, 06:18 PM)Roanoke Wrote: Well, regarding the angle, the nex has a zoom that increases the tolerance. Zoom scripts can increase it further, sometimes enough to make the player fill the screen (fast reaction). Also, all players are in a rectangle. However, not all playerMODELS are rectangular. So while they fit inside the rectangle, they do not occupy all space within the rectangle. Hitting is based on the rectangle, so if you shoot in between their legs, you get a hit. As for the rectangle thing, it of course does make sense. Zoom does increase the angular tolerancy. Still, some far shoots remain quite unlikely. I wouldn't be surprised if this admissible rectangle would get a larger area at some large distances, so that you have a chance to get an hit even with far targets. Would be a way to keep the fun alive on ctf maps for example... Anybody heard of such a bonus mechanism? RE: hitting condition? - Mr. Bougo - 05-16-2010 The zone you need to aim at to score a hit is larger than just the bounding box, as a result of the antilag system, so the tolerancy is sometimes higher than it would seem. Apart from this, hitscan just draws a line from the weapon to the solid point in the center of the crosshair and hits the first intersection (or all of them until it meets a wall in nex's case). No weird magnetism thing that I know. RE: hitting condition? - The mysterious Mr. 4m - 05-17-2010 The game is not reality! The zoom doesn't work like binoculars; it actually teleports your "Point of Shoot" all the way towards the target, like a portal. |