Combine AI

Tutorial collection, comprehensive listings on main site.

Combine AI

Postby Tutorial on Sun Mar 06, 2005 11:55 pm

For simple combine AI, that follow you, cover each other, nade spam, etc.

Start by making your room(s) that you want to have a fight with the combine in. A small maze type thing would be good, with low walls but high enough that you cant see over them.

Image

Place your info_player_start, item_suit, and whatever weapons you want, and place a few npc_combine_s in a group somewhere. Select all the combines, press alt+enter, and set their squad name to something like comb_squad_1, set their weapons to something nasty, and set their number of grenades to unlimited.

Image Image

Now, from the entity list, select info_node. When you run the map in the game, a web is formed of what nodes are visible from what nodes, and the AI move along this web. Ooooh, spider-like! Place the info_node's wherever there is a corner, an intersection, wherever there is some cover, anywhere the AI might find necessary. Think, "if i was an npc_combine_s, where would I want to go, to get an advantage over Gordon on this map he made?" and place nodes wherever you think a combine_s would go. Remember that they can ONLY go where you put the nodes.

Image

Light your map and compile it.

I've found with the map i made (example map) that the combine tend to nade each other. Stupid AI, but with more room and perhaps lower walls they can throw further. I also went pretty damn overkill with the nodes, but that never hurt anyone.

Good Luck!

Related
Example Map

Serever
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby Grantax on Thu Mar 16, 2006 6:54 pm

I just have to complain about your use of nodes.
You're using about 4 times as many as necessary...
Grantax
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Tue Mar 14, 2006 1:33 pm
Location: Norway

Re: Combine AI

Postby chevasbr on Sat Jan 17, 2009 9:03 pm

nice tutorial, very simple to do ;)
tnks a lot
Keep your signature image to a sensible size.
chevasbr
Member
Member
 
Joined: Thu Jul 05, 2007 11:18 am

Re:

Postby Kyl' on Sun Jan 18, 2009 12:12 am

Grantax wrote:I just have to complain about your use of nodes.
You're using about 4 times as many as necessary...

Definitely :) Also, it's better to have them like 16 units above the floor. That's really necessary once you start having stairs, a slope, or the floor on different Z Axys levels.

The best way to see the links created between the nodes is by checking them with map_edit.

And here, to have a better understanding of what nodes are :-)
Nodegraph

Cheers :)
Image
User avatar
Kyl'
Been Here A While
Been Here A While
 
Joined: Tue Sep 02, 2008 2:28 pm

Return to Tutorials

Who is online

Users browsing this forum: No registered users