Npc combinegunship: Difference between revisions
Jump to navigation
Jump to search
Note:The gunship does not use info_node_air for navigation. It follows path_tracks exclusively! It does so quite intelligently though, so the result looks rather dynamic.
Note:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
Tip:Use info_target_gunshipcrash entities to suggest spectacular crashing points for defeated gunships.
Tip:npc_heli_avoidsphere works with this npc
m (categorization) |
No edit summary |
||
(15 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{CD|CNPC_CombineGunship|base=CBaseHelicopter|file1=1}} | |||
[[ | [[File:Combine_gunship.jpg|300px|thumb|Combine Gunship]] | ||
{{this is a|model entity|name=npc_combinegunship|game=Half-Life 2 series}} | |||
{{ | It is a flying Combine NPC with one main gun and the ability to track and shoot down RPG rockets. | ||
{{note|The gunship does '''not''' use [[info_node_air]] for navigation. It follows [[path_track]]s exclusively! It does so quite intelligently though, so the result looks rather dynamic.}} | {{note|The gunship does '''not''' use [[info_node_air]] for navigation. It follows [[path_track]]s exclusively! It does so quite intelligently though, so the result looks rather dynamic.}} | ||
{{NPCNote}} | {{NPCNote}} | ||
{{tip|Use [[info_target_gunshipcrash]] entities to suggest spectacular crashing points for defeated gunships.}} | {{tip|Use [[info_target_gunshipcrash]] entities to suggest spectacular crashing points for defeated gunships.}} | ||
{{tip|[[npc_heli_avoidsphere]] works with this npc}} | |||
== Keyvalues == | |||
==Keyvalues== | |||
{{KV BaseHelicopter}} | {{KV BaseHelicopter}} | ||
==Flags== | == Flags == | ||
{{fl|1|Wait Till Seen}} | |||
{{fl|2|Gag (No IDLE sounds until angry)}} | |||
{{fl|4|Fall to ground (unchecked means *teleport* to ground)}} | |||
{{fl|8|Drop Healthkit}} | |||
{{fl|16|Efficient - Don't acquire enemies or avoid obstacles}} | |||
{{fl|32|No Rotorwash}} | |||
{{fl|64|Await Input}} | |||
{{fl|128|Wait For Script}} | |||
{{fl|256|Long Visibility/Shoot}} | |||
{{fl|512|Fade Corpse}} | |||
{{fl|1024|Think outside PVS}} | |||
{{fl|2048|Template NPC (used by npc_maker, will not spawn)}} | |||
{{fl|4096|No ground attack}} | |||
{{fl|8192|Use chopper model {{Not in FGD}}}} | |||
== Inputs == | |||
{{I|OmniscientOn|Gunship knows target's location even when target is out of sight or behind cover}} | |||
{{I|OmniscientOff|Gunship relies on normal sight functions to locate target}} | |||
{{I|BlindfireOn|Gunship will fire at an unseen target, attempting to punch through to them}} | |||
{{I|BlindfireOff|Gunship only fires at visible target}} | |||
{{I|SetPenetrationDepth|Set penetration depth of bullets|param=float}} | |||
{{I|SetDockingBBox|Shrink Bounding Box}} | |||
{{I|SetNormalBBox|Set Bounding Box to normal size}} | |||
{{I|EnableGroundAttack|Allow the gunship to use its ground attack}} | |||
{{I|DisableGroundAttack|Don't allow the gunship to use its ground attack}} | |||
{{I|DoGroundAttack|Causes the gunship to execute its ground attack|param=string}} | |||
{{I BaseHelicopter}} | {{I BaseHelicopter}} | ||
==Outputs== | == Outputs == | ||
{{O|OnFireCannon|Fired when the gunship fires a cannon round.}} | |||
{{O|OnFirstDamage|Fired when the first damage is done to the gunship.}} | |||
{{O|OnSecondDamage|Fired when the second damage is done to the gunship.}} | |||
{{O|OnThirdDamage|Fired when the third damage is done to the gunship.}} | |||
{{O|OnFourthDamage|Fired when the fourth damage is done to the gunship.}} | |||
{{O|OnCrashed|Fired when gunship crashes.}} | |||
{{O BaseNPC}} | |||
== Dedicated Console Variables == | |||
{{varcom|start}} | |||
{{varcom|sk_gunship_burst_size|15|float|Fire off this many bullets in a burst.}} | |||
{{varcom|sk_gunship_burst_min|800|float|Pathing avoid distance.}} | |||
{{varcom|sk_gunship_burst_dist|768|float|The maximum distance from the enemy that the gunship will start stitching.}} | |||
{{varcom|sk_gunship_health_increments|5|int|Number of times the gunship must be struck by explosive damage (multiplied for skill settings).}} | |||
{{varcom|g_debug_gunship|0|choices|Debug type: | |||
: | :* 0: Disabled | ||
:* 1: Leading | |||
: | :* 2: Path | ||
{{ | :* 3: Stitching}} | ||
{{varcom|sk_npc_dmg_gunship|40|float|Used by ammotype "CombineCannon".}} | |||
{{varcom|sk_npc_dmg_gunship_to_plr|3|float|Used by ammotype "CombineCannon".}} | |||
{{varcom|end}} | |||
[[Category:Flying NPCs]] | [[Category:Flying NPCs]] | ||
[[Category:Half-Life 2 NPCs|C]] | [[Category:Half-Life 2 NPCs|C]] |
Latest revision as of 17:44, 1 June 2025
![]() |
---|
CNPC_CombineGunship |
![]() |
npc_combinegunship
is a model entity available in Half-Life 2 series.
It is a flying Combine NPC with one main gun and the ability to track and shoot down RPG rockets.




Keyvalues
BaseHelicopter:
- Initial Speed (InitialSpeed) <string>
- The speed that the entity should try to reach as soon as it spawns
- Target path_track (target) <targetname>
- The name of a path_track that this NPC will fly to after spawning.
Flags
- Wait Till Seen : [1]
- Gag (No IDLE sounds until angry) : [2]
- Fall to ground (unchecked means *teleport* to ground) : [4]
- Drop Healthkit : [8]
- Efficient - Don't acquire enemies or avoid obstacles : [16]
- No Rotorwash : [32]
- Await Input : [64]
- Wait For Script : [128]
- Long Visibility/Shoot : [256]
- Fade Corpse : [512]
- Think outside PVS : [1024]
- Template NPC (used by npc_maker, will not spawn) : [2048]
- No ground attack : [4096]
- Use chopper model !FGD : [8192]
Inputs
- OmniscientOn
- Gunship knows target's location even when target is out of sight or behind cover
- OmniscientOff
- Gunship relies on normal sight functions to locate target
- BlindfireOn
- Gunship will fire at an unseen target, attempting to punch through to them
- BlindfireOff
- Gunship only fires at visible target
- SetPenetrationDepth <float >
- Set penetration depth of bullets
- SetDockingBBox
- Shrink Bounding Box
- SetNormalBBox
- Set Bounding Box to normal size
- EnableGroundAttack
- Allow the gunship to use its ground attack
- DisableGroundAttack
- Don't allow the gunship to use its ground attack
- DoGroundAttack <string >
- Causes the gunship to execute its ground attack
|
Outputs
- OnFireCannon
- Fired when the gunship fires a cannon round.
- OnFirstDamage
- Fired when the first damage is done to the gunship.
- OnSecondDamage
- Fired when the second damage is done to the gunship.
- OnThirdDamage
- Fired when the third damage is done to the gunship.
- OnFourthDamage
- Fired when the fourth damage is done to the gunship.
- OnCrashed
- Fired when gunship crashes.
|
Dedicated Console Variables
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sk_gunship_burst_size | 15 | float | Fire off this many bullets in a burst. |
sk_gunship_burst_min | 800 | float | Pathing avoid distance. |
sk_gunship_burst_dist | 768 | float | The maximum distance from the enemy that the gunship will start stitching. |
sk_gunship_health_increments | 5 | int | Number of times the gunship must be struck by explosive damage (multiplied for skill settings). |
g_debug_gunship | 0 | choices | Debug type:
|
sk_npc_dmg_gunship | 40 | float | Used by ammotype "CombineCannon". |
sk_npc_dmg_gunship_to_plr | 3 | float | Used by ammotype "CombineCannon". |