Rust Server Variables
give 物品列表 →用于 F1 菜单或 RCON 的控制台命令。来源:社区维护的 Rust 自身生成的命令元数据导出——请将其视为有用的参考,而非详尽无遗的清单。
Server configuration variables (convars) for server owners: set them in server.cfg, from the F1 console as an admin, or over RCON. Each shows its default value.
命令数:1,668
| 命令 | 描述 | 分类 | 类型 | 默认 | 权限 | |
|---|---|---|---|---|---|---|
ai.npcbarksenabled |
ai | 变量 | False |
管理员 | ||
ai.npc_check_spawner_is_on_navmesh |
(自动生成)启用后,会在生成前验证 NPC 出生点位于有效的 NavMesh 位置;防止 NPC 生成在无法到达的位置 | ai | 变量 | True |
管理员 | |
ai.npc_cover_compromised_cooldown |
npc_cover_compromised_cooldown 定义掩体点被标记为已暴露后,多久才会被清除并可再次被选择。(默认:10) | ai | 变量 | 10 |
管理员 | |
ai.npc_cover_info_tick_rate_multiplier |
收集可用掩体点信息的速率。最小值为 1,因为它会与固定 AI 刷新率 0.1 相乘。(默认:20) | ai | 变量 | 20 |
管理员 | |
ai.npc_cover_path_vs_straight_dist_max_diff |
npc_cover_path_vs_straight_dist_max_diff 定义评估掩体点时,直线距离与路径距离之间允许的最大差值。(默认:2) | ai | 变量 | 2 |
管理员 | |
ai.npc_cover_use_path_distance |
如果 npc_cover_use_path_distance 设为 true,NPC 会使用掩体点与目标之间的路径距离,而不是直线距离。 | ai | 变量 | True |
管理员 | |
ai.npc_deliberate_hit_randomizer |
射击时随机数相对最大偏差允许偏离的百分比,用于刻意命中目标(我们不希望每枪都完美命中)。(默认:0.85f) | ai | 变量 | 0.85 |
管理员 | |
ai.npc_deliberate_miss_offset_multiplier |
NPC 最多会偏离目标多远的偏移量。(默认:1.25) | ai | 变量 | 1.25 |
管理员 | |
ai.npc_deliberate_miss_to_hit_alignment_time |
NPC 从刻意打偏到尝试命中目标所需的时间。(默认:1.5) | ai | 变量 | 1.5 |
管理员 | |
ai.npc_door_trigger_size |
npc_door_trigger_size 定义门上触发框的大小,NPC 走近时会触发开门。(默认:1.5) | ai | 变量 | 1.5 |
管理员 | |
ai.npc_enable |
如果 npc_enable 设为 false,NPC 将不会生成。(默认:true) | ai | 变量 | True |
管理员 | |
ai.npc_families_no_hurt |
如果 npc_families_no_hurt 为 true,同一家族的 NPC 无法互相伤害。(默认:true) | ai | 变量 | True |
管理员 | |
ai.npc_gun_noise_silencer_modifier |
消音器降低枪支射击噪音的修正系数。(默认:0.15) | ai | 变量 | 0.15 |
管理员 | |
ai.npchealthmultiplier |
(自动生成)应用于所有 NPC 的全局生命值倍率;1.0 = 正常,2.0 = 双倍生命值;适用于调整难度而无需修改各个 NPC 预制体 | ai | 变量 | 1 |
管理员 | |
ai.npc_htn_player_base_damage_modifier |
新 HTN 玩家 NPC 的基础伤害修正,用于削弱其相对旧 NPC 的伤害。(默认:1.15f) | ai | 变量 | 1.15 |
管理员 | |
ai.npc_htn_player_frustration_threshold |
npc_htn_player_frustration_threshold 定义 NPC 的挫败阈值,达到后它们有机会改用更激进的战术。(默认:3) | ai | 变量 | 3 |
管理员 | |
ai.npc_ignore_chairs |
如果 npc_ignore_chairs 为 true,NPC 不会去寻找并坐在椅子上。(默认:true) | ai | 变量 | True |
管理员 | |
ai.npc_junkpile_a_spawn_chance |
npc_junkpile_a_spawn_chance 定义科学家在废料堆 a 生成的几率。(默认:0.1) | ai | 变量 | 0.1 |
管理员 | |
ai.npc_junkpile_dist_aggro_gate |
npc_junkpile_dist_aggro_gate 定义废料堆科学家在多远(或更近)的范围内会变得有攻击性。(默认:8) | ai | 变量 | 8 |
管理员 | |
ai.npc_junkpile_g_spawn_chance |
npc_junkpile_g_spawn_chance 定义科学家在废料堆 g 生成的几率。(默认:0.1) | ai | 变量 | 0.1 |
管理员 | |
ai.npc_junkpilespawn_chance |
定义科学家在 NPC 废料堆生成的几率。(默认:0.1) | ai | 变量 | 0.07 |
管理员 | |
ai.npc_max_junkpile_count |
npc_max_junkpile_count 定义世界中同一时间最多可在废料堆生成多少 NPC(不包括地标)。(默认:30) | ai | 变量 | 30 |
管理员 | |
ai.npc_max_population_military_tunnels |
npc_max_population_military_tunnels 定义军事隧道中 NPC 的数量规模。(默认:3) | ai | 变量 | 3 |
管理员 | |
ai.npc_max_roam_multiplier |
与 NPC 的最大游荡范围属性相乘,决定 NPC 可以距离其出生点多远游荡。(默认:3) | ai | 变量 | 3 |
管理员 | |
ai.npc_only_hurt_active_target_in_safezone |
如果 npc_only_hurt_active_target_in_safezone 为 true,NPC 在安全区内不会伤害其当前锁定目标以外的任何玩家。(默认:true) | ai | 变量 | True |
管理员 | |
ai.npc_patrol_point_cooldown |
npc_patrol_point_cooldown 定义巡逻点再次可用前的冷却时间(默认:5) | ai | 变量 | 5 |
管理员 | |
ai.npc_reasoning_system_tick_rate_multiplier |
推理系统的刷新速率。最小值为 1,因为它会与固定 AI 刷新率 0.1 相乘(默认:1) | ai | 变量 | 1 |
管理员 | |
ai.npc_respawn_delay_max_military_tunnels |
npc_respawn_delay_max_military_tunnels 定义军事隧道中生成周期之间的最大延迟。(默认:1920) | ai | 变量 | 1920 |
管理员 | |
ai.npc_respawn_delay_min_military_tunnels |
npc_respawn_delay_min_military_tunnels 定义军事隧道中生成周期之间的最小延迟。(默认:480) | ai | 变量 | 480 |
管理员 | |
ai.npc_sensory_system_tick_rate_multiplier |
感知系统的刷新速率。最小值为 1,因为它会与固定 AI 刷新率 0.1 相乘(默认:5) | ai | 变量 | 5 |
管理员 | |
ai.npc_spawn_on_cargo_ship |
在货船上生成 NPC。(默认:true) | ai | 变量 | True |
管理员 | |
ai.npc_spawn_on_deep_sea_islands |
在深海岛屿上生成 NPC(默认:false) | ai | 变量 | True |
管理员 | |
ai.npc_spawn_on_junkpile |
在废料堆生成 NPC(默认:true) | ai | 变量 | True |
管理员 | |
ai.npc_spawn_per_tick_max_military_tunnels |
npc_spawn_per_tick_max_military_tunnels 定义军事隧道中一次最多可生成多少个。(默认:1) | ai | 变量 | 1 |
管理员 | |
ai.npc_spawn_per_tick_min_military_tunnels |
npc_spawn_per_tick_min_military_tunnels 定义军事隧道中一次最少会生成多少个。(默认:1) | ai | 变量 | 1 |
管理员 | |
ai.npc_speed_crouch_run |
npc_speed_crouch_run 定义 NPC 处于蹲跑状态时的速度,应为 0 到 1 之间的数字。(默认:0.25) | ai | 变量 | 0.25 |
管理员 | |
ai.npc_speed_crouch_walk |
npc_speed_walk 定义 NPC 处于蹲走状态时的速度,应为 0 到 1 之间的数字。(默认:0.1) | ai | 变量 | 0.1 |
管理员 | |
ai.npc_speed_run |
npc_speed_walk 定义 NPC 处于奔跑状态时的速度,应为 0 到 1 之间的数字。(默认:0.4) | ai | 变量 | 0.4 |
管理员 | |
ai.npc_speed_sprint |
npc_speed_walk 定义 NPC 处于冲刺状态时的速度,应为 0 到 1 之间的数字。(默认:1.0) | ai | 变量 | 1 |
管理员 | |
ai.npc_speed_walk |
npc_speed_walk 定义 NPC 处于行走状态时的速度,应为 0 到 1 之间的数字。(默认:0.18) | ai | 变量 | 0.18 |
管理员 | |
ai.npcswimming |
(自动生成)启用后,NPC 可以进入水中并游泳;禁用则阻止所有 NPC 进入水域 | ai | 变量 | True |
管理员 | |
ai.npc_use_new_aim_system |
如果 npc_use_new_aim_system 为 true,NPC 偶尔会故意打偏,而旧系统是随机化瞄准锥。(默认:true) | ai | 变量 | True |
管理员 | |
ai.npc_use_thrown_weapons |
如果 npc_use_thrown_weapons 为 true,NPC 会投掷手雷等。这是一项实验性功能。(默认:true) | ai | 变量 | True |
管理员 | |
ai.npc_valid_aim_cone |
npc_valid_aim_cone 定义瞄准需要多接近目标才能开火。(默认:0.8) | ai | 变量 | 0.8 |
管理员 | |
ai.npc_valid_mounted_aim_cone |
npc_valid_mounted_aim_cone 定义乘坐状态下瞄准需要多接近目标才能开火。(默认:0.92) | ai | 变量 | 0.92 |
管理员 | |
ai.ocean_critters_movement_frametime |
Frame time budget in milliseconds for the ocean critters' swimming movement | ai | 变量 | 0.2 |
管理员 | |
ai.ocean_patrol_path_iterations |
(自动生成)计算 NPC 海上巡逻路线时使用的最大寻路迭代次数;数值越高,路径越好,但 CPU 开销越大 | ai | 变量 | 100000 |
管理员 | |
ai.scientist_spawners_enabled |
地图上是否会生成任何种类的科学家(默认:true) | ai | 变量 | True |
管理员 | |
ai.sensetime |
(自动生成)NPC 感知系统更新其对附近实体感知的频率(秒);数值越高,CPU 开销越低,但 NPC 反应越慢 | ai | 变量 | 1 |
管理员 | |
ai.setdestinationsamplenavmesh |
(自动生成)启用后,NavMesh 目标点在设置前会被采样到最近的有效 NavMesh 位置;防止 NPC 卡在网格之外 | ai | 变量 | True |
管理员 |
Server configuration variables (convars) for server owners: set them in server.cfg, from the F1 console as an admin, or over RCON. Each shows its default value. Search by name, description or category; every row has a copy button.
常见问题
Press F1 in game. Type a command and press Enter; press F1 again to close it.
A community-maintained export of Rust's own generated command metadata. Commands change with game updates, so treat it as a helpful reference rather than an exhaustive one.