Page 1 of 1

Bots and Nodes

Posted: Tue Mar 04, 2003 8:42 pm
by Gen Cobra
Scripting Pathnodes and Enemies.

Setting up pathnodes correctly can be difficult.
JV or somebody can u answer a few questions for me?

Leash-
Does this mean he will travel in the range of what you set like 500? And if it's low will he stick to his area he starts in?

Share range.
What is a good setting?

On pathnodes, I have managed to Get Sniper to work with Turret, which makes the enemy a great shot btw even if the settings are bunk on his accuracy, and I got cover to work with many like crate, duck, corner left or right etc. What about all the other settings for enemies. I know what patrol path is but the others confuse me.
Any info or tuts would be of great help. I've combed a lot of work to find what I have.

Posted: Tue Mar 04, 2003 9:03 pm
by jv_map
The leash is the distance a bot searches for cover nodes away from his current leash home. By default, the leash home is reset whenever bots are entering attack mode. You can however fix the leash home to a specified position by script or bind it to a moving entity. To see a AI's current leash and leash home, type g_entinfo 1. You'll see a green line from every actor to his leash home, and a green circle describing the leash radius.

Sharerange 0 means an actor will receive enemy notifications from any other AIs within a direct line. If you set a higher value, the other AI needs to within this distance to send enemy information. Usually, 0 is a fine value.

There are a couple of good documents in the docs folder within the radiant directory.

Posted: Wed Mar 05, 2003 5:33 am
by Gen Cobra
Thanks for the response jv. Right now I am setting up the allies, and doing my best not get them to be stupid.
I am usings #sets for the nodes all the way through to the final point of the objective. I friendlynode for the target. Most of them are cover bots.
I'm getting ready to launch the game right now after compiling. The exec global/ai.scr goes before level waittill spawn right?
And is that all becuase those scripts can be very confusing. :?
Do I need to execute anything else?
I was gonna try and set up what each ai was for a character like Barney or Leader but I fear that I am lost in this world of scripting ai. I guess I'll dig through some more docs. :roll:

Posted: Wed Mar 05, 2003 3:15 pm
by jv_map
You don't need the exec global/ai.scr; that's a widespread misunderstanding. Actually you don't need any scripts to get enemies attack you 8).

Posted: Thu Mar 06, 2003 3:33 am
by Gen Cobra
It's funny you mention that. I've seen you mention that before. :?