Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 112 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Tutorials

»
CoD2 Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Color group for AI path
Versions: You must be logged in to view history.

This is a tutorial for AI path using the colour group system. There is a colour group in COD2 but there is some minor differences than COD4.

This process in very simple much like COD4 but it requires you to put in the values yourself instead of pressing shift + G and minor key/value differences.

 

Keep in mind there is no _colors.gsc like COD4. It's in the _spawner.gsc.


For the AI

key: script_forcecolor
value: blue

There are 7 colours available much like COD4. Be sure to write out the entire colour name or else there will be an error.

Here is the list of colours. Red, blue, yellow, cyan, green, purple, orange.


Now you need a trigger. The trigger and node must have the same colour.

key: script_color
value: blue


That's it. Just add your nodes and you are done. It's very simple, very, very similar to COD4, you just have to key in the variables yourself (I am sure you do that in COD4 already. [wink]) and it's not script_color_allies, just script_color.
You can use various other colours as well. As long as your AI has the same colour, that colour group is worth having that colour or else there is no need for that colour. You can have as many colours as you want but it's limited to 7. It's the same as COD4 when you have more than one colour group.

For your next set of nodes, be sure to name the nodes differently. Name the trigger and nodes differently.
Example:

key: script_color
value: blue2

To keep it simple, leave the same colour but add in 2 or 3 or whatever number that represent your next nodes. It's the same as COD4 where radiant will give you a number, like b2, b3, etc. Works the same way.

You can also have more than one colour per trigger, much like COD4. Just put in the the colour names with separation. Lke blue green.


Be sure to look into _spawner.gsc. It's all there. To start off, look up initScriptColors(nodes) or line 5045 in the file.

I know that this may be outdated but nevertheless, it would help you a lot.

So, I hope that this tutorial would be of help to other people that are still investing their time in COD2 and wanted something easier and working for their AI nodes, especially for more than one AI moving to specific nodes.

As for COD1 for the specific AI to specific node issue, well, I haven't figure it out yet. There is no colour group in COD1.

Enjoy!

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»