传送门2控制台指令代码大全汇总

发布时间:2026-07-20 10:17:34

作者:流银

传送门2中想要使用指令代码,首先需要设置作弊,在选项中选择键盘/鼠标,点击允许开发者控制台,然后就可以输入指令代码内容来进行使用了,各个指令代码的相关内容详情参考以下正文内容!

传送门2手机版游戏下载获取地址:https://m.lcks.com.cn/game/5887.html

传送门2控制台指令代码大全汇总

1、前进:输入 -xxxx 可取消 +xxxx 效果

+forward

2、后退:

+back

3、左移:

+moveleft

4、右移:

+moveright

5、左转:

+left

6、右转:

+right

7、跳:

+jump

8、蹲:

+duck

9、使用道具:

+use

10、放大:

+zoom_in

11、缩小:

+zoom_out

12、放大/缩小:

+zoom

13、快速放大/缩小视角,建议配合绑定按键(尤其玩P-body时很有用):

incrementvar cl_fov 50 90 40

14、攻击1(传送门A,单人模式发射蓝色传送门):

+attack

15、攻击2(传送门B,单人模式发射橙色传送门):

+attack2

16、打开记分板(可用于观察延迟):

+score

17、保存(不需要后缀):

save 文件名

18、保存一个自动存档(别乱玩这个, 会保存一个autosave.sav, 覆盖游戏的自动保存文档):

autosave

19、保存一个危险自动存档(别乱玩这个, 会保存一个autosavedangerous.sav, 覆盖游戏原本文件):

autosavedangerous

20、无效的一个自动保存(应该无效):

autosavedangerousissafe

21、加载(不需要后缀, 控制台会有提示):

load 文件名

22、加载最近保存或加载的存档:

reload

23、打开作弊:(0=关, 1=开)

sv_cheats 1

注意:一旦打开这个之后,服务器会标记为作弊,且这个东西只能蓝方打开,即服务器管理员,并且客户端就可用@command等控制服务器端,慎用!!!

24、无敌:

god

25、穿墙(飞行):

noclip

26、跳过动画(可能触发某些输出,如跳剧情等):

stopvideos

27、远程抓取:

ent_fire !picker use

28、任意打门:(0=关, 1=开)

sv_portal_placement_never_fail 1

29、炮塔不会向你开火:

notarget

30、传送你自己:(合作模式为传送Atlas)

ent_teleport player

31、传送P-Body:

ent_teleport red

32、分解目标方块或球:

ent_fire !picker dissolve

33、删除所有传送门:

ent_fire prop_portal fizzle

34、开发人员:(1=开,0=关 , 2=开+输入输出显示)

developer

35、关卡结构可视(出地图时很有效,尤其是通过传送门出):(0=开, 1=关)

r_portal_use_pvs_optimization 0

36、关卡触发器可视:

showtriggers_toggle

37、空气墙显示:( 0=默认,1=框架,2=填充 提示:红色是clip,紫色是player clip,但nodraw没有)

r_drawclipbrushes 0

38、物体线框显示:(1=开,0=关)

vcollide_wireframe

39、玩家碰撞箱显示:(需开发人员)

ent_bbox player

40、打开门之类的东西:

ent_fire !picker open

41、同上,但关闭:

ent_fire !picker close

42、重启关卡:

restart_level

43、更改地图:

select_map "地图代码"

44、更改地图(仅单人/Atlas执行时有效):

changelevel "地图代码"

45、准心开关:(1=开,0=关)

crosshair 1

46、显示位置与速度:(0=关, 1=开)

cl_showpos 1

47、显示游戏帧数:(0=关, 1=帧/秒, 2=超帧频, 3=服务器延迟, 4=显示fps和日志文件)

cl_showfps 1

48、查看FPS,PING等:(0=关,1=开)

net_graph 0

49、改变graph位置:(0=左,1=右,2=中)

net_graphpos 1

50、中文字幕:

cc_lang schinese

51、绑定指令到按键(wasd等直接输入):

bind "按键" "指令代码"

52、绑定变量指令到按键:(指令的参数在1、0之间切换)

bindtoggle "按键" "命令"

53、查询全部绑定按键:

key_listboundkeys

54、取消绑定按键:

unbind "按键"

55、清空所有已绑定命令键位(最好小心使用, 若使用后无法恢复后果自负):

unbindall

56、点亮传送门:(0=关, 1=开)

r_portal_use_dlights 1

57、制造一把传送枪:(物品)

ent_create weapon_portalgun

58、将单门传送枪升级到双门:

upgrade_portalgun

59、移除所有传送枪:(包括所有人手上的)

ent_remove_all weapon_portalgun

60、更改传送门的id, 不同id的门不可以互通(旧版解释: 使用多个传送门): (默认单人0, Atlas1 , P-Body2)

change_portalgun_linkage_id 数字

61、更改传送门大小(w=宽度,h=高度): (默认= " portals_resizeall 33 55”)

portals_resizeall w h

62、去除传送枪(仍然可以射击):

impulse 200

63、得到传送枪:

give_portalgun

64、马铃薯传送枪:

upgrade_potatogun

65、左/右移动传送枪:(0 =默认)

viewmodel_offset_x 0

66、向前/向后移动传送枪:

viewmodel_offset_y 0

67、上/下移动传送枪:

viewmodel_offset_z 0

68、传送枪下一次发射最小延迟: (0.2=默认,可以改成0)

portalgun_fire_delay 数字

69、传送枪自动发射延迟(按住鼠标左键或右键): (0.5=默认,可以改成0)

portalgun_held_button_fire_fire_delay 数字

70、炮塔:

npc_create npc_portal_turret_floor

71、炮塔妻子:

prop_dynamic_create npcs/turret/turretwife

72、愚蠢炮塔:(无法拾取)

prop_physics_create npcs/turret/turret.mdl

73、悬停炮塔:

ent_create npc_hover_turret

74、激光炮塔:

ent_create prop_monster_box

75、未完成的火箭炮塔:

ent_create prop_rocket_tripwire

76、火箭炮塔模型:

prop_dynamic_create props/tripwire_turret

77、发射红X的ERROR:

ent_create prop_dynamic

78、惠特利:

ent_create npc_personality_core?

79、没有动画的惠特利:(无法正常拾取)

ent_create prop_glados_core

80、没有动画的惠特利:(可拾取)

ent_create prop_personality_sphere

81、惠特利在G娘的身体里:

prop_dynamic_create npcs/glados/glados_wheatley_boss

82、G娘:

prop_dynamic_create npcs/glados/glados_animation

83、火箭模型(几乎不可见):

prop_dynamic_create props_bts/rocket

84、门:

give prop_testchamber_door

85、激光发射器:

ent_create env_portal_laser

86、激光发射器:(无激光)

prop_dynamic_create props/laser_emitter

87、激光继电器:

ent_create prop_laser_relay

88、激光接收器:

ent_create prop_laser_catcher

89、横向牵引力场发射器(无力场):

ent_create prop_tractor_beam

90、生成光桥发射器:(无桥)

prop_dynamic_create props/wall_emitter

91、创造光桥发射器:(无桥)

ent_create prop_wall_projector

92、激活牵引力场发射器或光桥发射器之类的东西:

ent_fire !picker enable

93、安装摄像头:

ent_create npc_security_camera

94、摄像头:(物品)

prop_physics_create props/security_camera

95、摄像头:(无法拾取)

ent_create npc_security_camera

96、固定按钮:(站按钮)

ent_create prop_button

97、旧固定按钮:(站按钮)

ent_create prop_under_button

98、重力按钮:(无法按下)

prop_dynamic_create props/portal_button

99、重力按钮:(按下时动画是向后的)

give prop_floor_button

100、旧重力按钮:(无法按下)

prop_dynamic_create props_underground/underground_floor_button

101、旧重力按钮:(按下时动画是向后的)

give prop_under_floor_button

102、方块基座:

give prop_floor_cube_button

103、球基座:

give prop_floor_ball_button

104、Atlas:

prop_dynamic_create player/ballbot/ballbot.mdl

105、P-Body:

prop_dynamic_create player/eggbot/eggbot.mdl

106、切尔:(雪儿)

prop_dynamic_create player/chell/player

107、月球上看到的月球车:

prop_dynamic_create props_moon/lunar_rover.mdl

108、月球上的阿波罗11号:

prop_dynamic_create props_moon/lunar_module

109、美国旗子:

prop_dynamic_create props_moon/parts/moon_flag

110、机械臂:

prop_dynamic_create player/chell/roboarm50percent

111、一棵树:

prop_dynamic_create props_foliage/mall_tree_large01

112、能量球发射器:

prop_dynamic_create props/combine_ball_launcher

113、能量球接收器:

prop_dynamic_create props/combine_ball_catcher

114、Portal 1的炮塔模型:

prop_dynamic_create npcs/turret/turret_fx_fizzler

115、一堆损毁炮塔碎片:(建筑)

prop_dynamic_create npcs/turret/turret_debris_lrg

116、一个圆环:(无法拾取)

prop_dynamic_create gladdysdestruction/glados_junk_05_

117、救生圈:(建筑)

prop_dynamic_create props_underground/life_preserver

118、逃生门:(旧)

prop_dynamic_create props_underground/test_chamber_door

119、传送枪架:(无效果)

prop_dynamic_create props/pedestal_center_reference

120、铁桥:(横向)

prop_dynamic_create catwalk_destruction/catwalk_fx_c

121、录音机:(无效果,无法拾取)

prop_dynamic_create props/radio_reference

122、一个马桶:

prop_dynamic_create props/toilet_body_reference

123、休眠舱:

prop_dynamic_create props/bed_body_reference

124、石桌:

prop_dynamic_create props/table_reference

125、Atlas的头:(可拾取)

prop_physics_create player/ballbot/gib_core_ball

126、P-body的头:(可拾取)

prop_physics_create player/eggbot/gib_core

127、装炮塔的盒子:

prop_physics_create npcs/turret/turret

128、G娘的头:(无法正常拾取)

prop_physics_create npcs/glados/glados_small_head

129、一把椅子:

prop_physics_create props/lab_chair/lab_chair

130、一个机箱:(无法正常拾取)

prop_physics_create props/pc_case02/pc_case02

131、一个骷髅:

prop_physics_create gibs/hgibs

132、一个有趣的白色光球:(无法正常拾取)

prop_physics_create props/sphere

133、人体模型:

prop_dynamic_create props_lab/bot_male

134、弹跳板模型:

prop_dynamic_create props/faith_plate

135、炮塔模型:

prop_dynamic_create props_vac_anim/turret_lowres

136、一部电梯:

prop_dynamic_create elevator/elevator_b

137、逃生电梯:

prop_dynamic_create elevator/elevator_escape

138、闲置电梯:

prop_dynamic_create elevator/elevator

139、Portal 1电梯:

prop_dynamic_create props/round_elevator_body

140、一只鸟:

prop_dynamic_create npcs/bird/bird

141、一个鸟巢:

prop_dynamic_create props_sabotage/bird_nest

142、G娘的一个圈:

prop_dynamic_create npcs/glados/glados_disc

143、一堆核心:(建筑)

prop_dynamic_create npcs/personality_sphere/personality_sphere_pile

144、解锁合作模式记录:(你是橙方时, 同伴记录也会解锁)

mp_mark_all_maps_complete

145、删除合作模式记录:(你是橙方时, 同伴记录也会消失)

mp_mark_all_maps_incomplete

146、删除所有动作:(你是橙方时, 同伴动作也会消失)

mp_lock_all_taunts

147、要恢复动作需要依次输入以下指令:

mp_earn_taunt highFive

mp_earn_taunt laugh

mp_earn_taunt robotDance

mp_earn_taunt rps

mp_earn_taunt trickfire

mp_earn_taunt teamhug

mp_earn_taunt teamtease

mp_earn_taunt smallwave

148、队友视角保持常开 / 关:

开:+remote_view

关:-remote_view

提示:可使用绑定TAB常显示,例如:

bind TAB "+remote_view;+remote_view"

149、自动接受队友动作(如击掌动作)开 / 关:(对拿首动作无效)

开: mp_auto_accept_team_taunt 1

关: mp_auto_accept_team_taunt 0

需要开启sv_cheats 1:

150、屠宰P-body:(无敌状态下不会死)

ent_fire !player_orange sethealth -200

151、昵氏(同上, 但不需sv_cheats 1, 只能Atlas使用):

script EntFire("!player_orange","sethealth","-200")

152、屠宰Atlas:(无敌状态下不会死)

ent_fire !player_blue sethealth -200

153、昵氏(同上, 但不需sv_cheats 1, 只能Atlas使用):

script EntFire("!player_blue","sethealth","-200")

154、让P-body着火:(数字是时间)

ent_fire !player_orange IgniteLifeTime 10

155、昵氏(同上, 但不sv_cheats 1, 只能Atlas使用):

script EntFire("!player_orange","IgniteLifeTime","10")

156、让Atlas着火:(数字是时间)

ent_fire !player_blue IgniteLifeTime 10

157、昵氏(同上, 但不sv_cheats 1, 只能Atlas使用):

script EntFire("!player_blue","IgniteLifeTime","10")

158、隐身:(饰品;传送枪可见)

ent_fire !self addoutput"rendermode 6"

159、隐身2: (仅饰品可见, 但死亡恢复)

ent_fire !self disabledraw

昵氏隐身(与隐身2效果相同,但不需要sv_cheats 1,只能管理员(Atlas)使用):

160、单人玩家(几乎没啥用)、Atlas:

script EntFire("!player","disabledraw")

161、蓝方(Altas):

script EntFire("!player_blue","disabledraw")

162、橙方(P-Body):

script EntFire("!player_orange","disabledraw")

163、传送Atlas:

ent_teleport blue

164、传送P-body:

ent_teleport red

165、杀死自己:

kill

166、杀死伙伴:(无视无敌状态)

kill "队友的名字"

167、也可以用:(与kill没区别)

bot_kill "队友的名字"

168、变成Atlas(单人模式会崩溃,除非地图里有这个模型):(死亡恢复)

setmodel player/ballbot/ballbot

169、变成P-Body(人模式会崩溃,除非地图里有这个模型)):(死亡恢复)

setmodel player/eggbot/eggbot

传送门2

传送门2

类型:冒险解谜

更新时间:2026-07-17 10:45:18

立即查看
Copy Banner

攻略文章为绿茶安卓网所有,未经允许不得转载。