Difference between revisions of "Hitscan"

From Team Fortress Wiki
Jump to: navigation, search
(Consolidated to table. Ugh that took longer than it should have.)
Line 1: Line 1:
A '''hitscan''' weapon doesn't fire [[projectiles]] but instead traces lines from the player and checks for collisions with other objects. Depending on the object, the hitscan weapon then generates an effect such as dealing damage, painting blood and bullet hole sprites, or generating a vector impulse commonly known as [[knock back]].
+
'''Hitscan''' weapons instantly [[damage]] targets in their path when activated. Unlike [[projectile]] weapons, hitscan weapons are not code-rendered physical objects but are infinite lines drawn on the server that are then rendered cilent-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. Players don't see enemies dying before bullets are fired, however, because the client predicts the enemy's death and displays it with proper timing. All 'bullets' emit from the crosshair, despite what is suggested by the view model, likely to aid [[Sniper]]s for close-range headshots.
  
In gameplay terms, this means that hitscan weapons have infinite velocity. Note that this doesn't make hitscan weapons instant.  A weapon might delay tracing the line for a period of time.  For example, [[melee]] weapons wait .25 seconds after input before they trace a short line to see if anything should be struck. This prevents the weapon from hitting or killing a foe before the melee animation completes.
+
In technical terms, this means that hitscan weapons have infinite velocity, but this does not mean that they damage instantly after firing. '''[[Melee]]''' weapons wait .25 seconds after input before they trace a short line to see if anything should be struck. This prevents the weapon from hitting or killing a foe before the melee animation completes. Bullet-based wepons, after a 1.25 second heatup unless so directed to by the server are all affected by bullet-spread, 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.
 
 
Visually, most hitscan weapons fire bullets with apparent velocity. This is actually a graphical effect applied to the line after the trace is made. Players don't see enemies dying before bullets are fired, however, because the client predicts the enemy's death and displays it with proper timing, even if the shot killed the enemy some milliseconds earlier.
 
 
 
Below is a list of non-melee hitscan weapons in Team Fortress 2.
 
  
 +
Below is a list of non-melee hitscan weapons in ''Team Fortress 2''.
  
 
{| class="wikitable grid" width="30%"
 
{| class="wikitable grid" width="30%"

Revision as of 03:51, 9 December 2010

Hitscan weapons instantly damage targets in their path when activated. Unlike projectile weapons, hitscan weapons are not code-rendered physical objects but are infinite lines drawn on the server that are then rendered cilent-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. Players don't see enemies dying before bullets are fired, however, because the client predicts the enemy's death and displays it with proper timing. All 'bullets' emit from the crosshair, despite what is suggested by the view model, likely to aid Snipers for close-range headshots.

In technical terms, this means that hitscan weapons have infinite velocity, but this does not mean that they damage instantly after firing. Melee weapons wait .25 seconds after input before they trace a short line to see if anything should be struck. This prevents the weapon from hitting or killing a foe before the melee animation completes. Bullet-based wepons, after a 1.25 second heatup unless so directed to by the server are all affected by bullet-spread, 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.

Below is a list of non-melee hitscan weapons in Team Fortress 2.

Scout hitscan weapons Soldier hitscan weapons Pyro hitscan weapons Heavy hitscan weapons Engineer hitscan weapons Sniper hitscan weapons Spy hitscan weapons
Scattergun

Scattergun

Item icon Shotgun.png

Shotgun

Item icon Shotgun.png

Shotgun

Minigun

Minigun

Item icon Shotgun.png

Shotgun

Item icon Sniper Rifle.png

Sniper Rifle

Item icon Revolver.png

Revolver

Force-A-Nature

Force-A-Nature

Natascha

Natascha

Item icon Frontier Justice.png

Frontier Justice

Item icon Sydney Sleeper.png

Sydney Sleeper

Item icon Big Kill.png

Big Kill

Shortstop

Shortstop

Iron Curtain

Iron Curtain

Item icon Pistol.png

Pistol

Item icon Submachine Gun.png

Submachine Gun

Item icon Ambassador.png

Ambassador

Pistol

Pistol

Item icon Shotgun.png

Shotgun

Item icon Lugermorph.png

Lugermorph

Item icon L'Etranger.png

L'Étranger

Item icon Lugermorph.png

Lugermorph

See Also

Template:W on Template:W

Hitscan on the Valve Developer Community