Page 1 of 1
Limit one bot's movement
Posted: Mon Jul 05, 2004 6:59 pm
by Krane
Did a search and found nothing so...here I go.
I want to limit one bot's movement. I'm making an assassination obj map and didn't want my "target" to move around too much, just stay where he is w/ just some variations (maybe he can go to a room)...
Any ideas?
Posted: Mon Jul 05, 2004 7:17 pm
by lizardkid
use SP AI, have him in an area (#area 1 for instance) after spawn.
Posted: Mon Jul 05, 2004 7:59 pm
by Krane
Do you know how to use SP AI in a MP map?
Posted: Mon Jul 05, 2004 8:28 pm
by lizardkid
sure, put
exec global/ai.scr
before your level waittill prespawn in your script and put in your AI, fling in the pathnodes, and boom, you've got it.

Posted: Mon Jul 05, 2004 9:05 pm
by bdbodger
The global/ai.scr is mainly for makeing enemyspawners and spawning them . It can be used to spawn bots too if you give the bot a targetname of enemyspawner . What you need to do is spawn a bot not a normal ai . The bots are just normal ai's with the animations enabled and useing the targetname of alliesspawnpreset for a allies bot and axisspawnpreset for a axis bot and useing the bot script you have a bot so by not useing that targetname the bot won't be used by the bot script and you can have him do as you like . You will of course have to tell him what to do since he is no longer a "bot" .
Posted: Mon Jul 05, 2004 10:03 pm
by Krane
lizardkid wrote:sure, put
exec global/ai.scr
before your level waittill prespawn in your script and put in your AI, fling in the pathnodes, and boom, you've got it.

Nice try, how many times do you think I did this? Don't work, m8.
Nuggets have a modified new_generic_human.tik that makes SP AI work on MP, problem is that axis Ai shoots at you even if you join as axis...
My idea is to "place" (not spawn) a bot and give him a targetname, problem is to keep him in the same area...
Posted: Mon Jul 05, 2004 10:05 pm
by lizardkid
well try making the #area thingie i told you about, open up ai.scr and look at the comments at the beginning. it'll mention #area.
Posted: Tue Jul 06, 2004 6:26 am
by Krane
I'll give a try...dunno if it will work w/ jvbots...
Posted: Tue Jul 06, 2004 8:26 am
by jv_map
Nope won't work with jv_bots
If you want only this single bot then probably do as bdb said, use simple ai by placing a bot tiki in the map. Also exec the bot scripts but set the number of bots to 0, that will stop your ai from shooting spectators
