Jump to content
The Dark Mod Forums

path_anim ... having trouble getting animations to work with pagan


PranQster

Recommended Posts

I have a pagan commoner, unarmed, in my map and tried using a couple path_anim with it. I targeted a path_anim with 'anim kneel_down', which targets to a path_wait, that to another path_anim with 'anim eat_apple_lefthand', that to another path_wait and then back to the original path_anim.

The pagan just stands there and does the regular idle animations from time to time.

I even tried extracting the tdm_ai_pagan_male.def file and adding the animations at the end of the file:

 

   anim kneel_down             models/md5/chars/guards/proguard/kneel_down.md5anim
   {
	ai_no_turn			// should keep ai from spinning around during animation
   }

   anim eat_apple_lefthand		models/md5/chars/guards/proguard/sit_idle_cough01.md5anim
   {
	no_random_headturning
	//frame 8			pickup		AIUSE_EAT food hand_l
	frame 8				attach		atdm:moveable_food_apple food hand_l
	frame 27			sound_voice	snd_eat
	// replace apply by droppable apple core
	frame 45			destroy		food
	frame 45			attach		atdm:drop_apple_core food hand_l
	// now drop it
	frame 96			drop		food
   }

 

I had tried adding that code to the unarmed section of the def file, but the ai did not render when I did... so I put it at the end. Still no animations (they are inherited by default from tdm_ai_proguard, are they not?)

None of these animations seem to work with this AI.

I have at least two other AI which properly use path_anim... one uses a torch search animation and the other stirs the soup with a spoon. Those work fine, even when put in between path_wait, path_turn, etc.

So what's with this pagan not using path_anim? Does a path_corner need to exist first (he does not have a patrol route and is supposed to stay in one place)?

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

Those animations exist for that character, so there must be something wrong with the pathnodes.

Link to comment
Share on other sites

Ok, I'll tinker with it until it works.

 

Fixed.

I had done a clumsy cut/paste operation of the anim names. Just like I stated in my previous post, I had the following:

 

'anim' 'anim kneel_down' instead of 'anim' 'kneel_down'

'anim' 'anim eat_apple_lefthand' instead of 'anim' 'eat_apple_lefthand'

Works fine now. Except the AI gets nervous from the sound of his discarded apple cores hitting the floor when he drops them. LOL

Edited by PranQster

System: Mageia Linux Cauldron, aka Mageia 8

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...