Open Steam, go to your "Play Games" menu, and select Half-Life 2. Right click on it and select "Properties". Click the Launch Options button, then type "-console". Click "Ok", then close. Double click Half-Life 2 to start the game. Once it is loaded and you are playing, press the ~ key to bring up the console. Then, enter "sv_cheats 1" and press [Enter]. You can now enter the following codes at the console window. Also, any code can be used as a command line parameter by prefixing it with the "-" character. Note: For games that were downloaded from Steam, to use cheats in single player mode, start the game with the "-applaunch -dev -tconsole" command line parameter. Result Cheat Code God mode (server only) god Walk through objects (server only) noclip See through walls mat_depthbias_normal 1 All weapons impulse 101 Spawn a jeep impulse 82 Spawn an air boat impulse 83 Ignored by NPCs notarget Load indicated map map [map name] Spawn indicated item give [item name] Reduce your health buddha Damage player hurtme [amount] List maps maps Disable dead bodies going through each other cl_ragdoll_collide 1 Toggle developer mode; 2 is verbose developer [0-2] Toggle picker mode picker Toggle HUD display cl_drawhud [0 or 1] Toggle HUD display cl_enablehud [0 or 1] Toggle frame rate display cl_showfps [0 or 1] Enable mouse look +mlook Show crosshairs hud_quickhelp/text? 1 Sets the size of carried weapon; 54 is default viewmodel_fov [number] Execute script file exec [filename] Creates an NPC; only where NPC are allowed npc_create [name] Create an NPC aiming away from player npc_create_aimed Move player to indicated location; requires sv_cheats 1 setpos [coordinates] Set view to indicated pitch yaw; requires sv_cheats 1 Setang [value] Set gravity value sv_gravity [number] Set minimum stopping speed when on ground sv_stopspeed [number] Set world friction sv_friction [number] Set bounce multiplier for physically simulated objects collision sv_bounce [number] Set maximum velocity of any moving object sv_maxvelocity [number] Set vertical view fixup when eyes are near water plane sv_waterdist [number] Slow time; 1 is default cl_phys_timescale [0.00-1.00] Change air density air_density [number] Set length of explosion confusion dsp_explosion_effect_duration [number] Toggle bounding-boxes debug mode; red: ignore damage, white: respond to damage, green: health prop_debug Toggle reporting missing .WAV files sv_soundemitter_filecheck Limits the number of texture units; 0 lets the game decide mat_numtextureunits [number] Move player to indicated location setpos [coordinates] Set view to indicated pitch yaw Setang [value] Wire frame models mat_wireframe1 Only wireframe objects effected by physics vcollide_wireframe 1 Toggle bump mapping mat_fastnobump [0 or 1] No weapon model onscreen impulse 200 Deleted targeted object or person impulse 203 Show game triggers showtriggers_toggle Show normal maps mat_normalmaps 1 Show surface materials mat_normals 1 Black and white screen mat_yuv 1 Color screen mat_yuv 0
I still have not seen a proper explanation of how to spawn a friendly turret. None of the guides I've read so far have worked.
I just re-installed Steam after not using it for a couple/few years and re-downloaded HL2 cause I wanted to play again.
But back then, when I played the game from the release date I got into all the console commands and got the source code (not their "source" - just the regular source code to complie and make your own mod, etc.) - and even made a few levels/mods and stuff.
I tried pretty hard to create a friendly turret - and looked around a lot at the time... and I came to the conclusion that it's not possible, or at least *very* difficult.
It's possible I'm wrong - but I think they're basically scripted and augmented with code to work properly, so you can't just spawn one.
And.. hey, it's been years, and I haven't checked again since then - so maybe someone *has* figured it out. Good luck, I hope you find some way - if you do, maybe post back here - but... no worries.
i know this is an old topic but if anyone wants cheats and achievements do buddha for health makes you basicly invincible and the bind givecurrentammo to a key and as long as you have 1 ammo you can refill it back to max
[Edited by red1red2red3, 4/1/2011 11:27:11 PM]
--------------------------------------------------------------------------- you got to love the gaming world