|
|
(69 intermediate revisions by 35 users not shown) |
Line 1: |
Line 1: |
| [http://dzlajici.fhpanel.com/styles/playboy-picture.html playboy picture galleries] [http://dreamacammarata.totalh.com/web/voyage-maroc.htm voyage maroc] [http://dzlajici.fhpanel.com/styles/bosoms.html bosoms] [http://lolagilstrap.totalh.com/styles/postal-zip-codes.html postal zip codes] [http://rinujamta.fhpanel.com/content/lotus-flower.html lotus flower] [http://firesmith.interfree.it/free-asian-porn.htm free asian porn clips] [http://apockrif.interfree.it/description/personal-history.html personal history question] [http://nicolaich13.interfree.it/web/arbonne-international.htm arbonne international] [http://capara.interfree.it/small/arginine-hcl-l.html arginine hcl l] [http://nixadigogu.fhpanel.com/view/va.htm va] [http://nixadigogu.fhpanel.com/view/world-education.htm world education services chicago] [http://indiahobart.totalh.com/data/highschool-porn.html highschool porn] [http://nixadigogu.fhpanel.com/view/summer-babes.htm summer babes] [http://firesmith.interfree.it/piss-and-sex.htm piss and sex] [http://nixadigogu.fhpanel.com/view/seethrough.htm seethrough] [http://cybertyger.interfree.it/directory/the-huns-yellow.htm the huns yellow pages] [http://tyeshamacgregor.totalh.com/view/80s-comedies.htm 80s comedies] [http://capara.interfree.it/small/peek-a-boo-lingerie.html peek a boo lingerie] [http://indiahobart.totalh.com/data/jan-dvorak.html jan dvorak] [http://tyeshamacgregor.totalh.com/view/three-piano-sonatas.htm three piano sonatas] [http://xuzilowga.fhpanel.com/new/ll-bean-corporate.html ll bean corporate] [http://valerieller.totalh.com/nba-computer-wallpaper.html nba computer wallpaper] [http://indiahobart.totalh.com/data/wet-ebony-teen.html wet ebony teen] [http://nixadigogu.fhpanel.com/view/indo-european.htm indo european roots] [http://lolagilstrap.totalh.com/styles/fisk-sc-johnson.html fisk sc johnson we energies] [http://firesmith.interfree.it/free-playboy.htm free playboy videos] [http://nixadigogu.fhpanel.com/view/us-postal-service.htm us postal service] [http://tianapereira.totalh.com/web/llc.html llc] [http://capara.interfree.it/small/grannies-pussy.html grannies pussy] [http://xuzilowga.fhpanel.com/new/honey-wilder.html honey wilder] [http://pegradcliffe.totalh.com/web/asian-cum.html asian cum] [http://tyeshamacgregor.totalh.com/view/gay-anal-sex.htm gay anal sex pain] [http://rinujamta.fhpanel.com/content/buy-fragrance-beads.html buy fragrance beads online] [http://cybertyger.interfree.it/directory/deep-ass-fucking.htm deep ass fucking] [http://indiahobart.totalh.com/data/the-used-lyrics.html the used lyrics] [http://rinujamta.fhpanel.com/content/girl-on-girl-hentai.html girl on girl hentai] [http://nixadigogu.fhpanel.com/view/gigantic-tits.htm gigantic tits] [http://apockrif.interfree.it/description/ejb-example-code.html ejb example code] [http://cybertyger.interfree.it/directory/norwich-bulletin.htm norwich bulletin] [http://firesmith.interfree.it/royal-carribean.htm royal carribean cruise] [http://tyeshamacgregor.totalh.com/view/rpg-maker-2000.htm rpg maker 2000] [http://firesmith.interfree.it/roof-repair.htm roof repair] [http://dreamacammarata.totalh.com/web/money-lenders.htm money lenders] [http://nixadigogu.fhpanel.com/view/application-patent.htm application patent search] [http://firesmith.interfree.it/hot-blondes-having.htm hot blondes having sex] [http://cybertyger.interfree.it/directory/annuity-appointments.htm annuity appointments] [http://indiahobart.totalh.com/data/girl-cam.html girl cam] [http://nixadigogu.fhpanel.com/view/college-girl.htm college girl] [http://tyeshamacgregor.totalh.com/view/anti-spy-tool-bar.htm anti spy tool bar] [http://lavondamifflin.totalh.com/digimon-tamers.html digimon tamers] [http://xuzilowga.fhpanel.com/new/cruise-vacation.html cruise vacation] [http://lavondamifflin.totalh.com/winx-club-xxx.html winx club xxx] [http://rinujamta.fhpanel.com/content/boy-toys.html boy toys] [http://kerriemiddlebro.totalh.com/articles/focus-factor.html focus factor] [http://nixadigogu.fhpanel.com/view/princess-fiona.htm princess fiona] [http://dreamacammarata.totalh.com/web/samurai-mempo.htm samurai mempo] [http://dreamacammarata.totalh.com/web/insurance-lead.htm insurance lead life senior] [http://apockrif.interfree.it/description/insufficient-attributes.html insufficient attributes were given to create an object] [http://xuzilowga.fhpanel.com/new/meat-hole.html meat hole] [http://annamariasamani.totalh.com/park-junior-school.html park junior school] [http://dreamacammarata.totalh.com/web/custom-furniture.htm custom furniture] [http://tianapereira.totalh.com/web/sodomize.html sodomize] [http://annamariasamani.totalh.com/tanya-harding-nude.html tanya harding nude] [http://capara.interfree.it/small/map-of-america.html map of america] [http://annamariasamani.totalh.com/female-girls.html female girls kissing] [http://lolagilstrap.totalh.com/styles/cock-sucking.html cock sucking whores] [http://xuzilowga.fhpanel.com/new/lottery-uk.html lottery uk] [http://dzlajici.fhpanel.com/styles/motorcycle-covers.html motorcycle covers] [http://nixadigogu.fhpanel.com/view/soft-perfect.htm soft perfect breasts] [http://annamariasamani.totalh.com/teacher-fucking.html teacher fucking student porn] [http://rinujamta.fhpanel.com/content/girls-underwater.html girls underwater] [http://annamariasamani.totalh.com/angie-everhart.html angie everhart nude] [http://annamariasamani.totalh.com/mens-jewelry.html mens jewelry] [http://nixadigogu.fhpanel.com/view/richland-county.htm richland county ohio courts] [http://apockrif.interfree.it/description/chuck-berry.html chuck berry] [http://cybertyger.interfree.it/directory/ice-wine.htm ice wine] [http://tianapereira.totalh.com/web/adult-baby-nursery.html adult baby nursery] [http://rinujamta.fhpanel.com/content/alaskan-cruise.html alaskan cruise] [http://zpkuguh.fhpanel.com/lolita-cp.html lolita cp] [http://dreamacammarata.totalh.com/web/public-blow-job.htm public blow job] [http://firesmith.interfree.it/stacey-sanches.htm stacey sanches] [http://tianapereira.totalh.com/web/nymphos.html nymphos] [http://nicolaich13.interfree.it/web/young-nudist-colony.htm young nudist colony] [http://xuzilowga.fhpanel.com/new/telecom-finance.html telecom finance] [http://kerriemiddlebro.totalh.com/articles/map-of-southwest.html map of southwest united states] [http://tyeshamacgregor.totalh.com/view/linkin-park-papercut.htm linkin park papercut] [http://zpkuguh.fhpanel.com/dvs-shoes.html dvs shoes] [http://xuzilowga.fhpanel.com/new/mod-freedom-force.html mod freedom force] [http://cybertyger.interfree.it/directory/grasshopper.htm grasshopper] [http://valerieller.totalh.com/disney-vacation.html disney vacation] [http://rinujamta.fhpanel.com/content/armor-for-sleep.html armor for sleep music code] [http://lolagilstrap.totalh.com/styles/dakota-county.html dakota county library] [http://apockrif.interfree.it/description/lucidity-techniques.html lucidity techniques] [http://zpkuguh.fhpanel.com/pictures-of-big.html pictures of big boobs] [http://nicolaich13.interfree.it/web/ukraine-model.htm ukraine model] [http://nicolaich13.interfree.it/web/toon-porno.htm toon porno] [http://tyeshamacgregor.totalh.com/view/career-search.htm career search] [http://zpkuguh.fhpanel.com/edmonton-room.html edmonton room and board] [http://annamariasamani.totalh.com/free-anime-yaoi.html free anime yaoi art gallery] [http://pegradcliffe.totalh.com/web/colletti-design.html colletti design] [http://xuzilowga.fhpanel.com/new/jackinworld.html jackinworld] [http://indiahobart.totalh.com/data/progression.html progression of hearing loss] [http://kerriemiddlebro.totalh.com/articles/news-slate.html news slate] [http://cybertyger.interfree.it/directory/scph1001.htm scph1001] [http://kerriemiddlebro.totalh.com/articles/fake-fireplace.html fake fireplace] [http://dzlajici.fhpanel.com/styles/jaime-pressly.html jaime pressly] [http://dreamacammarata.totalh.com/web/super-jumbo-loan.htm super jumbo loan] [http://tyeshamacgregor.totalh.com/view/coon-hounds.htm coon hounds] [http://indiahobart.totalh.com/data/male-teen-abs.html male teen abs] [http://zpkuguh.fhpanel.com/sex-tonight.html sex tonight] [http://valerieller.totalh.com/anime-school.html anime school girls] [http://kerriemiddlebro.totalh.com/articles/wildlife-pictures.html wildlife pictures] [http://lolagilstrap.totalh.com/styles/business-hosting.html business hosting] [http://dzlajici.fhpanel.com/styles/cho-hye-eun.html cho hye eun] [http://indiahobart.totalh.com/data/metallic-paint.html metallic paint] [http://xuzilowga.fhpanel.com/new/evil-skull-drawings.html evil skull drawings] [http://apockrif.interfree.it/description/little-house-on.html little house on the prairie] [http://dreamacammarata.totalh.com/web/big-breast-asian.htm big breast asian] [http://capara.interfree.it/small/free-gay-download.html free gay download clips] [http://pegradcliffe.totalh.com/web/jeff-paul.html jeff paul] [http://indiahobart.totalh.com/data/posing.html posing] [http://cybertyger.interfree.it/directory/lynette.htm lynette] [http://rinujamta.fhpanel.com/content/paul-stanley.html paul stanley] [http://kerriemiddlebro.totalh.com/articles/better-together.html better together] [http://xuzilowga.fhpanel.com/new/voluptuous-women.html voluptuous women] [http://kerriemiddlebro.totalh.com/articles/kristin-kreuk.html kristin kreuk] [http://pegradcliffe.totalh.com/web/fatty.html fatty] [http://lavondamifflin.totalh.com/metal-gear.html metal gear] [http://cybertyger.interfree.it/directory/manatees.htm manatees] [http://firesmith.interfree.it/christian-mingle.htm christian mingle] [http://dzlajici.fhpanel.com/styles/resorts-for-sale.html resorts for sale mn] [http://dzlajici.fhpanel.com/styles/bathrooms.html bathrooms] [http://dzlajici.fhpanel.com/styles/steam-bath.html steam bath] [http://nixadigogu.fhpanel.com/view/googli.htm googli] [http://lavondamifflin.totalh.com/mini-putt.html mini putt] [http://indiahobart.totalh.com/data/scholastic-books.html scholastic books] [http://pegradcliffe.totalh.com/web/teen-nude-art.html teen nude art] [http://tianapereira.totalh.com/web/long-dong-silver.html long dong silver] [http://capara.interfree.it/small/regina.html regina] [http://annamariasamani.totalh.com/street-fighter-xxx.html street fighter xxx] [http://indiahobart.totalh.com/data/secure-holdings.html secure holdings llc] [http://firesmith.interfree.it/robert-e-lee.htm robert e lee] [http://zpkuguh.fhpanel.com/ragbrai.html ragbrai] [http://rinujamta.fhpanel.com/content/tom-ford-for-gucci.html tom ford for gucci] [http://dreamacammarata.totalh.com/web/thoroughbred-partnerships.htm thoroughbred partnerships] [http://lolagilstrap.totalh.com/styles/crazy-people.html crazy people] [http://capara.interfree.it/small/nude-party.html nude party] [http://dreamacammarata.totalh.com/web/cherokee-north.htm cherokee north carolina] [http://cybertyger.interfree.it/directory/small-business.htm small business project management software] [http://kerriemiddlebro.totalh.com/articles/sailor-mercury.html sailor mercury hentai] [http://xuzilowga.fhpanel.com/new/flash-hentai.html flash hentai] [http://pegradcliffe.totalh.com/web/images-of-christmas.html images of christmas tree] [http://indiahobart.totalh.com/data/dawn-of-the-dead.html dawn of the dead] [http://nixadigogu.fhpanel.com/view/girl-scout-clip.htm girl scout clip art] [http://lavondamifflin.totalh.com/villas-ibiza.html villas ibiza] [http://indiahobart.totalh.com/data/square-root.html square root games] [http://kerriemiddlebro.totalh.com/articles/19nitten.html 19nitten] [http://nicolaich13.interfree.it/web/lyrics-standing.htm lyrics standing in line to see the show] [http://apockrif.interfree.it/description/bust-a-move.html bust a move] [http://tyeshamacgregor.totalh.com/view/apartment-city.htm apartment city rental sterling tx] [http://dzlajici.fhpanel.com/styles/pimped-out-rides.html pimped out rides] [http://nixadigogu.fhpanel.com/view/kids-playing.htm kids playing doctor] [http://indiahobart.totalh.com/data/orgy-parties.html orgy parties] [http://valerieller.totalh.com/age-cheryl-crow.html age cheryl crow] [http://apockrif.interfree.it/description/bedding-collection.html bedding collection] [http://dreamacammarata.totalh.com/web/hairy-cock.htm hairy cock] [http://nicolaich13.interfree.it/web/us-crime-rates.htm us crime rates] [http://xuzilowga.fhpanel.com/new/privacy-laws.html privacy laws] [http://annamariasamani.totalh.com/new-jersey-tickets.html new jersey tickets] [http://zpkuguh.fhpanel.com/variant-array-c.html variant array c] [http://lavondamifflin.totalh.com/matt-damon-nude.html matt damon nude] [http://annamariasamani.totalh.com/art-print.html art print] [http://apockrif.interfree.it/description/our-eyes-are-watching.html our eyes are watching god] [http://apockrif.interfree.it/description/michigan-fishing.html michigan fishing boats for sale] [http://apockrif.interfree.it/description/xxxspacegirls.html xxxspacegirls] [http://zpkuguh.fhpanel.com/woman-inserting.html woman inserting dildos] [http://indiahobart.totalh.com/data/nero-burner-7.html nero burner 7] [http://dzlajici.fhpanel.com/styles/prince-william.html prince william county government web site] [http://lavondamifflin.totalh.com/jeep-wrangler.html jeep wrangler accessories] [http://rinujamta.fhpanel.com/content/teacher-xxx.html teacher xxx] [http://firesmith.interfree.it/perfect-nipples.htm perfect nipples] [http://tianapereira.totalh.com/web/man-of-la-mancha.html man of la mancha] [http://kerriemiddlebro.totalh.com/articles/my-first-teacher.html my first teacher fuck] [http://zpkuguh.fhpanel.com/nato-intelligence.html nato intelligence] [http://tyeshamacgregor.totalh.com/view/cumonmarie.htm cumonmarie] [http://nicolaich13.interfree.it/web/scooter-dealer-uk.htm scooter dealer uk] [http://apockrif.interfree.it/description/animated-graphics.html animated graphics] [http://rinujamta.fhpanel.com/content/tnvgirls.html tnvgirls] [http://kerriemiddlebro.totalh.com/articles/nail-fungus.html nail fungus treatment] [http://valerieller.totalh.com/morgan-stanley-card.html morgan stanley card index] [http://nicolaich13.interfree.it/web/strawberry-shortcake.htm strawberry shortcake recipe] [http://xuzilowga.fhpanel.com/new/what-is-slate-stone.html what is slate stone] [http://rinujamta.fhpanel.com/content/dns-web-hosting.html dns web hosting] [http://kerriemiddlebro.totalh.com/articles/model-brooke.html model brooke burke] [http://dreamacammarata.totalh.com/web/mimosa.htm mimosa] [http://nicolaich13.interfree.it/web/galleries-of-teen.htm galleries of teen boys in underwear] [http://xuzilowga.fhpanel.com/new/amazon-rain-forest.html amazon rain forest] [http://firesmith.interfree.it/fourteen.htm fourteen] [http://nicolaich13.interfree.it/web/gated-community.htm gated community] [http://cybertyger.interfree.it/directory/massage-tips.htm massage tips]
| | {{lang|npc_zombie}} |
| {{wrongtitle|title=npc_zombie}}
| | {{tabs|npc_zombie|source=1|source2=1|custom1=monster_zombie (GoldSrc)|custom1alt=GoldSrc|custom2=monster_zombie (Half-Life: Source)|custom2alt=Half-Life: Source}} |
| | {{CD|CZombie|base=CAI_BlendingHost_CNPC_BaseZombie|file1=1}} |
| | {{this is a|model entity|name=npc_zombie|game=Half-Life 2 series}} |
| | [[File:zombie.jpg|right|Zombie]] |
| | These "classic" [[zombie]]s, being wonderfully slow and stupid, are best used in groups to swarm the player. While it is unlikely the player will view them as a real threat, they are a great way to add tension and benefit from working with other [[zombie]] types, such as the {{ent|npc_fastzombie}} or the {{ent|npc_poisonzombie}}. Some [[Ravenholm]] areas use as many as 4-5 zombies at a time. |
|
| |
|
| == Entity description ==
| | When advancing upon the player, zombies will knock small [[prop_physics|physics props]] that are blocking them at the player, with surprising force. |
| [[Image:zombie.jpg|frame|right|Zombie]] | |
| These "classic" Zombies, being wonderfully slow and stupid, are best used in groups to swarm the player. While it is unlikely the player will view them as a real threat, they are a great way to add tension and benefit from working with other zombie types, such as the [[npc_fastzombie|fast zombie]] or the [[npc_poisonzombie|poison zombie]]. In fact, some [[Ravenholm]] areas used as many as 4-5 of these zombies at a time.
| |
|
| |
|
| If the zombie's host body is sufficiently damaged, the controlling [[Npc_headcrab|headcrab]] may detach and attack on its own. | | If the zombie's host body is sufficiently damaged, the controlling {{ent|npc_headcrab}} may detach and attack independently. |
| | {{NPCNote}} |
|
| |
|
| {{npcnote}} | | ==Dedicated [[Console Variable]]s== |
| | {{varcom|start}} |
| | {{varcom|sk_zombie_health|50|int|A zombie's spawn health}} |
| | {{varcom|sk_zombie_dmg_one_slash|10|int|Zombie melee damage}} |
| | {{varcom|sk_zombie_dmg_both_slash|25|int|Zombie melee damage (Not used.)}} |
| | {{varcom|end}} |
|
| |
|
| == Dedicated CVARs ==
| | {{note|The zombie will only deal the damage set in ''sk_zombie_dmg_one_slash'' for all of its attacks (even when using both hands). This may be due to a simple mistype in ''npc_BaseZombie.cpp'' that can easily be corrected.}} |
| * '''sk_zombie_health'''
| |
| : <integer> A zombie's spawn health
| |
| * '''sk_zombie_dmg_one_slash'''
| |
| : <integer> Melee damage
| |
| * '''sk_zombie_dmg_both_slash'''
| |
| : <integer> Melee damage
| |
|
| |
|
| == Keyvalues == | | == Keyvalues == |
| * {{kv basenpc}}
| | {{KV Targetname}} |
| | {{KV BaseNPC}} |
| | |
| ==Flags== | | ==Flags== |
| * {{fl basenpc}}
| | {{Fl BaseNPC}} |
| | |
| ==Inputs== | | ==Inputs== |
| * {{i basenpc}}
| | {{I BaseNPC}} |
| | |
| ==Outputs== | | ==Outputs== |
| * {{o basenpc}}
| | {{O|OnCrab {{only|{{Mapbase}}}}|Fired when this NPC spawns a live [[Npc_headcrab|headcrab]]. {{activator|headcrab}}}} |
| | {{O|OnSwattedProp {{only|{{Mapbase}}}}|Fired when this NPC swats a [[physics object]], such as [[prop_physics]] or [[func_physbox]]. {{activator|swatted object}}}} |
| | {{O BaseNPC}} |
| | |
| | [[Category:C++]] |
| | == Replace zombie blood with human blood == |
| | In {{file|src/game/server/hl2/npc_zombie.cpp}}, go to line 279. |
| | |
| | <source lang="cpp"> |
| | #ifdef HL2_EPISODIC |
| | SetBloodColor ( BLOOD_COLOR_ZOMBIE ); |
| | </source> |
| | |
| | Modify it to look like this: |
| | <source lang="cpp"> |
| | #ifdef HL2_EPISODIC |
| | SetBloodColor ( BLOOD_COLOR_RED ); |
| | </source> |
| | |
| | == Remove headcrab from zombies == |
| | How to remove headcrab from zombies. |
| | |
| | In {{file|src/game/server/hl2/npc_zombie|cpp}} look for <code>void CZombie::Spawn( void )</code> then find this line. |
| | <source lang="cpp"> |
| | m_fIsHeadless = false; |
| | </source> |
| | |
| | and simply change it to this |
| | <source lang="cpp"> |
| | m_fIsHeadless = true; |
| | </source> |
| | |
| | Now open {{file|src/game/server/hl2/npc_BaseZombie|cpp}} and change the <code>HeadcrabRelease_t CNPC_BaseZombie::ShouldReleaseHeadcrab( const CTakeDamageInfo &info, float flDamageThreshold )</code> section to look like this: |
| | <source lang="cpp"> |
| | //----------------------------------------------------------------------------- |
| | // Purpose: A zombie has taken damage. Determine whether he release his headcrab. |
| | // Output : YES, IMMEDIATE, or SCHEDULED (see HeadcrabRelease_t) |
| | //----------------------------------------------------------------------------- |
| | HeadcrabRelease_t CNPC_BaseZombie::ShouldReleaseHeadcrab( const CTakeDamageInfo &info, float flDamageThreshold ) |
| | { |
| | return ( m_iHealth <= 0 && m_fIsTorso && IsChopped( info ) ) ? RELEASE_RAGDOLL_SLICED_OFF : RELEASE_NO; |
| | } |
| | </source> |
| | |
| | Alternatively, if you are using {{mapbase|4.1}}, replace the {{ent|npc_zombie}} entity with a {{ent|npc_zombie_custom}} entity and set "Headcrabless" to true |
|
| |
|
| == See also == | | == See also == |
| * [[npc_poisonzombie]] | | * {{ent|npc_poisonzombie}} |
| * [[npc_fastzombie]]
| | * {{ent|npc_fastzombie}} |
| * [[npc_zombie_torso]] | | * {{ent|npc_zombie_torso}} |
| | |
| {{otherlang:en}} | |
| {{otherlang:en:ru|Npc_zombie_(ru)}} | |
|
| |
|
| [[Category:Entities]] | | [[Category:Half-Life 2 NPCs|Z]] |
| [[Category:NPCs]]
| |
npc_zombie
is a model entity available in
Half-Life 2 series.
These "classic" zombies, being wonderfully slow and stupid, are best used in groups to swarm the player. While it is unlikely the player will view them as a real threat, they are a great way to add tension and benefit from working with other zombie types, such as the npc_fastzombie or the npc_poisonzombie. Some Ravenholm areas use as many as 4-5 zombies at a time.
When advancing upon the player, zombies will knock small physics props that are blocking them at the player, with surprising force.
If the zombie's host body is sufficiently damaged, the controlling npc_headcrab may detach and attack independently.
Cvar/Command |
Parameters or default value |
Descriptor |
Effect |
sk_zombie_health |
50 |
int
|
A zombie's spawn health |
sk_zombie_dmg_one_slash |
10 |
int
|
Zombie melee damage |
sk_zombie_dmg_both_slash |
25 |
int
|
Zombie melee damage (Not used.) |
Note:The zombie will only deal the damage set in sk_zombie_dmg_one_slash for all of its attacks (even when using both hands). This may be due to a simple mistype in npc_BaseZombie.cpp that can easily be corrected.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
or target
).
Also displayed in Hammer's 2D views and Entity Report.
BaseNPC keyvalues
CBaseCombatCharacter:
- Relationship (Relationship) <string> !FGD
- <string|targetname or classname> <string|disposition> <int|rank>
- Changes whether this entity likes or dislikes certain other things. Used like the ai_relationship entity, with this entity as the subject.
- Values for
disposition are:
D_HT : Hate
D_FR : Fear
D_LI : Like
D_NU : Neutral
- Physics Impact Damage Scale (physdamagescale) <float>
- Multiplier for damage amount when this entity is hit by a physics object. With a value of 0 the entity will take no damage from physics.
CAI_BaseNPC:
- Target Path Corner (target) <targetname>
- The path_corner that this NPC will move to after spawning.
- Squad Name (squadname) <string>
- NPCs that are in the same squad (i.e., have matching squad names) will share information about enemies and will take turns attacking and covering each other.
- Hint Group (hintgroup) <string>
- Hint groups are used by NPCs to restrict their hint-node searching to a subset of the map's hint nodes. Only hint nodes with matching hint group names will be considered by this NPC.
- Hint Limit Nav (hintlimiting) <boolean>
- Limits NPC to using specified hint group for navigation requests. Does not limit local navigation.
- Sleep State (sleepstate) <choices>
- Holds the NPC in stasis until specified condition. See also Wake Radius and Wake Squad.
- 0: None
- 1: Waiting for threat
- 2: Waiting for PVS
- 3: Waiting for input, ignore PVS
- 4: Auto PVS
- 5: Auto PVS after PVS
- Wake Radius (wakeradius) <float>
- Auto-wake if player comes within this distance.
- Wake Squad (wakesquad) <boolean>
- Wake all of the NPCs squadmates if the NPC is woken.
- Enemy Filter (enemyfilter) <targetname>
- Filter entity to test targets against.
- Ignore unseen enemies (ignoreunseenenemies) <boolean>
- Prefers visible enemies, regardless of distance or relationship priority.
DamageFilter:
- Damage Filter (damagefilter) <targetname>
- Name of the filter_damage_type entity that controls which entities can damage us.
|
Flags
BaseNPC flags
- Wait Till Seen : [1]
- Prevents this NPC from seeing (or being seen) until it enters a player's viewcone.
- Gag : [2]
- Won't make IDLE sounds until it's angry.
- Fall to ground (unchecked means teleport to ground) : [4]
- Drop Healthkit : [8]
- Causes this NPC to drop an item_healthvial upon dying.
- Efficient : [16]
- Don't acquire enemies or avoid obstacles
- Wait For Script : [128]
- Forces this NPC to "wait" in an idle state until it finishes playing a scripted_sequence.
- Long Visibility/Shoot : [256]
- By default, increases a NPC's sight range to
6,000
units and allows it to attack from anywhere within that distance.
- Fade Corpse : [512]
- Think outside PVS : [1024]
- Allows this NPC to run its regular AI outside of any player's PVS.
- Template NPC : [2048]
- Marks this NPC as a template for entities like npc_template_maker. The NPC will not spawn on its own. This is not needed for point_template.
- Do Alternate collision for this NPC (player avoidance) : [4096]
Note:This flag is disabled in
episodic for player companions, because the StartScripting
input does this.
- Don't drop weapons : [8192]
- Ignore player push : [16384] (in all games since
)
- Entity won't give way to player.
Inputs
BaseNPC inputs
CAI_BaseNPC:
- ActivateSpeedModifier !FGD
- DisableSpeedModifier !FGD
- Break
- Smash into pieces. If this is not possible, disappear.
- BecomeRagdoll (in all games since
)
- Remove itself and instantly become a ragdoll with zero force (just go limp). OnDeath, etc. outputs will NOT be fired.
- ForceInteractionWithNPC <string> <string> (in all games since
)
- Force the NPC to use a dynamic interaction with another NPC. Syntax is <targetname> <dynamic interaction>.
- ForgetEntity <targetnameRedirectInput/string>
- Clears out the NPC's knowledge of a named entity.
- UpdateEnemyMemory (in all games since
)
- Update (or create) this NPC's memory of of the given entity.
- GagEnable
- GagDisable
- Gagged NPCs won't speak (or moan, caw, etc.) unless made to be a choreographed scene.
- HolsterWeapon (in all games since
)
- UnholsterWeapon (in all games since
)
- Force the NPC to holster or unholster their weapon. Ignored if the NPC is scripting or if the NPC doesn't use weapons.
- HolsterAndDestroyWeapon (in all games since
)
- Same as
HolsterWeapon
, except the weapon is destroyed once it has been concealed.
- IgnoreDangerSounds <floatRedirectInput/float>
- Ignore danger sounds for the specified number of seconds.
- InsideTransition !FGD
- OutsideTransition !FGD
- SetBodyGroup <integerRedirectInput/integer>
- HACK: Sets this NPC's body group (from 0–n).
- SetEnemyFilter <stringRedirectInput/string>
- SetHealth <integerRedirectInput/integer>
- Set the NPC's health.
- SetMaxLookDistance <floatRedirectInput/float> (only in
)
- Sets the maximum look distance for the NPC. Defaults are 2048 and 6000 for long range NPCs.
- SetRelationship <string|targetname or classname> <string|disposition> <int|rank>
- Changes whether this NPC likes or dislikes certain others. Used like the ai_relationship entity, with this NPC as the subject.
- Values for
disposition
are:
D_HT
: Hate
D_FR
: Fear
D_LI
: Like
D_NU
: Neutral
- SetSquad <stringRedirectInput/string>
- Change the name of this NPC's squad. Leaving the parameter blank will remove the NPC from any existing squad.
- StartScripting
- StopScripting
- Enter/exit scripting state, where NPCs ignore a variety of stimulus that would make them break out of their scripts. They ignore danger sounds, ignore +Use, don't idle speak or respond to other NPCs' idle speech, and so on.
- Wake
- Wakes up the NPC if it is sleeping.
CBaseCombatCharacter:
- KilledNPC !FGD
- Tells the entity it killed something. Despite the name, this can include a player. This input will be automatically sent by the victim when they die.
- physdamagescale <floatRedirectInput/float>
- Scales damage energy when this character is hit by a physics object. With a value of 0 the NPC will take no damage from physics.
DamageFilter:
- SetDamageFilter <stringRedirectInput/string>
- Sets the entity to use as damage filter. Pass in an empty string (no parameter) to clear the damage filter.
Outputs
- OnCrab (only in
)
- Fired when this NPC spawns a live headcrab. (!activator is the headcrab)
- OnSwattedProp (only in
)
- Fired when this NPC swats a physics object, such as prop_physics or func_physbox. (!activator is the swatted object)
BaseNPC Outputs
- OnDamaged
- Fired when this NPC takes damage (!activator is the damage inflictor).
- OnDamagedByPlayer
- Fired when this NPC is hurt by a player (!activator is the attacker or vehicle driver [if friendly fire]).
- OnDamagedByPlayerSquad
- Fired when this NPC is hurt by a player OR by one of the player's squadmates (!activator is the attacker or vehicle driver [if friendly fire]).
- OnDeath
- Fired when this NPC is killed (!activator is the killer).
- OnDenyCommanderUse
- Fired when this NPC has refused to join the player's squad.
- OnForcedInteractionAborted
- Fired when the NPC aborts a forced interaction for some reason (target NPC died, couldn't be pathed to, etc.).
- OnForcedInteractionStarted
- Fired when the NPC starts a forced interaction.
- OnForcedInteractionFinished
- "NPCs in actbusies can no longer perform dynamic interactions."
Todo: What does this mean?
- OnHalfHealth
- Fired when this NPC reaches half of its maximum health.
- OnHearCombat
- Fired when this NPC hears combat sounds.
- OnHearPlayer
- Fired when this NPC hears the player.
- OnHearWorld
- Fired when this NPC hears a sound (other than combat or the player).
- OnFoundEnemy <targetname*RedirectOutput/ehandle>
- Fired when this NPC establishes line of sight to its enemy.
- OnLostEnemy
- Fired when this NPC loses its enemy. Usually due to the enemy being killed/removed, or because this NPC has selected a newer, more dangerous enemy.
- OnLostEnemyLOS
- Fired when this NPC loses line of sight to its enemy.
- OnFoundPlayer <targetname*RedirectOutput/ehandle>
- Fired when this NPC establishes line of sight to its enemy, and that enemy is a player.
- OnLostPlayer
- Fired when this NPC loses its enemy, and that enemy was a player. Usually due to the enemy being killed/removed, or because this NPC has selected a newer, more dangerous enemy.
- OnLostPlayerLOS
- Fired when this NPC loses line of sight to its enemy, and that enemy is a player.
- OnSleep
- Fired when this NPC enters a sleep state.
- OnWake
- Fired when this NPC comes out of a sleep state.
|
Replace zombie blood with human blood
In 
src/game/server/hl2/npc_zombie.cpp
, go to line 279.
#ifdef HL2_EPISODIC
SetBloodColor ( BLOOD_COLOR_ZOMBIE );
Modify it to look like this:
#ifdef HL2_EPISODIC
SetBloodColor ( BLOOD_COLOR_RED );
Remove headcrab from zombies
How to remove headcrab from zombies.
In 
src/game/server/hl2/npc_zombie.cpp
look for void CZombie::Spawn( void )
then find this line.
and simply change it to this
Now open 
src/game/server/hl2/npc_BaseZombie.cpp
and change the HeadcrabRelease_t CNPC_BaseZombie::ShouldReleaseHeadcrab( const CTakeDamageInfo &info, float flDamageThreshold )
section to look like this:
//-----------------------------------------------------------------------------
// Purpose: A zombie has taken damage. Determine whether he release his headcrab.
// Output : YES, IMMEDIATE, or SCHEDULED (see HeadcrabRelease_t)
//-----------------------------------------------------------------------------
HeadcrabRelease_t CNPC_BaseZombie::ShouldReleaseHeadcrab( const CTakeDamageInfo &info, float flDamageThreshold )
{
return ( m_iHealth <= 0 && m_fIsTorso && IsChopped( info ) ) ? RELEASE_RAGDOLL_SLICED_OFF : RELEASE_NO;
}
Alternatively, if you are using
Mapbase, replace the npc_zombie entity with a npc_zombie_custom entity and set "Headcrabless" to true
See also