Npc sniper: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Entity Description: A little more info. More to come.)
(→‎Flags: - Filled in the sniper specific flags I know.)
Line 35: Line 35:


* 65536 : Hidden
* 65536 : Hidden
 
:The sniper will not have a model while alive. Should be checked.
* 131072 : Laser Viewcone
* 131072 : Laser Viewcone


* 262144 : No Corpse
* 262144 : No Corpse
 
:The sniper leaves no corpse.
* 524288 : Start Disabled
* 524288 : Start Disabled



Revision as of 21:24, 12 February 2006

Template:Wrongtitle

Entity Description

Sniper

A combine sniper.

This Combine soldier is wielding a sniping weapon with a blue laser sight, making it capable of extreme accuracy at extreme range.

The npc_sniper does not actually have its own model - rather, it uses a Combine soldier model in-game (if its Hidden flag is not set) playing its idle animation, with the rifle's laser coming from the center of the hull. For acceptible sniper damage, only blasts and burning hurt damage that are powerful enough to kill are allowed.

The sniper doesn't turn on his sight until after he sees the player or an NPC within an acceptable range and angle, and will turn it off again after he is done. He will prioritize the player over any other target. If he loses track of the player, he will get frustrated and shoot three rounds at the area where the player was last seen, often targeting smaller prop_physics (like soda cans, melons, melon chunks, cinderblocks, ...) but not large prop_physics (like soda machines). He will then resume to targeting any other visible targets.

He will only pay attention to info_snipertargets if ordered to (with the SweepTarget, SweepTargetHighestPriority or SweepGroupRandomly inputs).

Keyvalues

  • radius
<integer> Patience Radius
  • misses
<integer> Initial Misses
  • beambrightness
<integer> Beam Brightness (0 to 255)
  • shielddistance
<float> Bullet shield distance
  • shieldradius
<float> Bullet shield radius

Flags

  • 65536 : Hidden
The sniper will not have a model while alive. Should be checked.
  • 131072 : Laser Viewcone
  • 262144 : No Corpse
The sniper leaves no corpse.
  • 524288 : Start Disabled

Inputs

  • EnableSniper
Enable Shooting
  • DisableSniper
Disable Shooting
  • SetDecoyRadius <integer>
Set Decoy Radius
  • SweepTarget <string>
Sweep a Target
  • SweepTargetHighestPriority <string>
Drop everything and sweep this target!
  • SweepGroupRandomly <string>
Randomly Sweep a Group

Outputs

See Also