Crawl worm crawl
by Stephen · in Technical Issues · 05/14/2006 (7:49 am) · 8 replies
Hello to all and thanks in advanced. I was wondering if someone could point me in the right direction. I have a modeled creature with two simple animations and I would like to know how to go about setting up an ai cs. for him....he doesn't attack btw so its more like im just wanting him to roam and stop and roam...but the player can kill him and loot the body for food.
About the author
#2
05/17/2006 (7:04 am)
That helps but does it differ since this ai is a small like worm and has fewer animations and different properties...i bet i already answered my own question...i have to create a specified cs. for each particular ai that defines how fast they mo0ve in the game world and other various options like the animations they use?
#3
05/18/2006 (3:02 pm)
I guess what im really looking for is an example of an aiPlayer.cs that is more for small animal and not an actual player. Or would it be close to the same?
#4
note in that tutorial / example
the line:
note the datablock = "PlayerBody" reference.
this is the Datablock that this ai instance will be using.
sounds like what you want is different datablocks.
05/18/2006 (3:07 pm)
Stephen,note in that tutorial / example
the line:
new AIPlayer(Bob) { datablock = "PlayerBody"; position = LocalClientConnection.camera.getPosition(); };note the datablock = "PlayerBody" reference.
this is the Datablock that this ai instance will be using.
sounds like what you want is different datablocks.
#5
Is there an example for doing this?
(edit) What i meant was as far as specifying fields like the worm would obviously move slower than the regular player and would surely not wield a gun or have agression because it doesn't attack.
05/18/2006 (3:13 pm)
So i would create an all new datablock?Is there an example for doing this?
(edit) What i meant was as far as specifying fields like the worm would obviously move slower than the regular player and would surely not wield a gun or have agression because it doesn't attack.
#6
then scroll thru the copied datablock code and you'll find stuff related to forwardspeed, sidespeed, etc.
since there no AI code to make them aggressive(out of the box), it'll be up to you to decide what it'll do and what it won't
You will need to create a new .cs file, just make a copy of the player.cs one and modify as needed.
05/18/2006 (3:42 pm)
Make a copy the block of code that's playerbody and name it wormbody or somethingthen scroll thru the copied datablock code and you'll find stuff related to forwardspeed, sidespeed, etc.
since there no AI code to make them aggressive(out of the box), it'll be up to you to decide what it'll do and what it won't
You will need to create a new .cs file, just make a copy of the player.cs one and modify as needed.
#7
05/18/2006 (6:23 pm)
Where is that located in the 1.4 tutorial.base? (i know this is probably a dumb question in advanced)
#8
06/07/2006 (7:31 am)
This may help you, use the AIGuard resource if you want the worm to come run toward the player. Turn the weapon off if you want no damage, if you want damage then just make the weapon invisible and create a mouth action. Or you can create special weapon for worm. exa. I have spider using the AiGuard, I make a weapon that look like the spider parts and mount to the spider. Spider run up to the player and shoot ball of webbing at him doing damage. If you want your worm to follow a path you can use AiPatrol.
Associate Matt Fairfax
PopCap