survivor_bot

From Valve Developer Community
Jump to: navigation, search

Stub

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

Info.png
This entity is not in the FGD by default .
It should not be put directly in a map.
class hierarchy
SurvivorBot
NextBotPlayer
CTerrorPlayer
CCSPlayer
CBaseMultiplayerPlayer
CBasePlayer
CBaseCombatCharacter
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

survivor_bot is a point entity available in the Left 4 Dead series Left 4 Dead series.

Warning.pngWarning:Trying to spawn survivor_bot using SpawnEntityFromTable script function or by placing him directly in a map will crash the game
Icon-Important.pngImportant:Spawned survivor_bot's classname is player
Note.pngNote:survivor_bot classname in-game can be observed on removed bots added back to game with sb_add while they are in their death state before spawning
Note.pngNote:This is a preserved entity in Left 4 DeadLeft 4 Dead 2.
  • On a new round, its properties including its position will intentionally not reset. You can use logic_auto to emulate resetting it.
  • Killing it removes it forever, as it is not respawned on a new round.
  • It cannot be spawned with a point_template.
  • Parenting this with non preserved entities may have undesirable effects.

NetProps

m_humanSpectatorEntIndex <integer>
Entity index of the idle human player that owns this bot
m_humanSpectatorUserID <integer>
User ID of the idle human player that owns this bot

ConVars

Cvar/CommandParameters or default valueDescriptorEffect
sb_all_bot_game0Allow a server of nothing but bots
sb_allow_leading0If nonzero, SurvivorBots can take the lead and won't always wait behind the lead human player
sb_allow_shoot_through_survivors1Allow SurvivorBots to shoot through fellow survivors
sb_battlestation_give_up_range_from_human1500
sb_battlestation_human_hold_time4How long the nearest human must hold their place before SurvivorBots will re-evaluate their Battlestations
sb_close_checkpoint_door_interval2
sb_close_threat_range200
sb_combat_saccade_speed1000
sb_crouch0Forces survivor bots to crouch
sb_debug_apoproach_wait_time5How long a SurvivorBot waits once it reaches its debug move-to spot
sb_debug_buddy0
sb_debug_locomotion0
sb_debug_retreat0
sb_debug_team_avoidance0
sb_dont_bash0Force SurvivorBots to not bash
sb_dont_shoot0Force SurvivorBots to not fire their weapons
sb_enforce_proximity_lookat_timeout10
sb_enforce_proximity_range1500
sb_escort0
sb_far_hearing_range1500
sb_flashlight0Forces survivor bots to use flashlights (-1 to force off)
sb_follow_stress_factor0.5
sb_friend_immobilized_reaction_time_expert0.5How quickly a SurvivorBot realizes a friend has been Pounced or Tongued
sb_friend_immobilized_reaction_time_hard1.0How quickly a SurvivorBot realizes a friend has been Pounced or Tongued
sb_friend_immobilized_reaction_time_normal2.0How quickly a SurvivorBot realizes a friend has been Pounced or Tongued
sb_friend_immobilized_reaction_time_vs0.5How quickly a SurvivorBot realizes a friend has been Pounced or Tongued
sb_friendlyfire0**Should SurvivorBot bullets hurt other survivors?
sb_hindrance_range150
sb_hold_position0Force SurvivorBots to stand still
sb_l4d1_survivor_behavior1
sb_locomotion_wait_threshold10
sb_max_battlestation_range_from_human750
sb_max_scavenge_separation750SurvivorBots won't scavenge items farther away from the group than this
sb_max_team_melee_weapons0The total number of melee weapons allowed on the team. 0 = bots never use melee
sb_melee_approach_victim0
sb_min_attention_notice_time0.5If someone looks at me longer than this, I'll notice
sb_min_orphan_time_to_cover1
sb_minigun_distance30.0
sb_move1Stop all SurvivorBots from moving
sb_narrow_corridor_width100
sb_near_hearing_range500
sb_neighbor_range300How close a friend needs to be to feel safe
sb_normal_saccade_speed350
sb_open_fire0Forces survivor bots to fire continuously
sb_path_lookahead_range200
sb_perf_collect1Collect perf for Steam stats
sb_perf_crawl0If true, survivor bot will be doing a perf-crawl walk through the map
sb_perf_crawl_ang5Rotation angles at perf-crawl snapshots in the map
sb_perf_crawl_dist128Distance between perf-crawl snapshots in the map
sb_perf_crawl_time1.0How much time is spent at each perf-crawl spot/ang in the map
sb_perf_dump0If true, low perf places will be dumped
sb_perf_dump_botsnamvet, girl, biker, manager
sb_perf_dump_low40Low perf threshold
sb_perf_dump_low_dist64Dump low perf points at least this distance apart
sb_pushscale1.0
sb_reachability_cache_lifetime3
sb_reachable_cache_paranoia0
sb_replacement_interval0Force SurvivorBots to be replaced after this many seconds for stress testing
sb_rescue_vehicle_loading_range300How close to the arrival point of the rescue vehicle SurvivorBots try to get
sb_revive_friend_distance125.0
sb_separation_danger_max_range600A Survivor teammate this far away needs to be gathered back into the group
sb_separation_danger_min_range200A Survivor teammate this far away is straying from the group
sb_separation_range200Desired distance between Survivors
sb_show_threat_areas0
sb_sidestep_for_horde0Allow sidestepping left/right to acquire common infected targets
sb_skillsurvivor
sb_stop0Forces survivor bots to stand still
sb_temp_health_consider_factor0.5Temporary health is multiplied by this when SurvivorBots consider who needs healing
sb_threat_close_range150Very close range for threats
sb_threat_exposure_stop200000
sb_threat_exposure_walk50000
sb_threat_far_range600Close enough to be a threat if near several other threats
sb_threat_medium_range300Too close for comfort, even when neutral
sb_threat_very_close_range150
sb_threat_very_far_range1500Too far to be a threat, even for boss infected
sb_toughness_buffer15How much more SurvivorBots must be hurt to conider themselves equally valid as a healing target
sb_transition1If true, survivor bots will be used as placeholders for survivors who are still changing levels
sb_unstick1
sb_use_button_range1000
sb_use_upgrades1
sb_vomit_blind_time5How long Boomer vomit/explosion gore blinds us

ConCommands

Cvar/CommandParameters or default valueDescriptorEffect
sb_addAdd a Survivor Bot.
sb_force_max_intensityForce intensity of selected SurvivorBot to maximum level.
sb_giveGive an item to each Survivor bot
sb_give_random_weaponGive a random weapon to each Survivor bot
sb_move_to_cursorSends survivor bots to cursor target
sb_takecontrolTake control of a bot.

Actions

  • L4D1SurvivorBehavior
  • L4D1SurvivorLegsBattleStations
  • L4D1SurvivorMinigunAttack
survivors spawned from info_l4d1_survivor_spawn if sb_l4d1_survivor_behavior cvar is 1
  • SurvivorApproachMinigun
  • SurvivorAttack
  • SurvivorAttractAndGiveItem
  • SurvivorAttractForItemGive
  • SurvivorBehavior
  • SurvivorCheckpointLeaving
  • SurvivorCheckpointReached
  • SurvivorCloseDoor
  • SurvivorDebugApproach
  • SurvivorDispatchEnemy
  • SurvivorElevatorEnter
  • SurvivorElevatorRide
  • SurvivorEngageTheEnemy
  • SurvivorEscapeFlames
  • SurvivorEscapeLadderAmbush
  • SurvivorEscapeSpit
  • SurvivorFinale
  • SurvivorFinaleBattle
  • SurvivorFinaleEscapeToVehicle
  • SurvivorFinaleInitiate
  • SurvivorFinalePreparation
  • SurvivorFinaleRideVehicleAway
  • SurvivorGiveItem
  • SurvivorHealFriend
  • SurvivorHealSelf
  • SurvivorHelpChokingFriend
  • SurvivorHelpPouncedFriend
  • SurvivorLegsApproach
  • SurvivorLegsApproachElevator
  • SurvivorLegsBattleStations
  • SurvivorLegsCoverFriendInCombat
  • SurvivorLegsCoverOrphan
  • SurvivorLegsEnterRescueVehicle
  • SurvivorLegsMeetRescueVehicleArrival
  • SurvivorLegsMoveOn
  • SurvivorLegsMoveToVantagePoint
  • SurvivorLegsMoveUp
  • SurvivorLegsRegroup
  • SurvivorLegsRetreat
  • SurvivorLegsStayClose
  • SurvivorLegsWait
  • SurvivorLiberateBesiegedFriend
  • SurvivorReactToTongueGrab
  • SurvivorReactToVomitOnFriend
  • SurvivorReactToVomitOnMe
  • SurvivorTakePills
  • SurvivorTankAttacking
  • SurvivorWitchAttacking
  • SurvivorUseObject
⮤SurvivorAmbushBoomer
⮤SurvivorCollectObject
⮤SurvivorDislodgeVictim
⮤SurvivorGivePillsToFriend
⮤SurvivorRescueBarricadedFriend
⮤SurvivorReviveFriend

See also