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

    • Baal

      Episode 3 of the second best Doom 3 mod, Phobos,  was just released.
      · 2 replies
    • snatcher

      TDM Modpack v4.2 released!
      · 1 reply
    • The Black Arrow

      Hey @nbohr1morehow come the zombies in The Dark Mod don't have a "resurrection" mechanic to it, similar to how Thief has it?
      They're quite a weak creature as of right now, it's merely a walking corpse that slashes you, making attacking them to kill them an actual strategy.
      Would be better if they had some cool mechanism to it that truly makes them a danger, such as the resurrection idea itself.
      · 3 replies
    • Ansome

      Query: when was the last time a zombie in a video game was unnerving or scary to you? I'm chipping away at my anniversary submission and I've been trying to gather opinions on the subject. I'm perfectly capable of lighting them well, changing their sfx, and creating effective ambience, but I'm worried that zombies at their core are just too overdone to be an effective payoff to the tension I'm creating.
      · 8 replies
    • nbohr1more

      The Lieutenant 3 is out! Congrats Frost_Salamander! ( raising awareness )
      · 2 replies
×
×
  • Create New...