Limit one bot's movement

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Limit one bot's movement

Post 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?
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

use SP AI, have him in an area (#area 1 for instance) after spawn.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Do you know how to use SP AI in a MP map?
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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. :wink:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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" .
Image
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post 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. :wink:
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...
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

I'll give a try...dunno if it will work w/ jvbots...
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 8-)
Image
Post Reply