Garry's Mod Wiki

Revision Difference

Enums/COND#516380

<cat>enum</cat> <enum> <description> Enumerations for NPC conditions, used by <page>NPC:SetCondition</page>. Serverside only. <note>There are more conditions than listed here after **COND_NO_CUSTOM_INTERRUPTS**(70) but the name depends on what's returned by <page>NPC:ConditionName</page></note> <warning>These enumerations do not exist in game, but are listed here anyway for reference</warning> </description> <items> <item key="COND_BEHIND_ENEMY" value="2">9</item>⤶ <item key="COND_BETTER_WEAPON_AVAILABLE" value="4">6</item>⤶ <item key="COND_CAN_MELEE_ATTACK1" value="2">3</item>⤶ <item key="COND_CAN_MELEE_ATTACK2" value="2">4</item>⤶ <item key="COND_CAN_RANGE_ATTACK1" value="2">1</item>⤶ <item key="COND_CAN_RANGE_ATTACK2" value="2">2</item>⤶ <item key="COND_ENEMY_DEAD" value="3">0</item>⤶ <item key="COND_ENEMY_FACING_ME" value="2">8</item>⤶ <item key="COND_ENEMY_OCCLUDED" value="1">3</item>⤶ <item key="COND_ENEMY_TOO_FAR" value="2">7</item>⤶ <item key="COND_ENEMY_UNREACHABLE" value="3">1</item>⤶ <item key="COND_ENEMY_WENT_NULL" value="1">2</item>⤶ <item key="COND_FLOATING_OFF_GROUND" value="6">1</item>⤶ <item key="COND_GIVE_WAY" value="4">8</item>⤶ <item key="COND_HAVE_ENEMY_LOS" value="1">5</item>⤶ <item key="COND_HAVE_TARGET_LOS" value="1">6</item>⤶ <item key="COND_HEALTH_ITEM_AVAILABLE" value="4">7</item>⤶ <item key="COND_HEAR_BUGBAIT" value="5">2</item>⤶ <item key="COND_HEAR_BULLET_IMPACT" value="5">6</item>⤶ <item key="COND_HEAR_COMBAT" value="5">3</item>⤶ <item key="COND_HEAR_DANGER" value="5">0</item>⤶ <item key="COND_HEAR_MOVE_AWAY" value="5">8</item>⤶ <item key="COND_HEAR_PHYSICS_DANGER" value="5">7</item>⤶ <item key="COND_HEAR_PLAYER" value="5">5</item>⤶ <item key="COND_HEAR_SPOOKY" value="5">9</item>⤶ <item key="COND_HEAR_THUMPER" value="5">1</item>⤶ <item key="COND_HEAR_WORLD" value="5">4</item>⤶ <item key="COND_HEAVY_DAMAGE" value="1">8</item>⤶ <item key="COND_BEHIND_ENEMY" value="29"></item>⤶ <item key="COND_BETTER_WEAPON_AVAILABLE" value="46"></item>⤶ <item key="COND_CAN_MELEE_ATTACK1" value="23"></item>⤶ <item key="COND_CAN_MELEE_ATTACK2" value="24"></item>⤶ <item key="COND_CAN_RANGE_ATTACK1" value="21"></item>⤶ <item key="COND_CAN_RANGE_ATTACK2" value="22"></item>⤶ <item key="COND_ENEMY_DEAD" value="30"></item>⤶ <item key="COND_ENEMY_FACING_ME" value="28"></item>⤶ <item key="COND_ENEMY_OCCLUDED" value="13"></item>⤶ <item key="COND_ENEMY_TOO_FAR" value="27"></item>⤶ <item key="COND_ENEMY_UNREACHABLE" value="31"></item>⤶ <item key="COND_ENEMY_WENT_NULL" value="12"></item>⤶ <item key="COND_FLOATING_OFF_GROUND" value="61"></item>⤶ <item key="COND_GIVE_WAY" value="48"></item>⤶ <item key="COND_HAVE_ENEMY_LOS" value="15"></item>⤶ <item key="COND_HAVE_TARGET_LOS" value="16"></item>⤶ <item key="COND_HEALTH_ITEM_AVAILABLE" value="47"></item>⤶ <item key="COND_HEAR_BUGBAIT" value="52"></item>⤶ <item key="COND_HEAR_BULLET_IMPACT" value="56"></item>⤶ <item key="COND_HEAR_COMBAT" value="53"></item>⤶ <item key="COND_HEAR_DANGER" value="50"></item>⤶ <item key="COND_HEAR_MOVE_AWAY" value="58"></item>⤶ <item key="COND_HEAR_PHYSICS_DANGER" value="57"></item>⤶ <item key="COND_HEAR_PLAYER" value="55"></item>⤶ <item key="COND_HEAR_SPOOKY" value="59"></item>⤶ <item key="COND_HEAR_THUMPER" value="51"></item>⤶ <item key="COND_HEAR_WORLD" value="54"></item>⤶ <item key="COND_HEAVY_DAMAGE" value="18"></item>⤶ <item key="COND_IDLE_INTERRUPT" value="2"></item> <item key="COND_IN_PVS" value="1"></item> <item key="COND_LIGHT_DAMAGE" value="1">7</item>⤶ <item key="COND_LOST_ENEMY" value="1">1</item>⤶ <item key="COND_LOST_PLAYER" value="3">3</item>⤶ <item key="COND_LIGHT_DAMAGE" value="17"></item>⤶ <item key="COND_LOST_ENEMY" value="11"></item>⤶ <item key="COND_LOST_PLAYER" value="33"></item>⤶ <item key="COND_LOW_PRIMARY_AMMO" value="3"></item> <item key="COND_MOBBED_BY_ENEMIES" value="6">2</item>⤶ <item key="COND_NEW_ENEMY" value="2">6</item>⤶ <item key="COND_NO_CUSTOM_INTERRUPTS" value="7">0</item>⤶ <item key="COND_NO_HEAR_DANGER" value="6">0</item>⤶ <item key="COND_MOBBED_BY_ENEMIES" value="62"></item>⤶ <item key="COND_NEW_ENEMY" value="26"></item>⤶ <item key="COND_NO_CUSTOM_INTERRUPTS" value="70"></item>⤶ <item key="COND_NO_HEAR_DANGER" value="60"></item>⤶ <item key="COND_NO_PRIMARY_AMMO" value="4"></item> <item key="COND_NO_SECONDARY_AMMO" value="5"></item> <item key="COND_NO_WEAPON" value="6"></item> <item key="COND_NONE" value="0">No additional conditions are being played</item>⤶ <item key="COND_NOT_FACING_ATTACK" value="4">0</item>⤶ <item key="COND_NPC_FREEZE" value="6">7|Freezes NPC movement</item>⤶ <item key="COND_NPC_UNFREEZE" value="6">8|Unfreezes NPC movement</item>⤶ <item key="COND_PHYSICS_DAMAGE" value="1">9</item>⤶ <item key="COND_PLAYER_ADDED_TO_SQUAD" value="6">4</item>⤶ <item key="COND_PLAYER_PUSHING" value="6">6</item>⤶ <item key="COND_PLAYER_REMOVED_FROM_SQUAD" value="6">5</item>⤶ <item key="COND_PROVOKED" value="2">5</item>⤶ <item key="COND_RECEIVED_ORDERS" value="6">3</item>⤶ <item key="COND_REPEATED_DAMAGE" value="2">0</item>⤶ <item key="COND_SCHEDULE_DONE" value="3">6</item>⤶ <item key="COND_NONE" value="0|No additional conditions are being played"></item>⤶ <item key="COND_NOT_FACING_ATTACK" value="40"></item>⤶ <item key="COND_NPC_FREEZE" value="67|Freezes NPC movement"></item>⤶ <item key="COND_NPC_UNFREEZE" value="68|Unfreezes NPC movement"></item>⤶ <item key="COND_PHYSICS_DAMAGE" value="19"></item>⤶ <item key="COND_PLAYER_ADDED_TO_SQUAD" value="64"></item>⤶ <item key="COND_PLAYER_PUSHING" value="66"></item>⤶ <item key="COND_PLAYER_REMOVED_FROM_SQUAD" value="65"></item>⤶ <item key="COND_PROVOKED" value="25"></item>⤶ <item key="COND_RECEIVED_ORDERS" value="63"></item>⤶ <item key="COND_REPEATED_DAMAGE" value="20"></item>⤶ <item key="COND_SCHEDULE_DONE" value="36"></item>⤶ <item key="COND_SEE_DISLIKE" value="9"></item> <item key="COND_SEE_ENEMY" value="1">0</item>⤶ <item key="COND_SEE_ENEMY" value="10"></item>⤶ <item key="COND_SEE_FEAR" value="8"></item> <item key="COND_SEE_HATE" value="7"></item> <item key="COND_SEE_NEMESIS" value="3">4</item>⤶ <item key="COND_SEE_PLAYER" value="3">2</item>⤶ <item key="COND_SMELL" value="3">7</item>⤶ <item key="COND_TALKER_RESPOND_TO_QUESTION" value="6">9</item>⤶ <item key="COND_TARGET_OCCLUDED" value="1">4</item>⤶ <item key="COND_TASK_FAILED" value="3">5</item>⤶ <item key="COND_TOO_CLOSE_TO_ATTACK" value="3">8</item>⤶ <item key="COND_TOO_FAR_TO_ATTACK" value="3">9</item>⤶ <item key="COND_WAY_CLEAR" value="4">9</item>⤶ <item key="COND_WEAPON_BLOCKED_BY_FRIEND" value="4">2</item>⤶ <item key="COND_WEAPON_HAS_LOS" value="4">1</item>⤶ <item key="COND_WEAPON_PLAYER_IN_SPREAD" value="4">3</item>⤶ <item key="COND_WEAPON_PLAYER_NEAR_TARGET" value="4">4</item>⤶ <item key="COND_WEAPON_SIGHT_OCCLUDED" value="4">5</item>⤶ <item key="COND_SEE_NEMESIS" value="34"></item>⤶ <item key="COND_SEE_PLAYER" value="32"></item>⤶ <item key="COND_SMELL" value="37"></item>⤶ <item key="COND_TALKER_RESPOND_TO_QUESTION" value="69"></item>⤶ <item key="COND_TARGET_OCCLUDED" value="14"></item>⤶ <item key="COND_TASK_FAILED" value="35"></item>⤶ <item key="COND_TOO_CLOSE_TO_ATTACK" value="38"></item>⤶ <item key="COND_TOO_FAR_TO_ATTACK" value="39"></item>⤶ <item key="COND_WAY_CLEAR" value="49"></item>⤶ <item key="COND_WEAPON_BLOCKED_BY_FRIEND" value="42"></item>⤶ <item key="COND_WEAPON_HAS_LOS" value="41"></item>⤶ <item key="COND_WEAPON_PLAYER_IN_SPREAD" value="43"></item>⤶ <item key="COND_WEAPON_PLAYER_NEAR_TARGET" value="44"></item>⤶ <item key="COND_WEAPON_SIGHT_OCCLUDED" value="45"></item>⤶ </items> </enum>