[Register] [582611 Members] [4137 Online; 235 Members, 3902 Guests]  
Half-Life 2
File Search


Click Here for Advanced Search Options




Unlimited Free File Hosting


 » About HL2Files
 » Affiliates Links
 » Server Sponsors
 » Headcrab Forums
 » HL2Files Gameservers
 » HL2Files Staff
 » Join the team!



 » Mod Profile Center
 » Server Profile Center


 » News
 » News Headlines
 » News Archive
 » Submit News


 » File Browser
 » File Search
 » Submit Files


 » Submit PotD
 » PotD Archive
 » Top 100 worst PotD's


 » Downloads
 » Key Binding
 » FPS/Lag Fixes


 » Gameplay Movie #1
 » Gameplay Movie #2
 » Gameplay Movie #3
 » Gameplay Movie #4
 » Gameplay Movie #5


 » SP Cheats
 » NPC Guide
 » Downloads
     - Demo
     - Maps
     - Media
     - Models
     - Mods
     - Skins
     - Utilities
     - Video
     - Wallpapers
     - More...
 » FAQ
 » Overview
 » Requirements
 » Screenshots


 » Downloads
     - AMX Mod X
     - MetaMod
     - Mods
 » Earth Special Forces
     - v1.x Files
     - v1.2.x Files
     - Alpha Release Files


 » Downloads
     - Maps
     - Media
     - Models
     - Mods
     - Skins
     - Sound Packs
     - More...


 » Links
 » Valve HQ Visits
 » Forums
     - HL General
     - HL 2 General
     - CS Series
     - Modding & Editing
     - Mapping, Modeling
       & Skinning
     - Clan Forum
     - Problems & Help
     - Rants & Raves

 » Hosted Sites List





Mod DB Top 100 Mod DB Top 100



  Half-Life 2 NPC Spawning Guide By CakeBomb - Articles
  Posted by: azzkiker on 12-21-2004 @ 20:13
This News Item has been viewed 11063 times!
CakeBomb has sent in this useful Half-Life 2 NPC spawning guide.

The Basics

To spawn an npc (with a few exceptions), look at the area of ground where you want it to spawn, then open up the console (~ key for most, below esc for all) and type "npc_create [npc name]". You can also spawn them aimed away from you using npc_create_aimed, but I haven't been able to make this command work without having an npc of the same type spawned normally first.

To give your npcs weapons, you have to use the npc_create_equipment command. If you wanted to spawn alyx with a shotgun for instance, you'd type "npc_create_equipment weapon_shotgun; wait; npc_create npc_alyx". Once you've set npc_create_equipment to one weapon, every npc you create will be created with that weapon until you change it.

To bind a spawning command to a key, type "bind "[key]" "[command]"".

Now you can create some huge zombies vs antlions vs combine vs alyx clones battles. When positioning troops for battle, type "ai_disable" to stop them fighting until you're done positioning. Type it again to turn ai back on.


Fun

NPCs all have inputs which you can activate using the ent_fire command. Some inputs are common to all NPCs, some are unique to one or two NPCs. To list all the inputs (and outputs, although I don't know if they're much use) of an NPC, type "ent_info [npc name]". As far as I can see, all the inputs listed above setrelationships are specific to certain NPCs.

If you want to actually input something to an NPC, you have to name it first. To do this, type "ent_setname [name]". Once you've named an npc, you can then type "ent_fire [name] [input]" and do cool stuff like set them on fire.

To set things on fire, type "ent_setname [name]; wait; ent_fire [name] ignite". I found that code posted by somebody on a forum and it made me want to find out other similar things I could do, and find out I did.

A couple of other useful global inputs are kill and sethealth. There's also a skin input which I'm guessing changes the model or textures but I have no idea how to use it, so if anybody can help with that it'd be much appreciated.

There are more things to input to than NPCs. Type "ent_fire " and a list of non-NPC entities with inputs will appear under the console. I think these differ from level to level, and they let you do things like stopping the antlions spawning at the beginning of Highway 17.

NPC List

Where inputs are blank I've found nothing useful, but I might have missed something (or I might have omitted something you would have found useful).

Combine

Footsoldiers

Combine Soldier: npc_combine_s

Metrocop: npc_metropolice ____ Inputs: enablemanhacktoss - I haven't been able to get this to work. Maybe you'll have better luck.

Sniper: npc_sniper

Vehicles
All of these remain stationary
For these use give rather than npc_create. They will spawn above you, rather than underground/inside the ground.

Strider: npc_strider ____ Inputs: setcannontarget - kills things - usage "ent_fire [name of strider] setcannontarget [name of target]" | setminiguntarget - useless, aims at feet of target ____ Notes: Targets must be named using ent_setname. On some levels you have to noclip upwards a little to spawn a strider because it will sink into the ground otherwise. If a strider impales an antlion guard it will fly away.

Dropship: npc_combinedropship ____ Notes: Lots of inputs, the ones I tried didn't work. Test out more if you can be bothered.

Gunship: npc_combinegunship ____ Inputs: dogroundattack - shoots a laser at the ground directly beneath it. Will continue to do so as long as enemies of the combine are beneath it.

Helicopter: npc_helicopter ____ Inputs: dropbomb ____ Notes: Lots of inputs, lots crashed the game. Test out more if you can be bothered.

Misc
Scanners and manhacks are spawned on the near side of the wall pointed at

Scanner: npc_cscanner ____ Inputs: equipmine | deploymine | disablespotlight | inspecttargetspotlight - usage "ent_fire [name of scanner] inspecttargetspotlight [name of target] | inspecttargetphoto | followtarget | setflightspeed ____ Notes: Targets must be named using ent_setname.

Manhack: npc_manhack

Rollermine: npc_rollermine ____ Inputs: respondtoexplodechirp - makes it explode

Stalker: npc_stalker ____ Notes: Does nothing but waddle around a bit. Shot me with a laser once in the three times I spawned one. Crashes game when killed. Not recommended.

Floor turret: npc_turret_floor ____ Inputs: toggle | enable | disable

Ceiling turret: npc_turret_ceiling ____ Inputs: toggle | enable | disable


Wildlife

Antlions

Antlion: npc_antlion ____ Inputs: bugbait - buggy. will alternately attack you and love you. | burrow | unburrow

Antlion Guard: npc_antlionguard ____ Inputs: setchargetarget - usage "ent_fire [antlion guard name] setchargetarget [target name]" | clearchargetarget | setshovetarget | ragdoll - makes it die ____ Notes: Targets must be named using ent_setname.

Zombies and Headcrabs

Zombie: npc_zombie

Fast Zombie: npc_fastzombie

Poison Zombie: npc_poisonzombie

Zombie Torso: npc_zombie_torso

Headcrab: npc_headcrab ____ Inputs: burrowimmediate | unburrow

Fast Headcrab: npc_headcrab_fast

Poison Headcrab: npc_headcrab_poison

Birds

Crow: npc_crow
Pigeon: npc_pigeon
Seagull: npc_seagull


Allies

Vortigaunt: npc_vortigaunt

Citizen: npc_citizen ____ Inputs: giveweapon - usage "ent_fire [name of citizen] [weapon {eg weapon_shotgun}]" | setmedic | setammoresupplier | setreadiness


Characters

setexpressionoverride is an input which allows you to make a character enact any scene. The usage is "ent_fire [character name] setexpressionoverride [file path of scene]". For example, to make alyx perform the gman's closing speech, you would name alyx alyx and type "ent_fire alyx setexpressionoverride scenescitadelgman_out". To find scenes, look through the half-life 2 content gcf.

Alyx: npc_alyx ____ Inputs: setreadiness | outsidetransition - places her in front of you | setexpressionoverride

Barney: npc_barney ____ Inputs: setreadiness | outsidetransition - places him in front of you | setexpressionoverride

Breen: npc_breen ____ Inputs: ____ setexpressionoverride

Dog: npc_dog ____ Inputs: setexpressionoverride ____ Notes: There are lots of inputs to do with playing catch that I couldn't get to work properly. Dog's AI without
scripting is "run away".

Eli: npc_eli ____ Inputs: setexpressionoverride ____

Gman: npc_gman ____ Inputs: setexpressionoverride

Kleiner: npc_kleiner ____ Inputs: setexpressionoverride

Father Grigori: npc_monk ____ Inputs: setexpressionoverride | perfectaccuracy

Mossman: npc_mossman ____ Inputs: setexpressionoverride

I was saddened to find that Colonel Cubbage was just an npc_citizen, so he can't be sent into battle.


Those are all the npcs I currently know of (other than useless ones). To find the name of an npc while playing you can type "ent_show_response_criteria" and it'll come up with their name (along with some other stuff if developer is set to verbose). You can also find npcs in hammer, in the entity dropdown list.

I have no idea how to spawn explosive barrels etc or whether it's even possible, but hopefully someone will find a way.

Weapon List

This is probably incomplete, but the main focus of this guide is spawning npcs and there are already loads of weapon lists out there anyway, so here are the ones I can recall offhand.

Crowbar: weapon_crowbar
Gravity Gun: weapon_physcannon
Pistol: weapon_pistol
Revolver: weapon_357 (citizens won't use)
Machine Gun: weapon_smg1
Overwatch Rifle: weapon_ar2
Shotgun: weapon_shotgun
Crossbow: weapon_crossbow (combine and citizens can't use)
Rocket Launcher: weapon_rpg
Alyx's Gun: weapon_alyxgun
Grigori's Shotgun: weapon_annabelle
Stun Baton: weapon_stunstick



          Next News Post 12-21-2004 @ 20:23 - The Masamune Project Releases New Concept Art
          Previous News Post 12-21-2004 @ 20:00 - Half-Life: Warzone Mod Update

Average User Rating: 8.9
Number of Votes: 22

E-Mail to FriendSave to del.icio.usStumble It!Share on FacebookFark It!


User Comments  
The following comments are owned by the user that posted them. Half-Life 2 Files is not responsible for their content.

Total comments: 4 | Last comment: 12-07-2007 at 18:00

 #1 - Ironic... - Posted by: Dark_Swordmaster (Member) on 12-22-2004 at 02:59
It's rather that this was posted the day after I had gone expirementing on my own. Nevertheless, good work and now I know more stuff to do *cough* Flaming combine *cough*

 #2 - Explosive Barrels - Posted by: Guest (195-74-118-46.adsl.entanet.co.uk) on 12-24-2004 at 04:33
I haven't tried this out yet, I just thought I'd say that I'm almost certain that barrels will not be spawnable, since - *****uming that Valve made them the same way I would (map editor as opposed to model, the textures are there for it) - they were BSP-type objects instead of models. Sorry to disappoint frown But you never know, someone might prove me wrong...? Anyway, fantastic work, shows a lot more dedication than I would ever be able to summon up. Thanks!!

 #3 - Posted by: taiiat (Member) on 11-03-2007 at 11:00
great, i didnt know most of the spawning commands, now i can have more fun with armies of combine soldiers!! since campaigns and multiplyr gets boring fast.

 #4 - Posted by: tfcblackout (Member) on 12-07-2007 at 18:00
sweet I got all my NPCs from here wink. Thanks cakebomb and AWesome job! cool Rock



When posting comments, you must follow these rules:
  1. No "Yay I got First Post!" posts, no exceptions and no matter what other content the post has!
  2. No Pornographic Material. Any sexually oriented imagery or links to such content will not be tolerated.
  3. No Warez or Illegal Software. This includes linking to software, posting about it, and suggesting to get it.
  4. No Cursing or Swear words. We encourage you to use our comment sections as a forum to debate files, news, etc., but please use proper adjectives to express yourself. We will not tolerate abuse upon another member or author.
  5. No Attacks / Retaliation of any kind against a member, or group of members.
  6. Please do not advertise for other sites or forums here.
  7. Maximum of 3 smileys per regular member.
The high interactivity of this site should be considered a luxury, not a right. If you cannot follow these simple rules, you can and will be warned or banned from the comments, site or the entire network for any period of time.
Now enjoy yourself and behave!



  • Register: To get your own Username, click here!
  • Forgot your password? click here!
  • You can use UBB here!
Username:     Password:  
Remember my username and password
Comment Title:
Your comments for this News please:

Game News

 Latest News
 » Tf2 Blog: Trading Ca..
 » TF2 blog: Heavy next..
 » Rumour: Heavy Update..
 » Half Life2: Episode ..
 » StargateTC 2 - It's ..
 » TF2 Blog: The Medigu..
 » Dystopia June Update
 » Combine Destiny 2: J..
 » Team Fortress 2 Upda..
 » Iron Grip: The Oppre..

 Latest Files
 » Stargate TC2 .. (Beta 1)
 » FakeFacotry's CM8 .. (1)
 » Half-Life 2: SP .. (1.0)
 » Portal: Tech Chamber..
 » Half-Life 2: SP Forw..
 » Team Fortress .. (0.950)
 » CS: Source Forest In..
 » CS: Source Wrait.. (1.0)
 » AD CSS Weapon Balanc..
 » Half-Life: Archi.. (1.0)

 Affiliates
Link to Us!
Link to HalfLife2Files.com
















Creativemapping.nl, The dutch mapping site










Resident Evil Twilight for Half-Life 2

 The Network
 » Gaming Today
 » Game Demos
 » Trailer Videos
 » Game Patches
 » Act of War
 » Age of Empires 3
 » Age of Empires 3:
      The Warchiefs
 » Age of Mythology
 » Aliens vs Predator
 » Aliens vs Predator 2
 » America's Army
 » Armada
 » Armada 2
 » Armed Assault
 » Battlefield 1942
 » Battlefield 2
 » Battlefield 2142
 » Battlefield Vietnam
 » Bet on Soldier
 » Black & White 2
 » Breed
 » Bridge Commander
 » Brothers in Arms
 » Brothers in Arms 2
 » Call of Duty
 » Call of Duty 2
 » Civilization IV
 » Command & Conquer:
      Generals
      Red Alert 2
      Renegade
      Tiberian Sun
      Tiberium Wars
 » Company of Heroes
 » Crysis
 » CS: Condition Zero
 » Counter-Strike: Source
 » Dark Messiah
 » Dawn of War
 » Dawn of War:
      Dark Crusade
 » Dawn of War:
      Winter Assault
 » Day of Defeat: Source
 » Deus Ex
 » Deus Ex 2
 » Devastation
 » Doom 3
 » Elite Force
 » Elite Force 2
 » Enemy Territory: Quake Wars
 » Far Cry
 » Far Cry 2
 » F.E.A.R.
 » Flight Simulator X
 » Front Lines: Fuel of War
 » Gears of War
 » Ghost Recon: AW
 » GTA 3
 » GTA San Andreas
 » GTA Vice City
 » Half-Life
 » Half-Life 2
 » HL: Counter-Strike
 » Halo
 » Halo 2
 » Jedi Knight 2
 » Jedi Knight 3
 » Joint Operations
 » Knights of the Old Republic
 » KotOR II: The Sith Lords
 » LOTR: Battle 4 Middle Earth
 » Lord of the Rings Online
 » Medal of Honor
 » Medal of Honor:
      Pacific Assault
 » Neverwinter Nights 2
 » Operation Flashpoint
 » Operation Flashpoint 2
 » Portal
 » Prey
 » Quake 4
 » Return to Castle
      Wolfenstein
 » RoN 2: Rise of Legends
 » Serious Sam 2
 » Sins of a Solar Empire
 » Soldier of Fortune
 » Soldier of Fortune 2
 » Soldier of Fortune 3
 » S.T.A.L.K.E.R.
 » Star Trek: Legacy
 » Star Wars Battlefront
 » Star Wars Battlefront 2
 » Star Wars Empire at War
 » StarCraft II
 » Starfleet Command III
 » Stargate Worlds
 » Supreme Commander
 » Team Fortress 2
 » The Elder Scrolls III
 » The Elder Scrolls IV
 » The Movies
 » The Sims
 » The Sims 2
 » The Sims Online
 » Tribes Vengeance
 » TrackMania Nations
 » TrackMania Sunrise
 » TrackMania United
 » Unreal Tournament
 » Unreal Tournament 2003
 » Unreal Tournament 2004
 » Unreal Tournament 3
 » Warcraft III
 » Wolfenstein:
      Enemy Territory
 » World in Conflict
 » World of Warcraft
 » FileFront Gaming Forums

 Partners
 » Nintendo DS
 » Family Gaming eBook
 » Feng Shui Life Tips
 » Increase Ad Revenue
 » PlanetMirror
You got served by in 0.3305 seconds using 11 MySQL queries and 12 includes
Copyright © 2008 FileFront, Inc. All rights reserved.
Design by Jos Jongejan aka Pro-Filer & Delta. Use of Half-Life 2 Files materials is subject to certain Terms & Conditions.
TM & © 2008 VALVe. All rights reserved. Half-Life and Half-Life 2 are trademark or registered trademarks of Valve Software, Inc. in the U.S. and/or other countries.
Ziff Davis Media: DL.TV | PC Mag | eWEEK | Extreme Tech | Contact Us | Help
game patchesCopyright © 2002-2007 Ziff Davis Publishing Holdings Inc. All Rights Reserved. FILEFRONT, 1UP and the 1UP.COM logo are registered trademarks of Ziff Davis Publishing Holdings Inc. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Media Inc. is prohibited. Use of this site is governed by our Privacy Policy, Ziff Davis Terms of Use, and FileFront AUP.