Npc combinegunship: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 40: Line 40:
* '''sk_npc_dmg_gunship_to_plr'''
* '''sk_npc_dmg_gunship_to_plr'''
: <float> Used by ammotype "CombineCannon"
: <float> Used by ammotype "CombineCannon"
==Keyvalues==
* {{kv basehelicopter}}
* '''LandTarget'''
: <target_destination> Land target name
* '''GunRange'''
: <float> If the dropship's carrying a crate with a gun on it, it'll only shoot targets within this range.
* '''NPCTemplate'''
: <target_destination> Name of Template NPC 1
* '''NPCTemplate''(2-6)'''''
: <target_destination> Name of Template NPC ''(2-6)''
* '''Dustoff''(1-6)'''''
: <target_destination> Name of dustoff point for NPC ''(1-6)''
* '''APCVehicleName'''
: <target_destination> Name of the APC to drop
* '''Invulnerable'''
: {{boolean}}
* '''CrateType'''
: <choices>
:{|
! Literal Value || Description
|-
| -3 || Jeep (No crate)
|-
| -2 || APC (No crate)
|-
| -1 || Strider (No crate)
|-
| 0 || Roller Hopper
|-
| 1 || Soldier Crate
|-
| 2 || None
|}
==Flags==
* {{fl basehelicopter}}
* 32768 : Wait for input before dropoff
==Inputs==
* {{i basehelicopter}}
* '''LandLeaveCrate <integer>'''
: Land, drop soldiers, and leave the crate behind. Specify the number of troops to drop off in the parameter.
* '''LandTakeCrate <integer>'''
: Land, drop soldiers, but don't leave the crate behind. Specify the number of troops to drop off in the parameter.
* '''DropMines <integer>'''
: Drop Rollermines. Specify the number of mines to drop in the parameter.
* '''DropStrider'''
: Drop the Strider you're carrying. Now.
* '''DropAPC'''
: Drop the APC you're carrying. Now.
* '''Pickup <string>'''
: Pickup an entity.
* '''SetLandTarget <string>'''
: Set my land target name.
* '''SetGunRange <float>'''
: Set my crate gun's range.
* '''EnableRotorSound'''
: Turns on rotor sounds
* '''DisableRotorSound'''
: Turns off rotor sounds
* '''StopWaitingForDropoff'''
: Stop waiting for the dropoff. Dropoff as soon as possible.
==Outputs==
* {{o basenpc}}
* '''OnFinishedDropoff'''
: Fires when the dropship has finished a dropoff.
* '''OnFinishedPickup'''
: Fires when the dropship has finished a pickup.
* '''OnCrateShotDownBeforeDropoff <float>'''
: Fires when the container was shot down before it dropped off soldiers. The parameter contains the number of soldiers that weren't successfully dropped off.
* '''OnCrateShotDownAfterDropoff'''
: Fires when the container was shot down after it dropped off soldiers.


[[Category:Entities]]
[[Category:Entities]]

Revision as of 16:44, 12 July 2005

Template:Wrongtitle

Entity Description

File:Combinegunship.jpg
Combine Gunship
Note.pngNote:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.

Dedicated Console Variables

  • sk_gunship_burst_size
<integer> Fire off this many bullets in a burst
  • sk_gunship_burst_min
<float>
  • sk_gunship_burst_dist
<float>
  • sk_gunship_health_increments
<integer> Number of times the gunship must be struck by explosive damage
Multiplied for skill settings
  • g_debug_gunship
<choices> Debug type
Literal Value Description
0 Disabled
1 Leading
2 Path
3 Stitching
  • sk_npc_dmg_gunship
<float> Used by ammotype "CombineCannon"
  • sk_npc_dmg_gunship_to_plr
<float> Used by ammotype "CombineCannon"