[ News | About | Media | Downloads | Tutorials | Contact ]

Tutorials

Back to Tutorials

npc_combine_air_defense

The Air Defense will be included in Beta 1.0.6 and later versions.

Combine Air Defense is an NPC that will attack flying NPCs. Like other Combine turrets, it can be hacked via a Combine Interface, and it will then attack Combine forces. It has a built in "recharge" system.

This is used to have the Air Defense slowly power up when the generators are online (Start recharge), but when the generators are offline it will start slowly draining energy (StopRecharge gets called). How much energy it has can be seen in the side of the model. When the energy gets full the Air Defense enables itself.

Values

Spawn Flags
  • Auto Activate
  • Start Activate
  • No Machine Gun
  • No Rocket
  • Never Retire
  • Update Recharge Hud (OBSOLETE)
  • Only shoot flying things!
Recharge Increase Speed
How fast to recharge the Air Defense. Default: 60

Recharge Decrease Speed
How fast to decharge the Air Defense. Default: 60

Input functions

Enable
Enable the Air Defense. This stops the Air Defense from recharging or decharging. Only use if you do not wish to use the recharge behavior at all.

Disable
Disable the Air Defense. This stops the Air Defense from recharging or decharghing. Only use if you do not wish to use the recharge behavior at all.

Toggle
Toggle the Air Defense. This stops the Air Defense from recharging or decharghing.

StartRecharge
If the Air Defense is disabled or decharging, start recharging. If the Air Defense was Decharging and had some energy left, it will continue the recharge progress from this same point.

StopRecharge
If the Air Defense is enabled or recharging, start decharging. If the Air Defense was enabled it will start decharging from the full energy.

SetRechargeIncreaseTime
Set Recharge Increase Speed.

SetRechargeDecreaseTime
Set Decharge Increase Speed.

SetHackedOn
Mark hacked. Will now attack flying Combine NPCs.

SetHackedOff
Fix the Air Defense. Attack flying Hostiles like normally.

Output functions

OnDeploy
Fires when the Air Defense enables.

OnRetire
Fires when the Air Defense disables.

OnRechargeComplete
Fires when the Air Defense has completed recharging.



Back to Tutorials

[ News | About | Media | Downloads | Tutorials | Contact ]



Valve, the Valve logo, Half-Life, the Half-Life logo, the Lambda logo, Steam, the Steam logo, Source, and the Source logo are trademarks and/or registered trademarks of Valve Software. All information is copyright their respective authors. Website designed by my brother.