Page 1 of 1

Intelligent AI

Posted: Thu Sep 04, 2008 7:22 pm
by DeadHamster
This will create AI that run at you and shoot you on sight. This is a step up from normal PC AI, which will only stand and shoot.

I found this myself through all the stuff I've been doing with AI recently, I am the first to my knowledge to have done this. If I am not, then please do not accuse me of theft, It's not true.



You must know how to PMI AI tags, how to do a dependancy swap, have Phenomena's 64 Plugin Pack, and be a somewhat expierienced modder to follow this tutorial. I will NOT be going in depth for the PMI, as it is a pre-requesit (spelling?)

Part One
Getting the AI ready to be extracted.



Open c20.map in HHT.

Select under the [actv] branch, either FloodCombatElite_Unarmed or FloodCombatHuman_Unarmed.

Under the [bipd] slot in the dependancy swapper, swap the flood for what biped you want.

Part Two
Getting the AI in your map

Open your map in HMT, batch extract, extract BSP.

Open c20.map in HMT, recursively extract the [actv] tag we prepared earlier.

Decrap the models of the biped, AS WELL as what gun he's set up to hold. This is VITAL.

rebuild the map, selecting only the [actv] tag as a new tag.

Part Three
Making it smart.

Open your map in HHT, and select the biped you built in. Under the weap dependancy, give it whatever weapon you want it to hold.

Open your map in HMT, and select the [actv] tag.

Scroll until you find "max firing distance". It should be at 0. Change that to something else. I put 50.

Change the "Rate of Fire" to something. I chose 8.

open the [actr] tag for your AI

Put only on the flags that make for the biped to have.

Change it's vision/hearing. I put 80 vision, 60 hearing.






I wont go any more indepth then that, but if you understand actv/actr tags, you should be good, if not copy/paste values from the AI tags of your biped in a SP map if you want or inject it's meta. Be careful, I'm not sure if you'll overwrite something that could make it not run. Make a backup before you try it.

If you use any of this, credit me please. Thank you.

Posted: Fri Sep 05, 2008 10:20 am
by Philly
It's a bit unclear which actor variant we extract. Is it one that's holding a weapon on the unarmed one?

Posted: Fri Sep 05, 2008 11:01 am
by DeadHamster
Sorry, it's the unarmed one. You should re-reference the [actv] to whatever biped you want, and choose the flood_combat_elite_unarmed [actv] tag.

You can decide what weapon the AI will use in it's [bipd] tag.

Posted: Fri Sep 05, 2008 12:23 pm
by Philly
Why do we need to decrap the model of the weapon? Can't we just use an existing, uncrapped weapon?

Posted: Fri Sep 05, 2008 12:28 pm
by Corvette19
Something weird, it just has to be done.
i ges he r liek his wepon and he want it moar

Posted: Fri Sep 05, 2008 12:41 pm
by bcnipod
Is it just me or do you happen to write tutorials on exactly what I have written tutorials on.

http://forums.halomods.com/viewtopic.php?t=74116

Posted: Fri Sep 05, 2008 1:30 pm
by guysullavin
bcnipod wrote:Is it just me or do you happen to write tutorials on exactly what I have written tutorials on.
did you even bother to read this one?
yours has nothing to do with this one... stop thinking he's stealing your ideas! :roll:

Posted: Fri Sep 05, 2008 1:33 pm
by bcnipod
guysullavin wrote:
bcnipod wrote:Is it just me or do you happen to write tutorials on exactly what I have written tutorials on.
did you even bother to read this one?
yours has nothing to do with this one... stop thinking he's stealing your ideas! :roll:
I did I am just saying, that they all see to mimic topics I have covered.

Posted: Fri Sep 05, 2008 7:41 pm
by DeadHamster
Philly, you only DONT have to decrap the weapon if A) you unreference it in the XML file or B) don't paste the extracted files over the existing.

It's easier to just take the 10 seconds to decrap them.



bcnipod, the two are simmilar in that they both involve [actv] and [actr] tags. This is for MP AI that dont just stand and shoot, but rather are more intelligent and follow you around.

Your's made campaign AI smarter, in that they could hear better, stay out of lines of fire, etc. etc.

I swear I'm not stealing anything from yours. Like I've said before, I dont even look through this section half the time.

Posted: Sat Sep 06, 2008 2:34 am
by Philly
Just don't paste the files over the existing ones then. That's a silly way to PMI. :wink:

Posted: Sat Sep 06, 2008 11:43 am
by bcnipod
DeadHamster wrote: bcnipod, the two are simmilar in that they both involve [actv] and [actr] tags. This is for MP AI that dont just stand and shoot, but rather are more intelligent and follow you around.

Your's made campaign AI smarter, in that they could hear better, stay out of lines of fire, etc. etc.

I swear I'm not stealing anything from yours. Like I've said before, I dont even look through this section half the time.
Whoa, chill out :P

I was not saying you stole anything, I am just finding it interesting that both of us have done tutorials on almost exactly the same topics/methods.

Posted: Sat Sep 06, 2008 12:49 pm
by DeadHamster
Alright I'm sorry, I just dont want all that trouble from the last thread.

Posted: Sat Sep 06, 2008 3:53 pm
by Philly
DeadHamster, I'd just call you unlucky. Tell me, what does everybody call the hex duplication method? 'Philly's method'? It is more likely than not that somebody like Phenomena invented it first, and I just happened to find it out again, without knowing it ever existed. So we should really call it 'Phenomena's Duplicating Method'. :P

Anyway, my pennyworth would be to check if something similar has been posted before. If it has, ask the author of that thread. That's how I would try to avoid conflicts. :)

Posted: Sat Sep 06, 2008 6:41 pm
by guysullavin
Philly wrote:DeadHamster, I'd just call you unlucky. Tell me, what does everybody call the hex duplication method? 'Philly's method'? It is more likely than not that somebody like Phenomena invented it first, and I just happened to find it out again, without knowing it ever existed. So we should really call it 'Phenomena's Duplicating Method'. :P
why not just call it the 'Duplicating Method'?having a name before a method just seems a bit to gratuitous, i mean, 'Duplication Method brought to you by Philly' would be plenty good if using the context that someone asked "urr how do i do the duplicationzz?" if it had a link before that...
i still think you could just post a link and be happy

Posted: Wed Nov 12, 2008 2:45 pm
by hiheyhello
yar you can has pie.. o yar.

Posted: Thu Nov 13, 2008 9:28 am
by Philly
lol, hut?

Posted: Thu Nov 13, 2008 6:11 pm
by WaeV
I would say "duplicate the item" and when questioned how to duplicate would respond "look at Philly's tut on Halomods." I don't really refer to any modding method by the discoverer of the technique.

@DH: Good tut, I may use that soon.

Posted: Thu Nov 13, 2008 6:37 pm
by DeadHamster
Make sure you use floodcombat unarmed. I should probably update the original post.

Posted: Thu Nov 13, 2008 11:33 pm
by Pepsi
guysullavin wrote:
bcnipod wrote:Is it just me or do you happen to write tutorials on exactly what I have written tutorials on.
did you even bother to read this one?
yours has nothing to do with this one... stop thinking he's stealing your ideas! :roll:
Maybe he has a crush on you and this is how he shows it? :shock: :shock:


On-Topic:
<insert>Thumbs Up</insert>