npc_antlionguard
Jump to navigation
Jump to search
Code classes:
CNPC_AntlionGuard
CAI_BaseNPC
(NPCs)CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
(models)CBaseEntity
(all ents)
npc_antlionguard
is a point entity present in the Half-Life 2 series. Antlion guards, ostensibly the same species as regular antlions, are much more hardy and deadly. Guards can summon and command antlions, but will not be swayed to player commands unlike their lower brethren.
ConVars/Commands[edit | edit source]
ConVar/Command | Parameters or default value | Parameter Type | Effect |
---|---|---|---|
g_debug_antlionguard | 0 | Arbitrary number, 1 to 5 | Shows various info about charging, LOS(?), and hurling physics objects. |
sk_antlionguard_dmg_charge | 20 | Damage amount | How much damage a charge attack deals to the player (NPCs take 250). Scaled by difficulty setting:
|
sk_antlionguard_dmg_shove | 10 | Damage amount | How much damage a shove attack deals the the player (NPCs take 250). Oddly, the shove attack damages the player two separate times, so the numbers listed here are basically half of what's actually dealt. Scaled by difficulty setting:
|
sk_antlionguard_health | 500 | Health | How much health antlion guards have. |
Flags[edit | edit source]
- 65536: Create server-side ragdoll on death (inherits this NPC's targetname)
- 131072:
Use inside footsteps- Does not appear to affect footstep sounds at all.
Keyvalues[edit | edit source]
- Start Burrowed
(startburrowed)
<boolean>
- Spawns the guard underground. Make it unburrow with the Unburrow input.
- Allow Bark
(allowbark)
<boolean>
- Allows the guard to summon antlions to unburrow (from realistic locations nearby) without any help from the map.
- Cavern Guard Model and Texture
(cavernbreed)
<boolean>
- Makes this guard one of the cavern variety. Changes the skin and adds glow sprites on its body.
- Use inside-Cavern Behavior
(incavern)
<boolean>
- Tells the guard to behave like it's in the Ep2 caverns.
- Give up on unreachable enemies[Confirm]
- Do not try to fling physics objects at enemies
- Do not flinch from heavy damage
- Predict where enemies will be ahead of contact when charging
- Poison the player when they're hit by a charge
- Shove Targets
(shovetargets)
<string>
- Entities that the guard wants to shove. Multiple entities can be given the same name, and wildcards work.
Inputs[edit | edit source]
- SetShoveTarget
<target_destination>
- Tells the guard to shove this entity.
- SetChargeTarget
<string>
- Tells the guard to repeatedly charge to the first specified entity, then back up to the second specified entity. (Separated by a space.)
- ClearChargeTarget
- Tells the guard to forget about a charge target set by SetChargeTarget.
- Unburrow
- If the guard was spawned burrowed, makes it unburrow.
- Ragdoll
- Sets the guard's health to 1. Bug: Intended to kill it with minimal physics force... implemented poorly.
- EnableBark
- Sets Allow Bark to Yes.
- DisableBark
- Sets Allow Bark to No.
- SummonedAntlionDied (Not in FGD)
- Informs the guard that a summoned antlion has died. Automatically sent by summoned antlions when their OnDeath output fires.
- EnablePreferPhysicsAttack
- Makes the guard more likely to fling physics objects. To do: In what situations? Doesn't seem to change anything.
- DisablePreferPhysicsAttack
- Makes the guard normally likely to fling physics objects.
Outputs[edit | edit source]
- OnSummon
- Fires when the guard summons antlions.