Npc launcher

From Valve Developer Community
Revision as of 20:01, 17 September 2005 by Maven (talk | contribs) (Notes on invalid defaults.)
Jump to navigation Jump to search

Template:Wrongtitle

Entity Description

Can fire rocket-propelled grenades with many property customizations

Keyvalues

  • StartOn
<boolean>
  • MissileModel
<studio>
  • LaunchSound
<sound>
  • FlySound
<sound>
  • SmokeTrail
<choices>
Literal Value Description
0 Off
1 On
2 On Homing
  • LaunchSmoke
<boolean>
  • LaunchDelay
<integer> When ON, how long to wait between each launch
  • LaunchSpeed
<float> Initial launch speed of missile (in up direction)
  • PathCornerName
<target_destination> Name of a path corner. If set launches a pathfollowing missing, rather than a homing missile
  • HomingSpeed
<float> Speed to reach when homing
  • HomingStrength
<integer> How strong in homing effect (0-100)
  • HomingDelay
<float> Number of seconds to delay before homing starts
  • HomingRampUp
<float> Number of seconds it takes to reach full homing strength after homing delay
  • HomingDuration
<float> Number of seconds the homing effect lasts
  • HomingRampDown
<float> Number of seconds it takes homing effect to decay after homing duration
  • Gravity
<float> Scale for effect of gravity. (1.0 = normal gravity)
  • MinRange
<float> Minimun distance a target can be to be attacked
  • MaxRange
<float> Maximum distance a target can be to be attacked
  • SpinMagnitude
<float> Strength of spin in missile trajectory
  • SpinSpeed
<float> How fast does the spin rotate through 360
  • Damage
<float> How much damage does each missile do
  • DamageRadius
<float>

Flags

  • 65536  : Check LOS

Inputs

  • TurnOn
Turn on Launcher
  • TurnOff
Turn off Launcher
  • LOSCheckOn
Start checking line of sight before firing
  • LOSCheckOff
Stop checking line of sight before firing
  • SetEnemyEntity
Set entity I should attack. Ignores visibility. (output from other entity only)
  • ClearEnemyEntity
Clear set enemy enemy
  • FireOnce
Fire Once (if have enemy)

Outputs

  • OnLaunch
Fires when missile is launched

Notes

The default values of the MissileModel and FlySound properties point to resources that do not exist. Appropriate values would be models/Weapons/W_missile.mdl and weapons/rpg/rocket1.wav, respectively.