npc_antlion
Jump to navigation
Jump to search
Code classes:
CNPC_Antlion
CAI_BaseNPC
(NPCs)CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
(models)CBaseEntity
(all ents)
npc_antlion
is a point entity present in the Half-Life 2 series. It is a weak NPC that can burrow, and "fly" by jumping. The player can command them with bugbait, given that the antlion_allied
global variable is set. Their most common role in level design is that of cannon fodder. Antlions are blind, and navigate entirely by sound and smell. They can navigate by jumping and use the HULL_MEDIUM
hull for navigation; give them decent space to maneuver.
ConVars/Commands[edit | edit source]
ConVar/Command | Parameters or default value | Parameter Type | Effect |
---|---|---|---|
g_debug_antlion | 0 | Arbitrary value | Shows various debugging info for antlions.
|
sk_antlion_health | 30 | Health amount | How much health antlions have. |
sk_antlion_swipe_damage | 5 | Damage amount | How much damage is dealt by antlion claw attacks and by bashing into enemies. |
sk_antlion_worker_burst_damage | 50 | Damage amount | How much damage is dealt by worker antlions to nearby enemies when they burst. |
sk_antlion_worker_burst_radius | 160 | World units | How big the worker antlion's explosion is. Vortigaunts consider this too close to attack (aside from dynamic interactions). |
sk_antlion_worker_health | 60 | Health amount | How much health acid antlions have. |
sk_antlion_worker_spit_speed | 600 | Arbitrary value | How fast the acid projectile is. Affects the arc traveled. |
g_debug_antlion_worker | 0 | 0 disables, 1 enables | Shows debugging info about acid spit paths. |
Flags[edit | edit source]
- 65536: Burrow when eluded - Automatically burrow away when enemies are too far away or unreachable.
- 131072: Use Ground Checks - To do: Description.
- 262144: Worker Type - Makes the antlion an acid type, seen in Episode 2.
Keyvalues[edit | edit source]
- Start Burrowed
(startburrowed)
<boolean>
- Makes the antlion spawn underground, then dig their way out.
- Ignore Bugbait
(ignorebugbait)
<boolean>
- Makes the antlion ignore bugbait (but still be friendly to the player).
Alert Radius(radius)
<float>
- No effect.
- Distance until eluded
(eludedist)
<float>
- If Burrow when eluded is checked, the distance at which the target has eluded the antlion.
- Suppress unburrow effects
(unburroweffects)
<boolean>
- Hides the dust effect made when antlions unburrow.
Inputs[edit | edit source]
- Unburrow
- Makes the antlion dig up out of the ground.
- Burrow
- Makes the antlion dig into the ground.
- BurrowAway
- Makes the antlion dig into the ground and disappear forever.
- FightToPosition
<target_destination>
- Sends the antlion to a given entity.
- StopFightToPosition (Not in FGD)
- Makes the antlion forget about its target entity, if any.
- EnableJump
- Allows jumping at any time.
- DisableJump
- Forbids jumping unless needed for navigation.
- IgnoreBugbait
- Sets Ignore Bugbait to Yes.
- HearBugbait
- Sets Ignore Bugbait to No.
- JumpAtTarget (Not in FGD)
<target_destination>
- Makes the antlion jump to an entity. Might not work well.
Outputs[edit | edit source]
- OnReachedFightGoal
- Fires when the antlion reaches a Fight Target
(fighttarget)
specified by annpc_antlion_template_maker
. - OnUnBurrowed
- Fires when the antlion begins to unburrow.