I have the scripts for making dogs chase and attack, but I can't seem to get them to work in my map. Here's the script, any idea how to get this to work. When I add this to my existing script, the game crashes. Thanks
//------
// Dog Attack
//------
waitexec "anim/dog_inithandler.scr"
//======================================================================
AttackMain:
self setmotionanim dog_bite_leg
wait .1
//bite enemy
if ( self . enemy != $player )
self.enemy damage self 75 self (0 0 0) (0 0 0) (0 0 0) 1 9 0 0;
else
{
local . dir = $player . origin - self . origin;
self.enemy damage self 75 self (0 0 0) local . dir (0 0 0) 1 9 0 0;
}
self waittill flaggedanimdone
goto AttackMain
end
//------
// Dog Chase
//------
waitexec "anim/dog_inithandler.scr"
//======================================================================
ChaseMain:
//chase enemy
self setmotionanim dog_run
self waittill flaggedanimdone
goto ChaseMain
end
Dog Scripts
Moderator: Moderators
Okay this one had me a bit stumped for a while.....
all you need for dog_ai to work are info_pathnodes {paced between 256-512}appart if they are to far appart the dog will not chase...just bark... oh yeh and add the line "exec global/ai.scr" in your .scr
that should be it....oops i almost forgot dont play around to much with dogs properties...it just naffs up its ai for some inexplicable reason..
p.s. Nemesis if your reading i like your work but if you make another tut using my brainstuff{or anyone else`s}.....{it could be coincidence..} please give credit where its due......pls
all you need for dog_ai to work are info_pathnodes {paced between 256-512}appart if they are to far appart the dog will not chase...just bark... oh yeh and add the line "exec global/ai.scr" in your .scr
that should be it....oops i almost forgot dont play around to much with dogs properties...it just naffs up its ai for some inexplicable reason..
p.s. Nemesis if your reading i like your work but if you make another tut using my brainstuff{or anyone else`s}.....{it could be coincidence..} please give credit where its due......pls
-
HkySk8r187
- Lance Corporal
- Posts: 20
- Joined: Fri Jun 28, 2002 6:37 pm
- Contact:
dogs
when ever I kill a dog the game crashes I have lots of pathnodes and a sound fix and dogs work good but I can't kill them or game crashe with a server message past end error
Whoa that's an old thread
.
Maybe this is of any help:
http://modtheater.com/pafiledb.php?action=file&id=540
Maybe this is of any help:
http://modtheater.com/pafiledb.php?action=file&id=540
