Garry's Mod Wiki

Revision Difference

Enums/SCHED#516059

<cat>enum</cat> <enumeration> <description>Enumerations for NPC schedules, used by <page>ENTITY:StartEngineSchedule</page> and <page>NPC:SetSchedule</page>. Serverside only.</description> <fields>{{EnumField|LAST_SHARED_SCHEDULE|88|The schedule enum limit</fields>⤶ <fields><item key="LAST_SHARED_SCHEDULE" value="88">The schedule enum limit</item><item key="SCHED_AISCRIPT" value="56">Begins AI script based on NPC's `m_hCine` save value.</item><item key="SCHED_ALERT_FACE" value="5">Idle stance and face ideal yaw angles.</item><item key="SCHED_ALERT_FACE_BESTSOUND" value="6</fields>⤶ </enumeration> {{EnumField|SCHED_AISCRIPT|56|Begins AI script based on NPC's `m_hCine` save value.}}{{EnumField|SCHED_ALERT_FACE|5|Idle stance and face ideal yaw angles.}}{{EnumField|SCHED_ALERT_FACE_BESTSOUND|6}}{{EnumField|SCHED_ALERT_REACT_TO_COMBAT_SOUND|7}}{{EnumField|SCHED_ALERT_SCAN|8|Rotate 180 degrees and back to check for enemies.}}{{EnumField|SCHED_ALERT_STAND|9|Remain idle until an enemy is heard or found.}}{{EnumField|SCHED_ALERT_WALK|10|Walk until an enemy is heard or found.}}{{EnumField|SCHED_AMBUSH|52|Remain idle until provoked or an enemy is found.}}{{EnumField|SCHED_ARM_WEAPON|48|Performs ACT_ARM.}}{{EnumField|SCHED_BACK_AWAY_FROM_ENEMY|24|Back away from enemy. If not possible to back away then go behind enemy.}}{{EnumField|SCHED_BACK_AWAY_FROM_SAVE_POSITION|26}}{{EnumField|SCHED_BIG_FLINCH|23|Heavy damage was taken for the first time in a while.}}{{EnumField|SCHED_CHASE_ENEMY|17|Begin chasing an enemy.}}{{EnumField|SCHED_CHASE_ENEMY_FAILED|18|Failed to chase enemy.}}{{EnumField|SCHED_COMBAT_FACE|12|Face current enemy.}}{{EnumField|SCHED_COMBAT_PATROL|75|Will walk around patrolling an area until an enemy is found.}}{{EnumField|SCHED_COMBAT_STAND|15}}{{EnumField|SCHED_COMBAT_SWEEP|13}}{{EnumField|SCHED_COMBAT_WALK|16}}{{EnumField|SCHED_COWER|40|When not moving, will perform ACT_COWER.}}{{EnumField|SCHED_DIE|53|Regular NPC death.}}{{EnumField|SCHED_DIE_RAGDOLL|54|Plays NPC death sound (doesn't kill NPC).}}{{EnumField|SCHED_DISARM_WEAPON|49|Holsters active weapon. (Only works with NPC's that can holster weapons)}}{{EnumField|SCHED_DROPSHIP_DUSTOFF|79}}{{EnumField|SCHED_DUCK_DODGE|84|Preform Ducking animation. (Only works with npc_alyx)}}{{EnumField|SCHED_ESTABLISH_LINE_OF_FIRE|35|Search for a place to shoot current enemy.}}{{EnumField|SCHED_ESTABLISH_LINE_OF_FIRE_FALLBACK|36|Fallback from an established line of fire.}}{{EnumField|SCHED_FAIL|81|Failed doing current schedule.}}{{EnumField|SCHED_FAIL_ESTABLISH_LINE_OF_FIRE|38|Failed to establish a line of fire.}}{{EnumField|SCHED_FAIL_NOSTOP|82}}{{EnumField|SCHED_FAIL_TAKE_COVER|31|Failed to take cover.}}{{EnumField|SCHED_FALL_TO_GROUND|78|Fall to ground when in the air.}}{{EnumField|SCHED_FEAR_FACE|14|Will express fear face. (Only works on NPCs with expressions)}}{{EnumField|SCHED_FLEE_FROM_BEST_SOUND|29}}{{EnumField|SCHED_FLINCH_PHYSICS|80|Plays ACT_FLINCH_PHYSICS.}}{{EnumField|SCHED_FORCED_GO|71|Force walk to position (debug).}}{{EnumField|SCHED_FORCED_GO_RUN|72|Force run to position (debug).}}{{EnumField|SCHED_GET_HEALTHKIT|66|Pick up item if within a radius of 5 units.}}{{EnumField|SCHED_HIDE_AND_RELOAD|50|Take cover and reload weapon.}}{{EnumField|SCHED_IDLE_STAND|1|Idle stance}}{{EnumField|SCHED_IDLE_WALK|2|Walk to position.}}{{EnumField|SCHED_IDLE_WANDER|3|Walk to random position within a radius of 200 units.}}{{EnumField|SCHED_INTERACTION_MOVE_TO_PARTNER|85}}{{EnumField|SCHED_INTERACTION_WAIT_FOR_PARTNER|86}}{{EnumField|SCHED_INVESTIGATE_SOUND|11}}{{EnumField|SCHED_MELEE_ATTACK1|41}}{{EnumField|SCHED_MELEE_ATTACK2|42}}{{EnumField|SCHED_MOVE_AWAY|68|Move away from player.}}{{EnumField|SCHED_MOVE_AWAY_END|70|Stop moving and continue enemy scan.}}{{EnumField|SCHED_MOVE_AWAY_FAIL|69|Failed to move away; stop moving.}}{{EnumField|SCHED_MOVE_AWAY_FROM_ENEMY|25|Move away from enemy while facing it and checking for new enemies.}}{{EnumField|SCHED_MOVE_TO_WEAPON_RANGE|34|Move to the range the weapon is preferably used at.}}{{EnumField|SCHED_NEW_WEAPON|63|Pick up a new weapon if within a radius of 5 units.}}{{EnumField|SCHED_NEW_WEAPON_CHEAT|64|Fail safe: Create the weapon that the NPC went to pick up if it was removed during pick up schedule.}}{{EnumField|SCHED_NONE|0|No schedule is being performed.}}{{EnumField|SCHED_NPC_FREEZE|73|Prevents movement until COND_NPC_UNFREEZE(68) is set.}}{{EnumField|SCHED_PATROL_RUN|76|Run to random position and stop if enemy is heard or found.}}{{EnumField|SCHED_PATROL_WALK|74|Walk to random position and stop if enemy is heard or found.}}{{EnumField|SCHED_PRE_FAIL_ESTABLISH_LINE_OF_FIRE|37}}{{EnumField|SCHED_RANGE_ATTACK1|43}}{{EnumField|SCHED_RANGE_ATTACK2|44}}{{EnumField|SCHED_RELOAD|51|Stop moving and reload until danger is heard.}}{{EnumField|SCHED_RUN_FROM_ENEMY|32|Retreat from the established enemy.}}{{EnumField|SCHED_RUN_FROM_ENEMY_FALLBACK|33}}{{EnumField|SCHED_RUN_FROM_ENEMY_MOB|83}}{{EnumField|SCHED_RUN_RANDOM|77|Run to random position within a radius of 500 units.}}{{EnumField|SCHED_SCENE_GENERIC|62}}{{EnumField|SCHED_SCRIPTED_CUSTOM_MOVE|59}}{{EnumField|SCHED_SCRIPTED_FACE|61}}{{EnumField|SCHED_SCRIPTED_RUN|58}}{{EnumField|SCHED_SCRIPTED_WAIT|60}}{{EnumField|SCHED_SCRIPTED_WALK|57}}{{EnumField|SCHED_SHOOT_ENEMY_COVER|39|Shoot cover that the enemy is behind.}}{{EnumField|SCHED_SLEEP|87|Sets the NPC to a sleep-like state.}}{{EnumField|SCHED_SMALL_FLINCH|22}}{{EnumField|SCHED_SPECIAL_ATTACK1|45}}{{EnumField|SCHED_SPECIAL_ATTACK2|46}}{{EnumField|SCHED_STANDOFF|47}}{{EnumField|SCHED_SWITCH_TO_PENDING_WEAPON|65}}{{EnumField|SCHED_TAKE_COVER_FROM_BEST_SOUND|28}}{{EnumField|SCHED_TAKE_COVER_FROM_ENEMY|27|Take cover from current enemy.}}{{EnumField|SCHED_TAKE_COVER_FROM_ORIGIN|30}}{{EnumField|SCHED_TARGET_CHASE|21|Chase set NPC target.}}{{EnumField|SCHED_TARGET_FACE|20|Face NPC target.}}{{EnumField|SCHED_VICTORY_DANCE|19|Human victory dance.}}{{EnumField|SCHED_WAIT_FOR_SCRIPT|55}}{{EnumField|SCHED_WAIT_FOR_SPEAK_FINISH|67}}{{EnumField|SCHED_WAKE_ANGRY|4|Spot an enemy and go from an idle state to combat state.}}⤶ {{EnumField">SCHED_ALERT_REACT_TO_COMBAT_SOUND|7</item><item key="SCHED_ALERT_SCAN" value="8">Rotate 180 degrees and back to check for enemies.</item><item key="SCHED_ALERT_STAND" value="9">Remain idle until an enemy is heard or found.</item><item key="SCHED_ALERT_WALK" value="10">Walk until an enemy is heard or found.</item><item key="SCHED_AMBUSH" value="52">Remain idle until provoked or an enemy is found.</item><item key="SCHED_ARM_WEAPON" value="48">Performs ACT_ARM.</item><item key="SCHED_BACK_AWAY_FROM_ENEMY" value="24">Back away from enemy. If not possible to back away then go behind enemy.</item><item key="SCHED_BACK_AWAY_FROM_SAVE_POSITION" value="26}}{{EnumField">SCHED_BIG_FLINCH|23|Heavy damage was taken for the first time in a while.</item><item key="SCHED_CHASE_ENEMY" value="17">Begin chasing an enemy.</item><item key="SCHED_CHASE_ENEMY_FAILED" value="18">Failed to chase enemy.</item><item key="SCHED_COMBAT_FACE" value="12">Face current enemy.</item><item key="SCHED_COMBAT_PATROL" value="75">Will walk around patrolling an area until an enemy is found.</item><item key="SCHED_COMBAT_STAND" value="15}}{{EnumField">SCHED_COMBAT_SWEEP|13</item><item key="SCHED_COMBAT_WALK" value="16}}{{EnumField">SCHED_COWER|40|When not moving, will perform ACT_COWER.</item><item key="SCHED_DIE" value="53">Regular NPC death.</item><item key="SCHED_DIE_RAGDOLL" value="54">Plays NPC death sound (doesn't kill NPC).</item><item key="SCHED_DISARM_WEAPON" value="49">Holsters active weapon. (Only works with NPC's that can holster weapons)</item><item key="SCHED_DROPSHIP_DUSTOFF" value="79}}{{EnumField">SCHED_DUCK_DODGE|84|Preform Ducking animation. (Only works with npc_alyx)</item><item key="SCHED_ESTABLISH_LINE_OF_FIRE" value="35">Search for a place to shoot current enemy.</item><item key="SCHED_ESTABLISH_LINE_OF_FIRE_FALLBACK" value="36">Fallback from an established line of fire.</item><item key="SCHED_FAIL" value="81">Failed doing current schedule.</item><item key="SCHED_FAIL_ESTABLISH_LINE_OF_FIRE" value="38">Failed to establish a line of fire.</item><item key="SCHED_FAIL_NOSTOP" value="82}}{{EnumField">SCHED_FAIL_TAKE_COVER|31|Failed to take cover.</item><item key="SCHED_FALL_TO_GROUND" value="78">Fall to ground when in the air.</item><item key="SCHED_FEAR_FACE" value="14">Will express fear face. (Only works on NPCs with expressions)</item><item key="SCHED_FLEE_FROM_BEST_SOUND" value="29}}{{EnumField">SCHED_FLINCH_PHYSICS|80|Plays ACT_FLINCH_PHYSICS.</item><item key="SCHED_FORCED_GO" value="71">Force walk to position (debug).</item><item key="SCHED_FORCED_GO_RUN" value="72">Force run to position (debug).</item><item key="SCHED_GET_HEALTHKIT" value="66">Pick up item if within a radius of 5 units.</item><item key="SCHED_HIDE_AND_RELOAD" value="50">Take cover and reload weapon.</item><item key="SCHED_IDLE_STAND" value="1">Idle stance</item><item key="SCHED_IDLE_WALK" value="2">Walk to position.</item><item key="SCHED_IDLE_WANDER" value="3">Walk to random position within a radius of 200 units.</item><item key="SCHED_INTERACTION_MOVE_TO_PARTNER" value="85}}{{EnumField">SCHED_INTERACTION_WAIT_FOR_PARTNER|86</item><item key="SCHED_INVESTIGATE_SOUND" value="11}}{{EnumField">SCHED_MELEE_ATTACK1|41</item><item key="SCHED_MELEE_ATTACK2" value="42}}{{EnumField">SCHED_MOVE_AWAY|68|Move away from player.</item><item key="SCHED_MOVE_AWAY_END" value="70">Stop moving and continue enemy scan.</item><item key="SCHED_MOVE_AWAY_FAIL" value="69">Failed to move away; stop moving.</item><item key="SCHED_MOVE_AWAY_FROM_ENEMY" value="25">Move away from enemy while facing it and checking for new enemies.</item><item key="SCHED_MOVE_TO_WEAPON_RANGE" value="34">Move to the range the weapon is preferably used at.</item><item key="SCHED_NEW_WEAPON" value="63">Pick up a new weapon if within a radius of 5 units.</item><item key="SCHED_NEW_WEAPON_CHEAT" value="64">Fail safe: Create the weapon that the NPC went to pick up if it was removed during pick up schedule.</item><item key="SCHED_NONE" value="0">No schedule is being performed.</item><item key="SCHED_NPC_FREEZE" value="73">Prevents movement until COND_NPC_UNFREEZE(68) is set.</item><item key="SCHED_PATROL_RUN" value="76">Run to random position and stop if enemy is heard or found.</item><item key="SCHED_PATROL_WALK" value="74">Walk to random position and stop if enemy is heard or found.</item><item key="SCHED_PRE_FAIL_ESTABLISH_LINE_OF_FIRE" value="37}}{{EnumField">SCHED_RANGE_ATTACK1|43</item><item key="SCHED_RANGE_ATTACK2" value="44}}{{EnumField">SCHED_RELOAD|51|Stop moving and reload until danger is heard.</item><item key="SCHED_RUN_FROM_ENEMY" value="32">Retreat from the established enemy.</item><item key="SCHED_RUN_FROM_ENEMY_FALLBACK" value="33}}{{EnumField">SCHED_RUN_FROM_ENEMY_MOB|83</item><item key="SCHED_RUN_RANDOM" value="77">Run to random position within a radius of 500 units.</item><item key="SCHED_SCENE_GENERIC" value="62}}{{EnumField">SCHED_SCRIPTED_CUSTOM_MOVE|59</item><item key="SCHED_SCRIPTED_FACE" value="61}}{{EnumField">SCHED_SCRIPTED_RUN|58</item><item key="SCHED_SCRIPTED_WAIT" value="60}}{{EnumField">SCHED_SCRIPTED_WALK|57</item><item key="SCHED_SHOOT_ENEMY_COVER" value="39">Shoot cover that the enemy is behind.</item><item key="SCHED_SLEEP" value="87">Sets the NPC to a sleep-like state.</item><item key="SCHED_SMALL_FLINCH" value="22}}{{EnumField">SCHED_SPECIAL_ATTACK1|45</item><item key="SCHED_SPECIAL_ATTACK2" value="46}}{{EnumField">SCHED_STANDOFF|47</item><item key="SCHED_SWITCH_TO_PENDING_WEAPON" value="65}}{{EnumField">SCHED_TAKE_COVER_FROM_BEST_SOUND|28</item><item key="SCHED_TAKE_COVER_FROM_ENEMY" value="27">Take cover from current enemy.</item><item key="SCHED_TAKE_COVER_FROM_ORIGIN" value="30}}{{EnumField">SCHED_TARGET_CHASE|21|Chase set NPC target.</item><item key="SCHED_TARGET_FACE" value="20">Face NPC target.</item><item key="SCHED_VICTORY_DANCE" value="19">Human victory dance.</item><item key="SCHED_WAIT_FOR_SCRIPT" value="55}}{{EnumField">SCHED_WAIT_FOR_SPEAK_FINISH|67</item><item key="SCHED_WAKE_ANGRY" value="4">Spot an enemy and go from an idle state to combat state.</item>⤶ }}