Npc combinedropship: Difference between revisions
Jump to navigation
Jump to search
Tip:A dropship's landing point doesn't have to be close to it's last path_track. The dropship will b-line to the landing point, adjusting for landing along the way.
Note:Some keyvalues, spawnflags, effect flags, inputs, or outputs might not affect an NPC, based on the functionality and coding of the NPC.
m (categorization) |
m (added landing tip) |
||
Line 6: | Line 6: | ||
{{hl2 point|npc_combinedropship}}{{flying npc}} | {{hl2 point|npc_combinedropship}}{{flying npc}} | ||
The dropship is capable of carrying a container which can deploy NPCs, as well as many other objects. It has special commands specifically for Striders and APCs. | The dropship is capable of carrying a container which can deploy NPCs, as well as many other objects. It has special commands specifically for Striders and APCs. | ||
{{tip|A dropship's landing point doesn't have to be close to it's last [[path_track]]. The dropship will b-line to the landing point, adjusting for landing along the way.}} | |||
{{NPCNote}} | {{NPCNote}} | ||
Revision as of 19:23, 18 January 2016
- This is a flying NPC that uses info_node_air, info_node_air_hint or path_tracks for AI navigation.
The dropship is capable of carrying a container which can deploy NPCs, as well as many other objects. It has special commands specifically for Striders and APCs.


Dedicated Console Variables
- g_debug_dropship <choices>
- Draws boxes for debugging certain events.
- 0: Disabled
- 1: Takeoff?
- 2: Landing?
- sk_dropship_container_health <int>
- Todo: Explain this variable.
- sk_npc_dmg_dropship <int>
- Dropship container cannon damage.
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.
- LandTarget ([todo internal name (i)]) <targetname>
- Land target name.
- GunRange ([todo internal name (i)]) <float>
- If the dropship's carrying a crate with a gun on it, it'll only shoot targets within this range.
- NPCTemplate ([todo internal name (i)]) <targetname>
- Name of Template NPC 1.
- NPCTemplate (2-6) ([todo internal name (i)]) <targetname>
- Name of Template NPC (2-6).
- Dustoff(1-6) ([todo internal name (i)]) <targetname>
- Name of dustoff point for NPC (1-6).
- APCVehicleName ([todo internal name (i)]) <targetname>
- Name of the APC to drop.
- CrateType ([todo internal name (i)]) <choices>
Literal Value | Description |
---|---|
-3 | Jeep (No crate) |
-2 | APC (No crate) |
-1 | Strider (No crate) |
0 | Roller Hopper |
1 | Soldier Crate |
2 | None |
- Rollermine Template ([todo internal name (i)]) <targetname>
- If this dropship drops any rollermines due to the 'DropMines' input being fired, it will use this template for the rollermines it creates. If left blank, ordinary rollermines will be dropped.
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]
- Do Alternate collision for this NPC (player avoidance) : [4096]
- Don't drop weapons : [8192]
- 32768 : Wait for input before dropoff
Inputs
|
- 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 <targetname >
- Pickup an entity.
- SetLandTarget <targetname >
- 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
|
- 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 <float >
- Fires when the container was shot down after it dropped off soldiers.