Page 1 of 1
dog follow player
Posted: Thu Nov 25, 2004 4:25 am
by Phil {sfx}
Anyone know what the code is to make a dog follow a player?
I have tried various things like tether but had no joy.
I know theres a topic on this on .map but when i click the link for topic 444, i just get a error.
Posted: Thu Nov 25, 2004 7:45 am
by bdbodger
Sure you create a custom dog and make a custom new_generic_dog.tik then he will follow you like the dogs in my rescue map if you script it right .
The_rescue.pk3
Posted: Thu Nov 25, 2004 8:15 am
by Phil {sfx}
Cheers bd,
i'll give that a try.

Posted: Thu Nov 25, 2004 10:18 am
by Phil {sfx}
That works a treat bd, thanks alot.
One more

,
To do this you need nodes, is there anyway to make it follow you without using nodes? Like when its state is attack it moves without nodes.
The "runto" cmd needs nodes, is there any other cmd that doesnt?, tried a few and but had no affect.
cheers.
Posted: Thu Nov 25, 2004 1:00 pm
by bdbodger
Any time you have ai you should have pathnodes . If you want the dogs to follow you definately need pathnodes .
Posted: Fri Nov 26, 2004 4:27 pm
by Phil {sfx}
Thanks,
I thought you might have been able to turn the player linked to the dog into its enemy so it ran close using the attack state but then have some code reset its enemy when its vector is close.
If you know this isnt possible please tell me or i'll have a bash at a few different ways later.
Posted: Tue Mar 29, 2005 5:48 pm
by Gooser13
Is this server side?
Posted: Wed Mar 30, 2005 11:57 am
by bdbodger
no not when you use a custom new_generic_dog.tik it requires a custom dog to be created .
Posted: Wed Mar 30, 2005 2:54 pm
by Gooser13
Could you just add the animations to the german_shepard.tik?
Code: Select all
unarmed_run_forward dog_run.skc
{
client
{
0 sound dog_fs
2 sound dog_fs
7 sound dog_fs
8 sound dog_fs
}
}
unarmed_run_left dog_run.skc
{
client
{
0 sound dog_fs
2 sound dog_fs
7 sound dog_fs
8 sound dog_fs
}
}
unarmed_run_right dog_run.skc
{
client
{
0 sound dog_fs
2 sound dog_fs
7 sound dog_fs
8 sound dog_fs
}
}
unarmed_run_back dog_run.skc
{
client
{
0 sound dog_fs
2 sound dog_fs
7 sound dog_fs
8 sound dog_fs
}
}
Posted: Wed Mar 30, 2005 7:00 pm
by Rookie One.pl
This would require a download anyway.