CNPC AntlionGuard: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 7: Line 7:


The Antlion Guard only has one squad slot - {{code|SQUAD_SLOT_ANTLIONGUARD_CHARGE}}. When an Antlion Guard is trying to charge, it will occupy this squad slot. That also means only one Antlion Guard can charge at a time per squad. It will also not charge if a squad member is closer to the enemy than it is, because "{{code|lang=cpp|// If someone in our squad is closer to the enemy, then don't charge (we end up hitting them more often than not!)}}".
The Antlion Guard only has one squad slot - {{code|SQUAD_SLOT_ANTLIONGUARD_CHARGE}}. When an Antlion Guard is trying to charge, it will occupy this squad slot. That also means only one Antlion Guard can charge at a time per squad. It will also not charge if a squad member is closer to the enemy than it is, because "{{code|lang=cpp|// If someone in our squad is closer to the enemy, then don't charge (we end up hitting them more often than not!)}}".
{{linked entities|npc_antlionguard}}

Latest revision as of 10:19, 6 June 2025

Stub

This article or section is a stub. You can help by expanding it.

English (en)Translate (Translate)
C++ Class hierarchy
CNPC_AntlionGuard
CAI_BlendedNPC
CAI_BlendingHost<CAI_BaseNPC>
CAI_BaseNPC
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity
C++ npc_antlionguard.cpp

CNPC_AntlionGuard is the C++ implementation of the npc_antlionguard. For information on where it's available, inputs and outputs, refer to the said page, as this one is talking about the C++ implementation of it.

The Antlion Guard only has one squad slot - SQUAD_SLOT_ANTLIONGUARD_CHARGE. When an Antlion Guard is trying to charge, it will occupy this squad slot. That also means only one Antlion Guard can charge at a time per squad. It will also not charge if a squad member is closer to the enemy than it is, because "// If someone in our squad is closer to the enemy, then don't charge (we end up hitting them more often than not!)".

Entities linked to this class