Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Cheats
From HalfLife 2 Knowledge Base
[edit]
Getting Started
In order to use cheats, you must enable developer console in the advanced keyboard controls. After you enable the console, press ~ to activate the console. Type sv_cheats 1 in the console, this will allow you to enter cheats. Without this command the cheats will not work.
[edit]
Cheat Codes
Type the following codes in the developer console:
- impulse 82 Spawns a buggy.
- impulse 83 Spawns an airboat.
- buddha Health does not drop below 1.
- god God Mode, you do not take damage.
- give <weaponname> Obtain a certain weapon.
- impulse 101 Obtain all weapons with full ammo, also refills ammo if you already have the weapon.
- impulse 102 Spawn Gibs
- mat_depthbias_normal 2 See through walls
Others:
- cam_command
- cl_bob
- cl_bobcycle
- cl_bobup
- cl_clock_correction Enable/disable clock correction on the client.
- cl_clock_correction_adjustment_max_amount Sets the maximum number of milliseconds per second it is allowed to correct the client clock. It will only correct this amount if the difference between the client and server clock is equal to or larger than cl_clock_correction_adjustment_max_offset.
- cl_clock_correction_adjustment_max_offset As the clock offset goes from cl_clock_correction_adjustment_min_offset to this value (in milliseconds), it moves towards applying cl_clock_correction_adjustment_max_amount of adjustment. That way, the response is small when the offset is small.
- cl_clock_correction_adjustment_min_offset If the clock offset is less than this amount (in milliseconds), then no clock correction is applied.
- cl_clock_correction_force_server_tick Force clock correction to match the server tick this offset (-999 disables it).
- cl_clock_showdebuginfo Show debugging info about the clock drift.
- cl_clockdrift_max_ms Maximum number of milliseconds the clock is allowed to drift before the client snaps its clock to the server's.
- cl_drawhud Enable the rendering of the hud
- cl_drawleaf
- cl_drawmaterial Draw a particular material over the frame
- cl_drawshadowtexture
- cl_entityreport For debugging, draw entity states to console
- cl_extrapolate Enable/disable extrapolation if interpolation history runs out.
- cl_extrapolate_amount Set how many seconds the client will extrapolate entities for.
- cl_flushentitypacket For debugging. Force the engine to flush an entity packet.
- cl_ignorepackets Force client to ignore packets (for debugging).
- cl_leveloverview
- cl_maxrenderable_dist Max distance from the camera at which things will be rendered
- cl_overdraw_test
- cl_particleeffect_aabb_buffer Add this amount to a particle effect's bbox in the leaf system so if it's growing slowly, it won't have to be reinserted as often.
- cl_pclass Dump entity by prediction classname.
- cl_pdump Dump info about this entity to screen.
- cl_phys_timescale Sets the scale of time for client-side physics (ragdolls)
- cl_predictionlist Show which entities are predicting
- cl_showanimstate Show the (client) animation state for the specified entity (-1 for none).
- cl_showanimstate_log 1 to output cl_showanimstate to Msg(). 2 to store in AnimState.log. 3 for both.
- cl_showerror Show prediction errors, 2 for above plus detailed field deltas.
- cl_showevents Print event firing info in the console
- cl_sun_decay_rate
- default_fov
- disp_numiterations
- dsp_off
- fog_override
- g_debug_ragdoll_visualize
- hidehud
- host_sleep Force the host to sleep a certain number of milliseconds each frame.
- mat_camerarendertargetoverlaysize
- mat_drawflat
- mat_drawwater
- mat_fillrate
- mat_forcedynamic
- mat_frame_sync_enable
- mat_frame_sync_force_texture Force frame syncing to lock a managed texture.
- mat_fullbright
- mat_luxels
- mat_measurefillrate
- mat_normalmaps
- mat_normals
- mat_reversedepth
- mat_showcamerarendertarget
- mat_showframebuffertexture
- mat_showwatertextures
- mat_stub
- mat_viewportscale debugging viewport scale
- mat_wireframe
- net_blockmsg Discards incoming message: <0|1|name>
- net_droppackets Drops next n packets on client
- net_fakelag Lag all incoming network data (including loopback) by this many milliseconds.
- net_fakeloss Simulate packet loss as a percentage (negative means drop 1/n packets)
- net_synctags Insert tokens into the net stream to find client/server mismatches.
- next Set to 1 to advance to next frame ( when singlestep == 1 )
- particle_simulateoverflow Used for stress-testing particle systems. Randomly denies creation of particles.
- pwatchent Entity to watch for prediction system changes.
- pwatchvar Entity variable to watch in prediction system for changes.
- r_3dsky Enable the rendering of 3d sky boxes
- r_ambientlightingonly Set this to 1 to light models with only ambient lighting (and no static lighting).
- r_aspectratio
- r_ClipAreaPortals
- r_colorstaticprops
- r_debugcheapwater
- r_debugrandomstaticlighting Set to 1 to make all static lighting red for debugging. Must restart for change to take affect.
- r_DispBuildable
- r_DispUseStaticMeshes High end machines use static meshes. Low end machines use temp meshes.
- r_DispWalkable
- r_DrawBeams
- r_drawbrushmodels Render brush models.
- r_drawclipbrushes Draw clip brushes
- r_drawdecals Render decals.
- r_DrawDisp Toggles rendering of displacment maps
- r_drawentities
- r_drawfullskybox
- r_drawleaf Draw the specified leaf.
- r_drawlightcache 0: off 1: draw light cache entries 2: draw rays
- r_drawlightinfo
- r_drawlights
- r_DrawModelLightOrigin
- r_drawmodelstatsoverlay
- r_drawmodelstatsoverlaydistance
- r_drawopaquerenderables
- r_drawopaqueworld
- r_drawothermodels
- r_drawparticles Enable/disable particle rendering
- r_DrawPortals
- r_DrawRain Enable/disable rain rendering.
- r_drawrenderboxes
- r_drawropes
- r_drawskybox
- r_drawsprites
- r_drawstaticprops
- r_drawtranslucentrenderables
- r_drawtranslucentworld
- r_drawvgui Enable the rendering of vgui panels
- r_drawviewmodel
- r_drawworld Render the world.
- r_eyewaterepsilon
- r_farz Override the far clipping plane. -1 means to use the value in env_fog_controller.
- r_flashlightconstant
- r_flashlightfar
- r_flashlightfov
- r_flashlightlinear
- r_flashlightlockposition
- r_flashlightnear
- r_flashlightoffsetx
- r_flashlightoffsety
- r_flashlightoffsetz
- r_flashlightquadratic
- r_flashlightvisualizetrace
- r_lightcachecenter
- r_lockpvs Lock the PVS so you can fly around and inspect what is being drawn.
- r_mapextents Set the max dimension for the map. This determines the far clipping plane
- r_modelwireframedecal
- r_newflashlight
- r_nohw
- r_nosw
- r_novis Turn off the PVS.
- r_PortalTestEnts Clip entities against portal frustums.
- r_shadowwireframe
- r_showenvcubemap
- r_skybox Enable the rendering of sky boxes
- r_VehicleViewClamp
- r_visualizelighttraces
- r_visualizelighttracesshowfulltrace
- r_visualizetraces
- singlestep Run engine in single step mode ( set next to 1 to advance a frame )
- snd_obscured_gain_dB
- snd_show Show sounds info
- snd_showstart
- snd_visualize Show sounds location in world
- vcollide_wireframe
- vgui_drawtree Draws the vgui panel hiearchy to the specified depth level.
- viewmodel_fov

