使用 -console 命令行起動遊戲,遊戲中按 ~ 開啟控制臺,輸入 sv_cheats 1 開啟秘籍模式。
註:部分版本是使用 -applaunch -dev -tconsole 命令行啟動遊戲
遊戲秘籍
然後遊戲中按 ~ 輸入以下秘籍,可得到對應效果:
秘籍 作用
god 無敵模式(主機/服務器有效)
noclip 穿墻模式(主機/服務器有效)
mat_depthbias_normal 1 透視模式
impulse 101 得到所有武器
impulse 82 得到壹吉普車
impulse 83 汽艇
notarget 隱形模式
map [map name] 載入指定的地圖
give [item name] 制造指定物品
buddha 傷血
hurtme # 傷血(#為數字)
maps 地圖列表
cl_ragdoll_collide 1 該參數使得構成身體的各個模塊相互緊密接觸
從而避免互相嵌入的情況
這樣使得遊戲中的身體接觸看起來好很多
developer [0-2] 開發者模式; 2是詳細
picker 踢人模式
cl_drawhud [0 or 1] 顯示HUD
cl_enablehud [0 or 1] 顯示HUD
cl_showfps [0 or 1] 幀
+mlook 啟用鼠標外觀
hud_quickhelp/text? 1 顯示準星
viewmodel_fov # 設置武器大小; 默認54
exec [filename] 執行腳本文件
npc_create [name] 召喚對應NPC
npc_create_aimed 召喚壹個NPC
setpos 坐標 傳送
sv_cheats 1
Setang [value] 不詳
sv_cheats 1
sv_gravity # 設置重力值
sv_stopspeed # 設置最低停止速度
sv_friction # 設置摩擦
sv_bounce # 模擬物體的碰撞?
sv_maxvelocity # 設置移動物體的最高速度
sv_waterdist # ?
cl_phys_timescale [0.00-1.00] 設置時間; 默認是1
air_density # 改變空氣密度
dsp_explosion_effect_duration # 設置爆炸混亂的長度
prop_debug 進入淍試模式
mat_numtextureunits # 限制單元紋理
mat_wireframe1 網絡模型
vcollide_wireframe 1 線框物體的物理影響
mat_fastnobump [0 or 1] 凹凸映射
impulse 200 在屏幕上沒有武器模型
impulse 203 刪除針對物體或人
showtriggers_toggle 顯示遊戲觸發
mat_normalmaps 1 顯示普通地圖
mat_normals 1 顯示表面材料
mat_yuv 1 黑白屏幕
mat_yuv 0 彩色屏幕
命令行
使用以下命令行啟動遊戲,可得到對效果:
命令行 作用
-fullscreen 全屏模式
-heapsize 80000 設置heap size
-width 1024 -height 768 設置分辨率
-netgraph [0-3] 多人遊戲時連接流量監測; 0 關閉, 3 最詳細
-dxlevel [number]0 DirectX 版本兼容性;不要小於8
-preload 預載模式
-shaderdll [filename] ?
-mouselook 用鼠標環顧四周
-condebug 調試信息
-sw 軟件渲染模式
-r_anamorphic [0 or 1] 寬屏模式
-startwindowed 窗口模式運行遊戲
-window 窗口模式運行遊戲
-windowed 窗口模式運行遊戲
-mat_preloadshaders 未知
地圖列表
配合秘籍 map [map name] 使用:
d1_canals_01
d1_canals_01a
d1_canals_02
d1_canals_03
d1_canals_05
d1_canals_06
d1_canals_07
d1_canals_08
d1_canals_09
d1_canals_10
d1_canals_11
d1_canals_12
d1_canals_13
d1_eli_01
d1_eli_02
d1_town_01
d1_town_01a
d1_town_02
d1_town_02a
d1_town_03
d1_town_04
d1_town_05
d1_trainstation_01
d1_trainstation_02
d1_trainstation_03
d1_trainstation_04
d1_trainstation_05
d1_trainstation_06
d2_coast_01
d2_coast_03
d2_coast_04
d2_coast_05
d2_coast_07
d2_coast_08
d2_coast_09
d2_coast_10
d2_coast_11
d2_coast_12
d2_prison_01
d2_prison_02
d2_prison_03
d2_prison_04
d2_prison_05
d2_prison_06
d2_prison_07
d2_prison_08
d3_breen_01
d3_c17_01
d3_c17_02
d3_c17_03
d3_c17_04
d3_c17_05
d3_c17_06a
d3_c17_06b
d3_c17_07
d3_c17_08
d3_c17_09
d3_c17_10a
d3_c17_10b
d3_c17_11
d3_c17_12
d3_c17_12b
d3_c17_13
d3_citadel_01
d3_citadel_02
d3_citadel_03
d3_citadel_04
d3_citadel_05
武器列表
配合秘籍 give [item name]使用:
weapon_357
weapon_alyxgun
weapon_ar2
weapon_bugbait
weapon_cguard
weapon_crowbar
weapon_crossbow
weapon_frag
weapon_physcannon
weapon_pistol
weapon_rpg
weapon_shotgun
weapon_smg1
weapon_cubemap
weapon_annabelle
物品列表
配合秘籍 give [item name] 使用:
item_ar2_grenade
item_ammo_smg1_grenade
item_box_buckshot
item_box_lrounds
item_ammo_ar2
item_ammo_ar2_large
item_large_box_lrounds
item_ammo_ar2_altfire
item_box_mrounds
item_ammo_smg1_large
item_large_box_mrounds
item_ammo_smg1
item_box_srounds
item_ammo_pistol
item_ammo_pistol_large
item_large_box_srounds
item_healthkit
item_battery
item_ml_grenade
item_rpg_round
item_suit
item_healthvial
item_ammo_357
item_ammo_357_large
item_ammo_crossbow
NPC名稱列表
配合秘籍 npc_create [name] 使用:
npc_alyx (ceiling turret)
npc_antlion
npc_antlionguard
npc_barnacle
npc_barney
npc_breen
npc_citizen
npc_combine_s
npc_combinedropship
npc_combinegunship
npc_crow
npc_cscanner
npc_dog
npc_eli
npc_fastzombie
npc_gman
npc_headcrab
npc_headcrab_black
npc_headcrab_fast
npc_headcrab_poison
npc_helicopter
npc_ichthyosaur
npc_kleiner
npc_launcher
npc_manhack
npc_metropolice
npc_monk
npc_mossman
npc_pigeon
npc_poisonzombie
npc_rollermine
npc_seagull
npc_stalker
npc_strider
npc_turret_ceiling
npc_turret_floor (combine turret)
npc_vortigaunt
npc_zombie
npc_zombie_torso