Creating an interaction: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (revert)
Line 1: Line 1:
[http://espied.servemp3.com/content/pamfuck.html pamfuck] [http://surfguitar.servemp3.com/sheepskin-slippers.html sheepskin slippers] [http://spying.servemp3.com/home-office.html home office] [http://corner.servemp3.com/description/chuck.html chuck] [http://spying.servemp3.com/best-weight-loss.html best weight loss products] [http://trump.servemp3.com/html/damaged-cars.html damaged cars] [http://spying.servemp3.com/exotic-hawaii.html exotic hawaii girls] [http://trump.servemp3.com/html/power-plant.html power plant load factor] [http://potinz.servemp3.com/adriana-sage-gallery.htm adriana sage gallery] [http://corner.servemp3.com/description/satkey.html satkey] [http://boors.servemp3.com/blog/pink-areolas.html pink areolas] [http://trump.servemp3.com/html/swiss-army-watch.html swiss army watch] [http://corner.servemp3.com/description/gold-slag-shed.html gold slag shed neoprene coated fiberglass] [http://potinz.servemp3.com/archivodefamosas.htm archivodefamosas] [http://potinz.servemp3.com/power-rangers.htm power rangers card] [http://corner.servemp3.com/description/coldplay-fix-you.html coldplay fix you] [http://aeson.servemp3.com/small/woman-orgasm-sound.html woman orgasm sound] [http://aeson.servemp3.com/small/skateboard-trick.html skateboard trick tips] [http://aeson.servemp3.com/small/urban-legend.html urban legend] [http://unsafe.servemp3.com/web/yvette.html yvette] [http://espied.servemp3.com/content/tbi.html tbi] [http://spying.servemp3.com/business-plan.html business plan] [http://surfguitar.servemp3.com/interracial-threesome.html interracial threesome] [http://robbed.servemp3.com/small/terri-clark.htm terri clark] [http://boors.servemp3.com/blog/swimming-pool.html swimming pool tunnel slide] [http://espied.servemp3.com/content/microsoft-updates.html microsoft updates] [http://espied.servemp3.com/content/bukkake-uk.html bukkake uk] [http://aeson.servemp3.com/small/free-anal-sex.html free anal sex stories] [http://potinz.servemp3.com/truck-sex.htm truck sex] [http://aeson.servemp3.com/small/online-sex-games.html online sex games] [http://potinz.servemp3.com/gallery-of-thick.htm gallery of thick girls] [http://surfguitar.servemp3.com/looking-to-price.html looking to price things after a fire] [http://surfguitar.servemp3.com/beautiful-asian.html beautiful asian girl] [http://unsafe.servemp3.com/web/electric-chair.html electric chair] [http://surfguitar.servemp3.com/free-karaoke.html free karaoke downloads] [http://unsafe.servemp3.com/web/address-address.html address address email find from ip] [http://robbed.servemp3.com/small/tunnel.htm tunnel] [http://aeson.servemp3.com/small/power-in-japan.html power in japan] [http://robbed.servemp3.com/small/ziggy-marley.htm ziggy marley] [http://aeson.servemp3.com/small/the-dump-furniture.html the dump furniture outlet] [http://aeson.servemp3.com/small/davis-properties.html davis properties] [http://trump.servemp3.com/html/cymbalta-withdrawal.html cymbalta withdrawal] [http://boors.servemp3.com/blog/teen-pussy-fucking.html teen pussy fucking] [http://robbed.servemp3.com/small/masterbating-young.htm masterbating young boys] [http://potinz.servemp3.com/exchange-rate.htm exchange rate for italian money] [http://unsafe.servemp3.com/web/breast-milk-squirting.html breast milk squirting] [http://trump.servemp3.com/html/herbal-breast.html herbal breast enlargement] [http://robbed.servemp3.com/small/fundraising-ideas.htm fundraising ideas] [http://surfguitar.servemp3.com/disney-clipart.html disney clipart] [http://aeson.servemp3.com/small/naked-chinese-men.html naked chinese men] [http://robbed.servemp3.com/small/honolulu-newspaper.htm honolulu newspaper] [http://trump.servemp3.com/html/free-realtone-downloads.html free realtone downloads] [http://boors.servemp3.com/blog/lapdance.html lapdance] [http://espied.servemp3.com/content/grannybed.html grannybed] [http://espied.servemp3.com/content/canadian-fly.html canadian fly in fishing] [http://surfguitar.servemp3.com/russian-calls.html russian calls girl] [http://unsafe.servemp3.com/web/cooks-illustrated.html cooks illustrated] [http://unsafe.servemp3.com/web/airforce.html airforce] [http://robbed.servemp3.com/small/rf-35.htm rf 35] [http://corner.servemp3.com/description/black-girl-ass.html black girl ass] [http://aeson.servemp3.com/small/blond-bikini-model.html blond bikini model] [http://potinz.servemp3.com/ape-escape.htm ape escape] [http://potinz.servemp3.com/totally-free.htm totally free adult personal ads] [http://boors.servemp3.com/blog/calvin-klein-male.html calvin klein male models] [http://espied.servemp3.com/content/job-home-based.html job home based] [http://trump.servemp3.com/html/debbie-gibson.html debbie gibson naked] [http://aeson.servemp3.com/small/sexual-predators.html sexual predators] [http://trump.servemp3.com/html/sexy-web-cams.html sexy web cams] [http://corner.servemp3.com/description/teen-cheerleaders.html teen cheerleaders] [http://espied.servemp3.com/content/plans-for-cnc.html plans for cnc router table] [http://spying.servemp3.com/clothed-sex.html clothed sex] [http://trump.servemp3.com/html/take-it-easy-guitar.html take it easy guitar tabs] [http://trump.servemp3.com/html/glassjaw.html glassjaw] [http://robbed.servemp3.com/small/precision-plasma.htm precision plasma welder] [http://boors.servemp3.com/blog/toshiba-hdtv.html toshiba hdtv 30] [http://trump.servemp3.com/html/military-commissaries.html military commissaries] [http://boors.servemp3.com/blog/dominoes.html dominoes] [http://spying.servemp3.com/hypno-mistress.html hypno mistress] [http://potinz.servemp3.com/contactl.htm contactl] [http://potinz.servemp3.com/mom-boobs.htm mom boobs] [http://corner.servemp3.com/description/drug-busts.html drug busts] [http://trump.servemp3.com/html/girls-getting.html girls getting fucked by animals] [http://espied.servemp3.com/content/translator-from.html translator from english to spanish] [http://robbed.servemp3.com/small/teen-swimsuit.htm teen swimsuit models] [http://espied.servemp3.com/content/generac-power-washer.html generac power washer part] [http://trump.servemp3.com/html/sea-boss-reviews.html sea boss reviews] [http://espied.servemp3.com/content/white-chicks.html white chicks] [http://corner.servemp3.com/description/egyptian-arabian.html egyptian arabian mares] [http://espied.servemp3.com/content/www-parasol.html www parasol] [http://unsafe.servemp3.com/web/mark-knopfler.html mark knopfler mp3] [http://espied.servemp3.com/content/the-closer-you.html the closer you get the further i fall] [http://robbed.servemp3.com/small/tity-fucking.htm tity fucking] [http://trump.servemp3.com/html/yuki-kajiura.html yuki kajiura] [http://spying.servemp3.com/psychic.html psychic] [http://robbed.servemp3.com/small/anime-yuri-galleries.htm anime yuri galleries] [http://boors.servemp3.com/blog/usa-world-cup.html usa world cup soccer jersey] [http://unsafe.servemp3.com/web/rene-descartes.html rene descartes] [http://unsafe.servemp3.com/web/porsche-cayman.html porsche cayman] [http://robbed.servemp3.com/small/symantec-system.htm symantec system center console download] [http://boors.servemp3.com/blog/shareware-games.html shareware games] [http://potinz.servemp3.com/saturn-cars.htm saturn cars] [http://potinz.servemp3.com/nude-toon.htm nude toon] [http://unsafe.servemp3.com/web/order-adipex.html order adipex] [http://boors.servemp3.com/blog/julie-tawney-mpeg.html julie tawney mpeg] [http://espied.servemp3.com/content/adventure-vacation.html adventure vacation] [http://spying.servemp3.com/birth-control.html birth control shot] [http://surfguitar.servemp3.com/translators-cafe.html translators cafe] [http://aeson.servemp3.com/small/wills.html wills] [http://aeson.servemp3.com/small/pregnant-bellies.html pregnant bellies] [http://potinz.servemp3.com/streetlight-manifesto.htm streetlight manifesto] [http://trump.servemp3.com/html/wakeboard-tower.html wakeboard tower] [http://espied.servemp3.com/content/hairy-women.html hairy women] [http://spying.servemp3.com/selma-hayak.html selma hayak] [http://potinz.servemp3.com/free-mature-tgp.htm free mature tgp] [http://espied.servemp3.com/content/stakeholder-input.html stakeholder input] [http://potinz.servemp3.com/vermont-tourism.htm vermont tourism] [http://espied.servemp3.com/content/suns.html suns] [http://corner.servemp3.com/description/international-piece.html international piece time] [http://spying.servemp3.com/sexy-swimsuit.html sexy swimsuit models] [http://aeson.servemp3.com/small/facial-gangbang.html facial gangbang] [http://spying.servemp3.com/cpap-supplies.html cpap supplies] [http://unsafe.servemp3.com/web/redheads-blowjobs.html redheads blowjobs] [http://robbed.servemp3.com/small/teen-cuties-in.htm teen cuties in tight thongs] [http://unsafe.servemp3.com/web/florida-parkinsons.html florida parkinsons disease claim] [http://unsafe.servemp3.com/web/going-under.html going under] [http://spying.servemp3.com/seattle-pet-stores.html seattle pet stores] [http://surfguitar.servemp3.com/are-psychic-real.html are psychic real] [http://robbed.servemp3.com/small/tonya-cooley-playboy.htm tonya cooley playboy] [http://boors.servemp3.com/blog/picture-sex-teen.html picture sex teen] [http://corner.servemp3.com/description/mumps-with-cache.html mumps with cache] [http://spying.servemp3.com/shiver-coldplay.html shiver coldplay] [http://unsafe.servemp3.com/web/sql.html sql] [http://aeson.servemp3.com/small/water-fountains.html water fountains for sale] [http://aeson.servemp3.com/small/hot-teacher-sex.html hot teacher sex] [http://trump.servemp3.com/html/movie-samples.html movie samples porn] [http://aeson.servemp3.com/small/what-is-ginseng.html what is ginseng good for] [http://corner.servemp3.com/description/temari.html temari] [http://robbed.servemp3.com/small/used-diesel-motor.htm used diesel motor home] [http://corner.servemp3.com/description/chinese-recipes.html chinese recipes] [http://robbed.servemp3.com/small/giraffe.htm giraffe] [http://spying.servemp3.com/anthropology.html anthropology gender studies] [http://boors.servemp3.com/blog/assisted-suicide.html assisted suicide] [http://potinz.servemp3.com/sports-bra.htm sports bra] [http://aeson.servemp3.com/small/young-boys-getting.html young boys getting spanked] [http://espied.servemp3.com/content/sexy-ebony-women.html sexy ebony women] [http://unsafe.servemp3.com/web/showcase-international.html showcase international] [http://corner.servemp3.com/description/itt-corporation.html itt corporation] [http://robbed.servemp3.com/small/gatlinburg-real.htm gatlinburg real estate] [http://potinz.servemp3.com/corona-california.htm corona california real estate] [http://aeson.servemp3.com/small/small-bussiness.html small bussiness] [http://trump.servemp3.com/html/javelin.html javelin] [http://boors.servemp3.com/blog/wholesale-party.html wholesale party favors] [http://spying.servemp3.com/male-model-pics.html male model pics] [http://espied.servemp3.com/content/frat-fuck.html frat fuck] [http://aeson.servemp3.com/small/nfl-betting.html nfl betting] [http://aeson.servemp3.com/small/used-honda-civic.html used honda civic] [http://corner.servemp3.com/description/free-magazines.html free magazines] [http://unsafe.servemp3.com/web/anchors.html anchors] [http://trump.servemp3.com/html/printable-hotel.html printable hotel coupons] [http://espied.servemp3.com/content/facts-out-about.html facts out about texas] [http://boors.servemp3.com/blog/schoolgirl-asians.html schoolgirl asians] [http://aeson.servemp3.com/small/strap-on-dildos.html strap on dildos] [http://potinz.servemp3.com/display-pics.htm display pics] [http://espied.servemp3.com/content/used-motorcycle.html used motorcycle] [http://unsafe.servemp3.com/web/ancient-egypt.html ancient egypt] [http://potinz.servemp3.com/fucking-sex-movie.htm fucking sex movie] [http://unsafe.servemp3.com/web/top-lolita-model.html top lolita model] [http://potinz.servemp3.com/celebrity-wallpaper.htm celebrity wallpaper] [http://boors.servemp3.com/blog/cute-middle.html cute middle school girls] [http://potinz.servemp3.com/necro.htm necro] [http://spying.servemp3.com/russian-girls-16.html russian girls 16] [http://corner.servemp3.com/description/the-windwards.html the windwards saint] [http://boors.servemp3.com/blog/sciatica.html sciatica] [http://espied.servemp3.com/content/lettre-resiliation.html lettre resiliation assurance] [http://boors.servemp3.com/blog/howard-hughes-death.html howard hughes death] [http://potinz.servemp3.com/burt-reynolds.htm burt reynolds] [http://unsafe.servemp3.com/web/child-porno.html child porno] [http://robbed.servemp3.com/small/civil-war.htm civil war] [http://aeson.servemp3.com/small/perverse.html perverse] [http://unsafe.servemp3.com/web/huge-dick.html huge dick] [http://robbed.servemp3.com/small/invention-marketing.htm invention marketing] [http://robbed.servemp3.com/small/im-bored.htm im bored] [http://robbed.servemp3.com/small/logistic-regression.htm logistic regression sample size] [http://potinz.servemp3.com/indian-adult.htm indian adult movie clips] [http://aeson.servemp3.com/small/verizon-wireless.html verizon wireless account access] [http://trump.servemp3.com/html/ebay-scammers.html ebay scammers] [http://corner.servemp3.com/description/real-vampires.html real vampires] [http://surfguitar.servemp3.com/playmate-puffies.html playmate puffies] [http://trump.servemp3.com/html/susie-wilden.html susie wilden] [http://corner.servemp3.com/description/banana-ringtones.html banana ringtones] [http://unsafe.servemp3.com/web/math-lessons.html math lessons] [http://potinz.servemp3.com/heat-exchanger.htm heat exchanger air water cleaning] [http://unsafe.servemp3.com/web/park-upskirt.html park upskirt] [http://spying.servemp3.com/school-of-record.html school of record] [http://surfguitar.servemp3.com/fine-art-prints.html fine art prints] [http://espied.servemp3.com/content/todays-mortgage.html todays mortgage interest rates] [http://robbed.servemp3.com/small/porsche-exchange.htm porsche exchange] [http://boors.servemp3.com/blog/bed-bath.html bed bath] [http://espied.servemp3.com/content/street-fight-video.html street fight video clips] [http://robbed.servemp3.com/small/ambiance-day-spa.htm ambiance day spa]
{{npc tut}}
{{npc tut}}
== Declaration ==
== Declaration ==
The first step to creating an interaction for your NPC is to create a name for it and add it to the "Interactions" section as well as adding it to <code>src\dlls\hl2_dll\AI_Interactions.h</code> Here's an example name for an activity: '''g_interactionVortigauntKick'''.
The first step to creating an interaction for your [[NPC]] is to create a name for it and add it to the "Interactions" section as well as adding it to <code>src\dlls\hl2_dll\AI_Interactions.h</code>. Here's an example name for an activity: '''g_interactionVortigauntKick'''.


Once the activity is added, you must use the '''DECLARE_INTERACTION''' macro in the '''AI_BEGIN_CUSTOM_NPC''' section.
Once the activity is added, you must use the <code>DECLARE_INTERACTION</code> macro in the <code>AI_BEGIN_CUSTOM_NPC</code> section.


Here's an example of the DECLARE_INTERACTION code:
Here's an example of the DECLARE_INTERACTION code:
<pre> DECLARE_INTERACTION( g_interactionExample )</pre>
<pre>DECLARE_INTERACTION( g_interactionExample )</pre>
{{note|An interaction should only be declared in one NPC's '''AI_BEGIN_CUSTOM_NPC''' section, regardless of how many NPCs utilize it.}}
{{note|An interaction should only be declared in one NPC's <code>AI_BEGIN_CUSTOM_NPC</code> section, regardless of how many NPCs utilize it.}}
==Implementation==
 
== Implementation ==
{{todo|Implementation}}
{{todo|Implementation}}
{{navbar|Creating a squadslot|Creating an NPC|Creating a schedule}}
{{navbar|Creating a squadslot|Creating an NPC|Creating a schedule}}
[[Category:AI Programming]]
[[Category:AI Programming]]

Revision as of 05:14, 3 December 2007

Declaration

The first step to creating an interaction for your NPC is to create a name for it and add it to the "Interactions" section as well as adding it to src\dlls\hl2_dll\AI_Interactions.h. Here's an example name for an activity: g_interactionVortigauntKick.

Once the activity is added, you must use the DECLARE_INTERACTION macro in the AI_BEGIN_CUSTOM_NPC section.

Here's an example of the DECLARE_INTERACTION code:

DECLARE_INTERACTION( g_interactionExample )
Note.pngNote:An interaction should only be declared in one NPC's AI_BEGIN_CUSTOM_NPC section, regardless of how many NPCs utilize it.

Implementation

Todo: Implementation