Activate the console:
Chinese version: Game options => Keyboard/Mouse => Allow command column => Enabled
English version: Options => KEYBOARD/MOUSE => Allow Developer => Enabled
Activate the cheat mode:
Press ~ in the game to open the console, enter sv_cheats 1 to enter to activate the cheat mode, and then press ~ Enter the following to get the corresponding effect
Takes
Effect
god
Invincible Mode
noclip
Wall-through mode
notarget
Invisible Mode
buddha
Undead Mode
host_timescale #
Set the game speed. The default is 1 (such as host_timescale 0.5)
firstperson
First Person
thirdperson
Third person perspective
cl_showfps 1
Show FPS
kill
Suicide
fly
Flight Mode
impulse 100
On/Off Flashlight
impulse 102
Some corpses (actually easter eggs) were produced under the body (including bones, heart, lungs, muscles, and even skulls) (People with poor tolerance, please don't try)
sv_portal_placement_never_fail 1
Posting portal at will (0 is the default value)
sv_gravity 600
Change gravity (600 is the default)
portal_draw_ghosting 0
Close the function of displaying portal position through the wall
give_portalgun
Get the portal gun
ent_create_paint_bomb_erase
Gel Effect 1
ent_create_paint_bomb_jump
Gel Effect 2
ent_create_paint_bomb_portal
Gel Effect 3
ent_create_paint_bomb_speed
Gel Effect 4
ent_create_portal_companion_cube
Making Gravity Companion Block
ent_create_portal_reflector_cube
Making gravity pivot blocks (actually blocks that can refract lasers)
ent_create_portal_weighted_antique
Making old gravity boxes (antiques from old laboratories)
ent_create_portal_weighted_cube
Making ordinary gravity blocks
ent_create_portal_weighted_sphere
Making gravity spheres