Jump to content
The Dark Mod Forums

Replacing conversation animations


Springheel

Recommended Posts

I have two sitters having a conversation.

 

The regular "idle_talk" animations that play when AI have a conversation don't work on sitters--they lean back too far.

 

I've made some new sitting ones, but I can't seem to get them to play. I've tried adding the following spawnargs to the AI directly:

 

"replace_anim_idle_talk1" "sit_talk_gesture1"

 

and putting them on a prop and def_attaching that to the AI.

 

Neither options worked, and the AI continued to play the inappropriate standing animations.

 

I've tracked down what is probably the cause, in tdm_ai_base.script:

 

void ai_darkmod_base::Torso_IdleTalk()
{
while (1)
{
// Play an idle_talk animation and pause 2 seconds, repeat
if (hasAnim(ANIMCHANNEL_TORSO, "idle_talk")) {
// play the animation
playAnim(ANIMCHANNEL_TORSO, "idle_talk");


while( !animDone(ANIMCHANNEL_TORSO, 6)) {
waitFrame();
}
}

sys.wait(2);
}

// finish up and start idling again
finishAction("idle_talk");
finishChannelAction(ANIMCHANNEL_TORSO, "idle_talk");
animState(ANIMCHANNEL_TORSO, "Torso_Idle", 6);
}

I'm only guessing, but it looks like the script calls the idle_talk animations directly? Is there a way to add a clause to specify that AI should play different animations if sitting?

Link to comment
Share on other sites

Hmm I thought we'd fixed sitting idles on 2.03. Or was that custom idles only? How did your sitting-writing animation work?

 

I'll have a look how it's handled in situations where the replacement does work. I don't remember seeing anim replacement code in the scripts: I expect it's done in game code.

Link to comment
Share on other sites

Hmm I thought we'd fixed sitting idles on 2.03.

 

 

Just to be clear, I think the code is doing what it's supposed to...the talk_idle animations are being called only on the torso when the AI is sitting down (they aren't popping up to standing while playing). It's just that they don't look very good even when just played on the torso--the sitting animations lean the torso forward, and standing ones don't, so playing a standing animation on an AI while sitting makes them lean backwards quite a bit.

 

I'm not sure why the replace_anim lines aren't doing anything, but if we could change the script so that it automatically plays the sitting versions when the AI in the convo are sitting, that would be easier for mappers.

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

    • 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
       
      · 3 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
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
×
×
  • Create New...