Difference between revisions of "Hitscan"

From Team Fortress Wiki
Jump to: navigation, search
(moar infos)
 
(62 intermediate revisions by 34 users not shown)
Line 1: Line 1:
{{Quotation|'''The Sniper''' on how hitscan weapons work.|The bullets come out of the slim end, mate!|sound=Sniper_DominationSniper18.wav}}
+
[[File:Scout bullet hitboxes.png|275px|right|The hitboxes used for bullet-based weapons]]
'''Hitscan''' attacks instantly [[damage]] targets in their path. All hitscan attacks emit down the crosshair, from the attacker's eye level, despite what is suggested by the view model and world model. Unlike [[projectile]]s, hitscan attacks are not code-rendered physical objects but are infinitely-thin lines drawn on the server that are then rendered client-side visually as projectiles. Depending on the object hit and client settings, the hitscan weapon then generates an effect: dealing damage or painting blood and bullet hole sprites.
 
  
In technical terms, this means that hitscan weapons have infinite velocity, but this does not mean that they always damage instantly after firing.
+
{{Quotation|'''The Soldier,''' ''telling the Scout that bullets are faster than everything else.''|You run fast, my bullets run faster!|sound=Soldier DominationScout06.wav}}
  
'''[[Melee]]''' weapons, with the exception of the [[Spy]]'s [[Spy#Melee|unique melee weapons]] and the [[Engineer]]'s [[Engineer#Melee|melees]] while working on a building wait .25 seconds after input before initiating a short-ranged hitscan attack. This prevents the weapon from hitting or killing a foe before the melee animation completes.
+
'''Hitscan''' attacks instantly [[damage]] targets in their path. All hitscan attacks emit down the crosshair, from the attacker's eye level, despite what is suggested by the view model and world model. Unlike [[projectiles]], hitscan attacks are not code-rendered physical objects, but are infinitely-thin lines drawn on the server that are then rendered client-side visually as projectiles. Depending on the object hit and client settings, the hitscan weapon then generates an effect: dealing damage or painting blood and bullet hole sprites.  
  
There are two main types of hitscan attacks: those that make contact with the bullet-based hitbox (the eponymous 'bullets' and the [[Showdown]] taunt attack) and those that make contact with the environmental/projectile hitbox (melee weapons, the [[Chargin' Targe]] bash, and most other taunt attacks).  
+
In technical terms, this means that hitscan weapons have infinite velocity, but this does not mean that they always damage instantly after firing.
  
Bullet-based weapons (a list of which is given below) fire infinite lines. All bullet-based weapons (with the exception of the [[Ambassador]]) are affected by bullet-spread during a 1.25 second cooldown after firing a bullet, which causes bullets to move off-course to varying degrees. Certain bullet-based weapons fire multiple bullets in different directions, but all still are fired from the same spot on the crosshair. The effect of this is masked by 'bullets' that are visible only after passing a certain point or, in the case of the [[Heavy]]'s [[Heavy#Primary|primaries]], appear to fire at different times and from different locations than they actually do.
+
'''Melee''' weapons, with the exception of the [[Spy#Melee|Spy's melee weapons]], wait 0.2 seconds after input before initiating a short-ranged hitscan attack. This prevents the weapon from hitting or killing a foe before the melee animation completes.
  
== List ==
+
There are two main types of hitscan attacks: those that make contact with the bullet-based hitbox and those that make contact with the environmental/projectile hitbox (melee weapons, [[Charging#Shield Bash|shield bashes]], and [[Taunts#Kill taunts|kill taunts]]). The latter is also sometimes referred to as the [[vdc:Bounding Box|bounding box]].
Here is a list of bullet-based hitscan weapons in ''Team Fortress 2''.
 
  
{| class="wikitable grid" width="30%"
+
Bullet-based weapons (a list of which is given below) fire seemingly infinite lines (the actual maximum range is ~56,754 [[Hammer unit]]s). Most bullet-based weapons are affected by bullet-spread during a 1.25 second cooldown after firing a bullet, which causes bullets to move off-course to varying degrees. The [[Ambassador]] gradually recovers its accuracy and can fire a perfectly-accurate shot after 1 second. Weapons that fire multiple pellets, like the [[Shotgun]] and [[Minigun]], guarantee a pellet straight down the crosshair if the weapon was not fired within the last 0.25 seconds. When fixed weapon spread is enabled, shotguns use a fixed spread pattern. For example, the [[Scattergun]] uses a fixed 3x3 pattern when fixed spreads are enabled. If a {{botignore|shotgun}}-type weapon fires more than 9 pellets at once, fixed spread causes multiple pellets to hit the same location. The [[Wrangler]]'s laser sight always attempts to focus on the center of an [[Cloak|uncloaked]] and [[Disguise|undisguised]] enemy.
! class="header" width="15%" align = "center" rowspan = "2" | {{Icon class|class=Scout|link=Scout}} <br /> [[Scout]]
 
! class="subheader" | Primary
 
! align = "center" | {{Icon weapon|weapon=Scattergun|Scattergun|icon-size=75x75px}}
 
'''[[Scattergun]]'''
 
! align = "center"| {{Icon weapon|weapon=Force-A-Nature|Force-A-Nature|icon-size=75x75px}}
 
'''[[Force-A-Nature]]'''
 
! align = "center"| {{Icon weapon|weapon=Shortstop|Shortstop|icon-size=75x75px}}
 
'''[[Shortstop]]'''
 
|-
 
! class="subheader" | Secondary
 
! align = "center" | {{Icon weapon|weapon=Pistol|icon-size=75x75px}}
 
'''[[Pistol]]'''
 
! align = "center" | {{Icon weapon|weapon=Lugermorph|icon-size=75x75px}}
 
'''[[Lugermorph]]'''
 
|-
 
  
! class="header" width="15%" align = "center" rowspan = "1" | {{Icon class|class=Soldier|link=Soldier}} <br /> [[Soldier]]
+
Hitscan weapons have the ability to destroy enemy [[Stickybomb Launcher|stickybombs]] once they're attached to a surface. Unlike most projectile-based weapons, hitscan weapons are unable to penetrate friendly players. The only exception to this rule is the [[Sniper#Primary|Sniper's primary weapons]].
! class="subheader" | Secondary
 
! align = "center" | {{Icon weapon|weapon=Shotgun|icon-size=75x75px}}
 
'''[[Shotgun]]'''
 
|-
 
  
! class="header" width="15%" align = "center" rowspan = "1" | {{Icon class|class=Pyro|link=Pyro}} <br /> [[Pyro]]
+
== Bullet weapons ==
! class="subheader" | Secondary
+
{{Bullet hitscan weapons table}}
! align = "center" | {{Icon weapon|weapon=Shotgun|icon-size=75x75px}}
 
'''[[Shotgun]]'''
 
|-
 
  
! class="header" width="15%" align = "center" rowspan = "1" | {{Icon class|class=Demoman|link=Demoman}} <br /> [[Demoman]]
+
== Demonstration ==
| align="center" | ''None''
+
The following is a model-by-model video rendering of the bullet-based hitboxes:
|-
+
{{Youtube|9TJmiDcsxdA}}
  
! class="header" width="15%" align = "center" rowspan = "2" | {{Icon class|class=Heavy|link=Heavy}} <br /> [[Heavy]]
+
== Gallery ==
! class="subheader" | Primary
+
<gallery perrow="4">
! align = "center" | {{Icon weapon|weapon=Minigun|Minigun|icon-size=75x75px}}
+
File:Scout hitboxes front.png|{{cl|Scout}} bullet hitboxes.
'''[[Minigun]]'''
+
File:Scout hitboxes side.png|Ditto, from the side.
! align = "center" | {{Icon weapon|weapon=Natascha|Natascha|icon-size=75x75px}}
+
File:Soldier hitboxes front.png|{{cl|Soldier}} bullet hitboxes.
'''[[Natascha]]'''
+
File:Soldier hitboxes side.png|Ditto, from the side.
! align = "center" | {{Icon weapon|weapon=Iron Curtain|Iron Curtain|icon-size=75x75px}}
+
File:Pyro hitboxes front.png|{{cl|Pyro}} bullet hitboxes.
'''[[Iron Curtain]]'''
+
File:Pyro hitboxes side.png|Ditto, from the side.
! align = "center" | {{Icon weapon|weapon=Brass Beast|icon-size=75x75px}}
+
File:Demo hitboxes front.png|{{cl|Demoman}} bullet hitboxes.
'''[[Brass Beast]]'''
+
File:Demo hitboxes side.png|Ditto, from the side.
|-
+
File:Heavy hitboxes front.png|{{cl|Heavy}} bullet hitboxes.
! class="subheader" | Secondary
+
File:Heavy hitboxes side.png|Ditto, from the side.
! align = "center" | {{Icon weapon|weapon=Shotgun|icon-size=75x75px}}
+
File:Engineer hitboxes front.png|{{cl|Engineer}} bullet hitboxes.
'''[[Shotgun]]'''
+
File:Engineer hitboxes side.png|Ditto, from the side.
|-
+
File:Medic hitboxes front.png|{{cl|Medic}} bullet hitboxes.
 +
File:Medic hitboxes side.png|Ditto, from the side.
 +
File:Sniper hitboxes front.png|{{cl|Sniper}} bullet hitboxes.
 +
File:Sniper hitboxes side.png|Ditto, from the side.
 +
File:Spy hitboxes front.png|{{cl|Spy}} bullet hitboxes.
 +
File:Spy hitboxes side.png|Ditto, from the side.
 +
File:Saxton Hale hitboxes front.png|[[Versus Saxton Hale|Saxton Hale]] bullet hitboxes.
 +
File:Saxton Hale hitboxes side.png|Ditto, from the side.
 +
</gallery>
  
! class="header" width="15%" align = "center" rowspan = "3" | {{Icon class|class=Engineer|link=Engineer}} <br /> [[Engineer]]
+
== See also ==
! class="subheader" | Primary
+
* [[Damage]]
! align = "center" | {{Icon weapon|weapon=Shotgun|icon-size=75x75px}}
+
* [[Headshot]]
'''[[Shotgun]]'''
+
* [[Mechanics]]
! align = "center" | {{Icon weapon|weapon=Frontier Justice|icon-size=75x75px}}
+
** [[Projectiles]]
'''[[Frontier Justice]]'''
+
** [[Melee]]
|-
 
! class="subheader" | Secondary
 
! align = "center" | {{Icon weapon|weapon=Pistol|icon-size=75x75px}}
 
'''[[Pistol]]'''
 
! align = "center" | {{Icon weapon|weapon=Lugermorph|icon-size=75x75px}}
 
'''[[Lugermorph]]'''
 
|-
 
! class="subheader" | Other
 
! align = "center" | [[File:Sentries.png|75x75px|link=Sentry Gun]]
 
'''[[Sentry Gun]]'''
 
! align = "center" | [[File:Red_Mini_Sentry.png|75x75px|link=Combat Mini Sentry]]
 
'''[[Combat Mini-Sentry]]'''
 
|-
 
  
! class="header" width="15%" align = "center" rowspan = "1" | {{Icon class|class=Medic|link=Medic}} <br /> [[Medic]]
+
== External links ==
| align="center" | ''None''
+
* [[w:Hitscan|Hitscan]] on Wikipedia
|-
+
* {{vdc|Hitscan}}
 
 
! class="header" width="15%" align = "center" rowspan = "2" | {{Icon class|class=Sniper|link=Sniper}} <br /> [[Sniper]]
 
! class="subheader" | Primary
 
! align = "center" | {{Icon weapon|weapon=Sniper rifle|icon-size=75x75px}}
 
'''[[Sniper Rifle]]'''
 
! align = "center" | {{Icon weapon|weapon=Sydney Sleeper|icon-size=75x75px}}
 
'''[[Sydney Sleeper]]'''
 
|-
 
! class="subheader" | Secondary
 
! align = "center" | {{Icon weapon|weapon=Submachine gun|icon-size=75x75px}}
 
'''[[Submachine Gun]]'''
 
|-
 
 
 
! class="header" width="15%" align = "center" rowspan = "1" | {{Icon class|class=Spy|link=Spy}} <br /> [[Spy]]
 
! class="subheader" | Primary
 
! align = "center" | {{Icon weapon|weapon=Revolver|icon-size=75x75px}}
 
'''[[Revolver]]'''
 
! align = "center" | {{Icon weapon|weapon=Ambassador|icon-size=75x75px}}
 
'''[[Ambassador]]'''
 
! align = "center" | {{Icon weapon|weapon=Big kill|icon-size=75x75px}}
 
'''[[Big Kill]]'''
 
! align = "center" | {{Icon weapon|weapon=L'Etranger|icon-size=75x75px}}
 
'''[[L'Etranger|L'Étranger]]'''
 
|}
 
 
 
==Demonstration==
 
The following is a model-by-model video rendering of the bullet-based hitboxes:
 
{{youtube|9TJmiDcsxdA}}
 
==See Also==
 
*[[Headshot]]
 
*{{w|Hitscan}} on {{w|Wikipedia}}
 
  
*{{vdc|Hitscan}}
 
 
[[Category:Gameplay]]
 
[[Category:Gameplay]]

Latest revision as of 00:29, 24 December 2024

The hitboxes used for bullet-based weapons
You run fast, my bullets run faster!
The Soldier, telling the Scout that bullets are faster than everything else.

Hitscan attacks instantly damage targets in their path. All hitscan attacks emit down the crosshair, from the attacker's eye level, despite what is suggested by the view model and world model. Unlike projectiles, hitscan attacks are not code-rendered physical objects, but are infinitely-thin lines drawn on the server that are then rendered client-side visually as projectiles. Depending on the object hit and client settings, the hitscan weapon then generates an effect: dealing damage or painting blood and bullet hole sprites.

In technical terms, this means that hitscan weapons have infinite velocity, but this does not mean that they always damage instantly after firing.

Melee weapons, with the exception of the Spy's melee weapons, wait 0.2 seconds after input before initiating a short-ranged hitscan attack. This prevents the weapon from hitting or killing a foe before the melee animation completes.

There are two main types of hitscan attacks: those that make contact with the bullet-based hitbox and those that make contact with the environmental/projectile hitbox (melee weapons, shield bashes, and kill taunts). The latter is also sometimes referred to as the bounding box.

Bullet-based weapons (a list of which is given below) fire seemingly infinite lines (the actual maximum range is ~56,754 Hammer units). Most bullet-based weapons are affected by bullet-spread during a 1.25 second cooldown after firing a bullet, which causes bullets to move off-course to varying degrees. The Ambassador gradually recovers its accuracy and can fire a perfectly-accurate shot after 1 second. Weapons that fire multiple pellets, like the Shotgun and Minigun, guarantee a pellet straight down the crosshair if the weapon was not fired within the last 0.25 seconds. When fixed weapon spread is enabled, shotguns use a fixed spread pattern. For example, the Scattergun uses a fixed 3x3 pattern when fixed spreads are enabled. If a shotgun-type weapon fires more than 9 pellets at once, fixed spread causes multiple pellets to hit the same location. The Wrangler's laser sight always attempts to focus on the center of an uncloaked and undisguised enemy.

Hitscan weapons have the ability to destroy enemy stickybombs once they're attached to a surface. Unlike most projectile-based weapons, hitscan weapons are unable to penetrate friendly players. The only exception to this rule is the Sniper's primary weapons.

Bullet weapons

List of bullet-based hitscan weapons
Primary Scattergun Force-A-Nature Shortstop Soda Popper Baby Face's Blaster Back Scatter
Scattergun Force-A-Nature Shortstop Soda Popper Baby Face's Blaster Back Scatter
Secondary Pistol Lugermorph Winger Pretty Boy's Pocket Pistol C.A.P.P.E.R
Pistol Lugermorph Winger Pretty Boy's Pocket Pistol C.A.P.P.E.R
Secondary Shotgun Reserve Shooter Panic Attack
Shotgun Reserve Shooter Panic Attack
Secondary Shotgun Reserve Shooter Panic Attack
Shotgun Reserve Shooter Panic Attack
Primary Minigun Natascha Iron Curtain Brass Beast Tomislav Huo-Long Heater
Minigun Natascha Iron Curtain Brass Beast Tomislav Huo-Long Heater
Secondary Shotgun Family Business Panic Attack
Shotgun Family Business Panic Attack
Primary Shotgun Frontier Justice Widowmaker Panic Attack
Shotgun Frontier Justice Widowmaker Panic Attack
Secondary Pistol Lugermorph C.A.P.P.E.R
Pistol Lugermorph C.A.P.P.E.R
Building RED Level 3 Sentry Gun.png Red Mini Sentry.png
Sentry Gun Combat Mini-Sentry Gun
Primary Sniper Rifle Sydney Sleeper Bazaar Bargain Machina Hitman's Heatmaker AWPer Hand Classic Shooting Star
Sniper Rifle Sydney Sleeper Bazaar Bargain Machina Hitman's Heatmaker AWPer Hand Classic Shooting Star
Secondary SMG Cleaner's Carbine
SMG Cleaner's Carbine
Secondary Revolver Ambassador Big Kill L'Etranger Enforcer Diamondback
Revolver Ambassador Big Kill L'Etranger Enforcer Diamondback

Demonstration

The following is a model-by-model video rendering of the bullet-based hitboxes:

Gallery

See also

External links