Survivor bot: Difference between revisions
Jump to navigation
Jump to search
Warning:Trying to spawn survivor_bot using SpawnEntityFromTable script function or by placing him directly in a map will crash the game
Important:Spawned survivor_bot's classname is
Note:
Line 12: | Line 12: | ||
{{KV|m_humanSpectatorUserID|int}} | {{KV|m_humanSpectatorUserID|int}} | ||
== ConVars | == ConVars == | ||
{{varcom|start}} | |||
{{varcom|sb_all_bot_game|0||Allow a server of nothing but bots}} | |||
sb_all_bot_game | {{varcom|sb_allow_leading|0||If nonzero, SurvivorBots can take the lead and won't always wait behind the lead human player}} | ||
sb_allow_leading | {{varcom|sb_allow_shoot_through_survivors|1||Allow SurvivorBots to shoot through fellow survivors}} | ||
sb_allow_shoot_through_survivors | {{varcom|sb_battlestation_give_up_range_from_human|1500||}} | ||
sb_battlestation_give_up_range_from_human | {{varcom|sb_battlestation_human_hold_time|4||How long the nearest human must hold their place before SurvivorBots will re-evaluate their Battlestations}} | ||
sb_battlestation_human_hold_time | {{varcom|sb_close_checkpoint_door_interval|2||}} | ||
sb_close_checkpoint_door_interval | {{varcom|sb_close_threat_range|200||}} | ||
sb_close_threat_range | {{varcom|sb_combat_saccade_speed|1000||}} | ||
sb_combat_saccade_speed | {{varcom|sb_crouch|0||Forces survivor bots to crouch}} | ||
sb_crouch | {{varcom|sb_debug_apoproach_wait_time|5||How long a SurvivorBot waits once it reaches its debug move-to spot}} | ||
sb_debug_apoproach_wait_time | {{varcom|sb_debug_buddy|0||}} | ||
sb_debug_buddy | {{varcom|sb_debug_locomotion|0||}} | ||
sb_debug_locomotion | {{varcom|sb_debug_retreat|0||}} | ||
sb_debug_retreat | {{varcom|sb_debug_team_avoidance|0||}} | ||
sb_debug_team_avoidance | {{varcom|sb_dont_bash|0||Force SurvivorBots to not bash}} | ||
sb_dont_bash | {{varcom|sb_dont_shoot|0||Force SurvivorBots to not fire their weapons}} | ||
sb_dont_shoot | {{varcom|sb_enforce_proximity_lookat_timeout|10||}} | ||
sb_enforce_proximity_lookat_timeout | {{varcom|sb_enforce_proximity_range|1500||}} | ||
sb_enforce_proximity_range | {{varcom|sb_escort|0||}} | ||
sb_escort | {{varcom|sb_far_hearing_range|1500||}} | ||
sb_far_hearing_range | {{varcom|sb_firstopentime|0||Indicates the time the server browser was first opened.}} | ||
sb_firstopentime | {{varcom|sb_flashlight|0||Forces survivor bots to use flashlights (-1 to force off)}} | ||
sb_flashlight | {{varcom|sb_follow_stress_factor|0.5||}} | ||
sb_follow_stress_factor | {{varcom|sb_friend_immobilized_reaction_time_expert|0.5||How quickly a SurvivorBot realizes a friend has been Pounced or Tongued}} | ||
{{varcom|sb_friend_immobilized_reaction_time_hard|1.0||How quickly a SurvivorBot realizes a friend has been Pounced or Tongued}} | |||
sb_friend_immobilized_reaction_time_expert | {{varcom|sb_friend_immobilized_reaction_time_normal|2.0||How quickly a SurvivorBot realizes a friend has been Pounced or Tongued}} | ||
sb_friend_immobilized_reaction_time_hard | {{varcom|sb_friend_immobilized_reaction_time_vs|0.5||How quickly a SurvivorBot realizes a friend has been Pounced or Tongued}} | ||
sb_friend_immobilized_reaction_time_normal | {{varcom|sb_friendlyfire|0||**Should SurvivorBot bullets hurt other survivors?}} | ||
sb_friend_immobilized_reaction_time_vs | {{varcom|sb_hindrance_range|150||}} | ||
sb_friendlyfire | {{varcom|sb_hold_position|0||Force SurvivorBots to stand still}} | ||
{{varcom|sb_l4d1_survivor_behavior|1||}} | |||
{{varcom|sb_locomotion_wait_threshold|10||}} | |||
sb_hindrance_range | {{varcom|sb_max_battlestation_range_from_human|750||}} | ||
sb_hold_position | {{varcom|sb_max_scavenge_separation|750||SurvivorBots won't scavenge items farther away from the group than this}} | ||
sb_l4d1_survivor_behavior | {{varcom|sb_max_team_melee_weapons|0||The total number of melee weapons allowed on the team. 0 {{=}} bots never use melee}} | ||
sb_locomotion_wait_threshold | {{varcom|sb_melee_approach_victim|0||}} | ||
sb_max_battlestation_range_from_human | {{varcom|sb_min_attention_notice_time|0.5||If someone looks at me longer than this, I'll notice}} | ||
sb_max_scavenge_separation | {{varcom|sb_min_orphan_time_to_cover|1||}} | ||
sb_max_team_melee_weapons | {{varcom|sb_minigun_distance|30.0||}} | ||
sb_melee_approach_victim | {{varcom|sb_move|1||Stop all SurvivorBots from moving}} | ||
sb_min_attention_notice_time | {{varcom|sb_narrow_corridor_width|100||}} | ||
sb_min_orphan_time_to_cover | {{varcom|sb_near_hearing_range|500||}} | ||
sb_minigun_distance | {{varcom|sb_neighbor_range|300||How close a friend needs to be to feel safe}} | ||
sb_move | {{varcom|sb_normal_saccade_speed|350||}} | ||
{{varcom|sb_numtimesopened|0||Indicates the number of times the server browser was opened this session.}} | |||
sb_narrow_corridor_width | {{varcom|sb_open_fire|0||Forces survivor bots to fire continuously}} | ||
sb_near_hearing_range | {{varcom|sb_path_lookahead_range|200||}} | ||
sb_neighbor_range | {{varcom|sb_perf_collect|1||Collect perf for Steam stats}} | ||
sb_normal_saccade_speed | {{varcom|sb_perf_crawl|0||If true, survivor bot will be doing a perf-crawl walk through the map}} | ||
sb_numtimesopened | {{varcom|sb_perf_crawl_ang|5||Rotation angles at perf-crawl snapshots in the map}} | ||
sb_open_fire | {{varcom|sb_perf_crawl_dist|128||Distance between perf-crawl snapshots in the map}} | ||
sb_path_lookahead_range | {{varcom|sb_perf_crawl_time|1.0||How much time is spent at each perf-crawl spot/ang in the map}} | ||
sb_perf_collect | {{varcom|sb_perf_dump|0||If true, low perf places will be dumped}} | ||
sb_perf_crawl | {{varcom|sb_perf_dump_bots|||namvet, girl, biker, manager}} | ||
sb_perf_crawl_ang | {{varcom|sb_perf_dump_low|40||Low perf threshold}} | ||
sb_perf_crawl_dist | {{varcom|sb_perf_dump_low_dist|64||Dump low perf points at least this distance apart}} | ||
sb_perf_crawl_time | {{varcom|sb_pushscale|1.0||}} | ||
sb_perf_dump | {{varcom|sb_reachability_cache_lifetime|3||}} | ||
sb_perf_dump_bots | {{varcom|sb_reachable_cache_paranoia|0||}} | ||
sb_perf_dump_low | {{varcom|sb_replacement_interval|0||Force SurvivorBots to be replaced after this many seconds for stress testing}} | ||
sb_perf_dump_low_dist | {{varcom|sb_rescue_vehicle_loading_range|300||How close to the arrival point of the rescue vehicle SurvivorBots try to get}} | ||
sb_pushscale | {{varcom|sb_revive_friend_distance|125.0||}} | ||
sb_reachability_cache_lifetime | {{varcom|sb_separation_danger_max_range|600||A Survivor teammate this far away needs to be gathered back into the group}} | ||
sb_reachable_cache_paranoia | {{varcom|sb_separation_danger_min_range|200||A Survivor teammate this far away is straying from the group}} | ||
sb_replacement_interval | {{varcom|sb_separation_range|200||Desired distance between Survivors}} | ||
sb_rescue_vehicle_loading_range | {{varcom|sb_show_threat_areas|0||}} | ||
sb_revive_friend_distance | {{varcom|sb_sidestep_for_horde|0||Allow sidestepping left/right to acquire common infected targets}} | ||
sb_separation_danger_max_range | {{varcom|sb_skill|survivor||}} | ||
sb_separation_danger_min_range | {{varcom|sb_stop|0||Forces survivor bots to stand still}} | ||
sb_separation_range | {{varcom|sb_temp_health_consider_factor|0.5||Temporary health is multiplied by this when SurvivorBots consider who needs healing}} | ||
sb_show_threat_areas | {{varcom|sb_threat_close_range|150||Very close range for threats}} | ||
sb_sidestep_for_horde | {{varcom|sb_threat_exposure_stop|200000||}} | ||
sb_skill | {{varcom|sb_threat_exposure_walk|50000||}} | ||
sb_stop | {{varcom|sb_threat_far_range|600||Close enough to be a threat if near several other threats}} | ||
{{varcom|sb_threat_medium_range|300||Too close for comfort, even when neutral}} | |||
sb_temp_health_consider_factor | {{varcom|sb_threat_very_close_range|150||}} | ||
sb_threat_close_range | {{varcom|sb_threat_very_far_range|1500||Too far to be a threat, even for boss infected}} | ||
sb_threat_exposure_stop | {{varcom|sb_toughness_buffer|15||How much more SurvivorBots must be hurt to conider themselves equally valid as a healing target}} | ||
sb_threat_exposure_walk | {{varcom|sb_transition|1||If true, survivor bots will be used as placeholders for survivors who are still changing levels}} | ||
sb_threat_far_range | {{varcom|sb_unstick|1||}} | ||
sb_threat_medium_range | {{varcom|sb_use_button_range|1000||}} | ||
sb_threat_very_close_range | {{varcom|sb_use_upgrades|1||}} | ||
sb_threat_very_far_range | {{varcom|sb_vomit_blind_time|5||How long Boomer vomit/explosion gore blinds us}} | ||
sb_toughness_buffer | {{varcom|end}} | ||
sb_transition | |||
sb_unstick | == ConCommands == | ||
sb_use_button_range | {{varcom|start}} | ||
sb_use_upgrades | {{varcom|sb_add|||Add a Survivor Bot.}} | ||
sb_vomit_blind_time | {{varcom|sb_force_max_intensity|||Force intensity of selected SurvivorBot to maximum level.}} | ||
{{varcom|sb_give|||Give an item to each Survivor bot}} | |||
{{varcom|sb_give_random_weapon|||Give a random weapon to each Survivor bot}} | |||
{{varcom|sb_move_to_cursor|||Sends survivor bots to cursor target}} | |||
{{varcom|sb_takecontrol|||Take control of a bot.}} | |||
{{varcom|end}} | |||
== Actions == | == Actions == |
Revision as of 07:44, 6 August 2023
![]() |
---|
SurvivorBot |


player

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 spawningNetProps
ConVars
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sb_all_bot_game | 0 | Allow a server of nothing but bots | |
sb_allow_leading | 0 | If nonzero, SurvivorBots can take the lead and won't always wait behind the lead human player | |
sb_allow_shoot_through_survivors | 1 | Allow SurvivorBots to shoot through fellow survivors | |
sb_battlestation_give_up_range_from_human | 1500 | ||
sb_battlestation_human_hold_time | 4 | How long the nearest human must hold their place before SurvivorBots will re-evaluate their Battlestations | |
sb_close_checkpoint_door_interval | 2 | ||
sb_close_threat_range | 200 | ||
sb_combat_saccade_speed | 1000 | ||
sb_crouch | 0 | Forces survivor bots to crouch | |
sb_debug_apoproach_wait_time | 5 | How long a SurvivorBot waits once it reaches its debug move-to spot | |
sb_debug_buddy | 0 | ||
sb_debug_locomotion | 0 | ||
sb_debug_retreat | 0 | ||
sb_debug_team_avoidance | 0 | ||
sb_dont_bash | 0 | Force SurvivorBots to not bash | |
sb_dont_shoot | 0 | Force SurvivorBots to not fire their weapons | |
sb_enforce_proximity_lookat_timeout | 10 | ||
sb_enforce_proximity_range | 1500 | ||
sb_escort | 0 | ||
sb_far_hearing_range | 1500 | ||
sb_firstopentime | 0 | Indicates the time the server browser was first opened. | |
sb_flashlight | 0 | Forces survivor bots to use flashlights (-1 to force off) | |
sb_follow_stress_factor | 0.5 | ||
sb_friend_immobilized_reaction_time_expert | 0.5 | How quickly a SurvivorBot realizes a friend has been Pounced or Tongued | |
sb_friend_immobilized_reaction_time_hard | 1.0 | How quickly a SurvivorBot realizes a friend has been Pounced or Tongued | |
sb_friend_immobilized_reaction_time_normal | 2.0 | How quickly a SurvivorBot realizes a friend has been Pounced or Tongued | |
sb_friend_immobilized_reaction_time_vs | 0.5 | How quickly a SurvivorBot realizes a friend has been Pounced or Tongued | |
sb_friendlyfire | 0 | **Should SurvivorBot bullets hurt other survivors? | |
sb_hindrance_range | 150 | ||
sb_hold_position | 0 | Force SurvivorBots to stand still | |
sb_l4d1_survivor_behavior | 1 | ||
sb_locomotion_wait_threshold | 10 | ||
sb_max_battlestation_range_from_human | 750 | ||
sb_max_scavenge_separation | 750 | SurvivorBots won't scavenge items farther away from the group than this | |
sb_max_team_melee_weapons | 0 | The total number of melee weapons allowed on the team. 0 = bots never use melee | |
sb_melee_approach_victim | 0 | ||
sb_min_attention_notice_time | 0.5 | If someone looks at me longer than this, I'll notice | |
sb_min_orphan_time_to_cover | 1 | ||
sb_minigun_distance | 30.0 | ||
sb_move | 1 | Stop all SurvivorBots from moving | |
sb_narrow_corridor_width | 100 | ||
sb_near_hearing_range | 500 | ||
sb_neighbor_range | 300 | How close a friend needs to be to feel safe | |
sb_normal_saccade_speed | 350 | ||
sb_numtimesopened | 0 | Indicates the number of times the server browser was opened this session. | |
sb_open_fire | 0 | Forces survivor bots to fire continuously | |
sb_path_lookahead_range | 200 | ||
sb_perf_collect | 1 | Collect perf for Steam stats | |
sb_perf_crawl | 0 | If true, survivor bot will be doing a perf-crawl walk through the map | |
sb_perf_crawl_ang | 5 | Rotation angles at perf-crawl snapshots in the map | |
sb_perf_crawl_dist | 128 | Distance between perf-crawl snapshots in the map | |
sb_perf_crawl_time | 1.0 | How much time is spent at each perf-crawl spot/ang in the map | |
sb_perf_dump | 0 | If true, low perf places will be dumped | |
sb_perf_dump_bots | namvet, girl, biker, manager | ||
sb_perf_dump_low | 40 | Low perf threshold | |
sb_perf_dump_low_dist | 64 | Dump low perf points at least this distance apart | |
sb_pushscale | 1.0 | ||
sb_reachability_cache_lifetime | 3 | ||
sb_reachable_cache_paranoia | 0 | ||
sb_replacement_interval | 0 | Force SurvivorBots to be replaced after this many seconds for stress testing | |
sb_rescue_vehicle_loading_range | 300 | How close to the arrival point of the rescue vehicle SurvivorBots try to get | |
sb_revive_friend_distance | 125.0 | ||
sb_separation_danger_max_range | 600 | A Survivor teammate this far away needs to be gathered back into the group | |
sb_separation_danger_min_range | 200 | A Survivor teammate this far away is straying from the group | |
sb_separation_range | 200 | Desired distance between Survivors | |
sb_show_threat_areas | 0 | ||
sb_sidestep_for_horde | 0 | Allow sidestepping left/right to acquire common infected targets | |
sb_skill | survivor | ||
sb_stop | 0 | Forces survivor bots to stand still | |
sb_temp_health_consider_factor | 0.5 | Temporary health is multiplied by this when SurvivorBots consider who needs healing | |
sb_threat_close_range | 150 | Very close range for threats | |
sb_threat_exposure_stop | 200000 | ||
sb_threat_exposure_walk | 50000 | ||
sb_threat_far_range | 600 | Close enough to be a threat if near several other threats | |
sb_threat_medium_range | 300 | Too close for comfort, even when neutral | |
sb_threat_very_close_range | 150 | ||
sb_threat_very_far_range | 1500 | Too far to be a threat, even for boss infected | |
sb_toughness_buffer | 15 | How much more SurvivorBots must be hurt to conider themselves equally valid as a healing target | |
sb_transition | 1 | If true, survivor bots will be used as placeholders for survivors who are still changing levels | |
sb_unstick | 1 | ||
sb_use_button_range | 1000 | ||
sb_use_upgrades | 1 | ||
sb_vomit_blind_time | 5 | How long Boomer vomit/explosion gore blinds us |
ConCommands
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
sb_add | Add a Survivor Bot. | ||
sb_force_max_intensity | Force intensity of selected SurvivorBot to maximum level. | ||
sb_give | Give an item to each Survivor bot | ||
sb_give_random_weapon | Give a random weapon to each Survivor bot | ||
sb_move_to_cursor | Sends survivor bots to cursor target | ||
sb_takecontrol | Take 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