Garry's Mod Wiki

COND

Description

Enumerations for NPC conditions, used by NPC:SetCondition. Serverside only.

Unlike other Enums COND is a table that contains all the enums.

There are more conditions than listed here after COND_NO_CUSTOM_INTERRUPTS(70) but the name depends on what's returned by NPC:ConditionName

Values

COND.BEHIND_ENEMY29
COND.BETTER_WEAPON_AVAILABLE46
COND.CAN_MELEE_ATTACK123
COND.CAN_MELEE_ATTACK224
COND.CAN_RANGE_ATTACK121
COND.CAN_RANGE_ATTACK222
COND.ENEMY_DEAD30
COND.ENEMY_FACING_ME28
COND.ENEMY_OCCLUDED13
COND.ENEMY_TOO_FAR27
COND.ENEMY_UNREACHABLE31
COND.ENEMY_WENT_NULL12
COND.FLOATING_OFF_GROUND61
COND.GIVE_WAY48
COND.HAVE_ENEMY_LOS15
COND.HAVE_TARGET_LOS16
COND.HEALTH_ITEM_AVAILABLE47
COND.HEAR_BUGBAIT52
COND.HEAR_BULLET_IMPACT56
COND.HEAR_COMBAT53
COND.HEAR_DANGER50
COND.HEAR_MOVE_AWAY58
COND.HEAR_PHYSICS_DANGER57
COND.HEAR_PLAYER55
COND.HEAR_SPOOKY59
COND.HEAR_THUMPER51
COND.HEAR_WORLD54
COND.HEAVY_DAMAGE18
COND.IDLE_INTERRUPT2
COND.IN_PVS1
COND.LIGHT_DAMAGE17
COND.LOST_ENEMY11
COND.LOST_PLAYER33
COND.LOW_PRIMARY_AMMO3
COND.MOBBED_BY_ENEMIES62
COND.NEW_ENEMY26
COND.NO_CUSTOM_INTERRUPTS70
COND.NO_HEAR_DANGER60
COND.NO_PRIMARY_AMMO4
COND.NO_SECONDARY_AMMO5
COND.NO_WEAPON6
COND.NONE0No additional conditions are being played
COND.NOT_FACING_ATTACK40
COND.NPC_FREEZE67Freezes NPC movement
COND.NPC_UNFREEZE68Unfreezes NPC movement
COND.PHYSICS_DAMAGE19
COND.PLAYER_ADDED_TO_SQUAD64
COND.PLAYER_PUSHING66
COND.PLAYER_REMOVED_FROM_SQUAD65
COND.PROVOKED25
COND.RECEIVED_ORDERS63
COND.REPEATED_DAMAGE20
COND.SCHEDULE_DONE36
COND.SEE_DISLIKE9
COND.SEE_ENEMY10
COND.SEE_FEAR8
COND.SEE_HATE7
COND.SEE_NEMESIS34
COND.SEE_PLAYER32
COND.SMELL37
COND.TALKER_RESPOND_TO_QUESTION69
COND.TARGET_OCCLUDED14
COND.TASK_FAILED35
COND.TOO_CLOSE_TO_ATTACK38
COND.TOO_FAR_TO_ATTACK39
COND.WAY_CLEAR49
COND.WEAPON_BLOCKED_BY_FRIEND42
COND.WEAPON_HAS_LOS41
COND.WEAPON_PLAYER_IN_SPREAD43
COND.WEAPON_PLAYER_NEAR_TARGET44
COND.WEAPON_SIGHT_OCCLUDED45