Jump to content
The Dark Mod Forums

Recommended Posts

Posted

Hello!

This will surely be seen as a silly, easy question, but I want to change the model that gets spawned when the AI eats stuff. I believe all the animations are stored in "tdm_ai_guard_proguard_devel.def" and here I have found the carrot animation and thought it would be easy to just exchange the carrot for ex a muffin but no, not so fast, DeTeEff. I guess I'll have to create some kind of def file for my FM but exactly what do I put there? Do I have to copy a whole AI definition and add the muffinanimation or can I just add the muffin somehow?

 

Posted

There is an inherit spawnarg in DR. Have you tried that? You have to specify the defenition, not the def file.

I don't know if it works, but I just try to find a possible solution.

 

image.thumb.png.81716bb1c11157c6cea068c1c6ab8bc6.png

 

  • Like 1
Posted

Okay. I got it this far:

I'll write a list so another noobs, like myself, can follow:

1. Create a custom.def in your def folder

2. insert this

model CUSTOMNAME_tdm_ai_priest

{
inherit        tdm_ai_proguard


mesh        models/md5/chars/builders/priest/builderpriestmesh.md5mesh

channel torso ( *Spine_Dummy)
channel legs ( origin Pelvis Pelvis2 *Hips)

 

  anim idle_eat_muffin        models/md5/chars/guards/proguard/idle_eat02.md5anim    //reaches out to table and eats food
    {
       no_random_headturning
        frame 1 object_call syncLegsWithTorso
       frame 21            attach atdm:moveable_food_muffin muffin hand_r
        frame 48    sound_voice tdm_crunch
        frame 125    sound_voice tdm_crunch
        frame 130        destroy  muffin
    }

}

3. Then add the spawnarg 'model'    'CUSTOMNAME_tdm_ai_priest' to your muffin eating man.

4. Target him to a path_anim with the spawnarg 'anim'        'idle_eat_muffin'

You may need to restart DR/The game to make it reload definitions and god knows what...

  • Like 1

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

    • jivo

      In case you missed it, I updated the Visible Player Hands mod to version 2.0. It now works while a weapon is selected and has a Linux version too.
      Check it out if you're interested: Visible Player Hands 2.0
      · 0 replies
    • thebigh

      Starting a playthrough of the whole Dark Mod, from oldest mission to newest. I've knocked over the first few already and about to start Living Expenses. Only ~170 missions to go!
      · 12 replies
    • Ansome

      I'm back! Happy new years, TDM folks!
      I brought with me a quick update for my first FM that fixes up a lot of small issues that didn't get caught in beta testing. I didn't exactly expect it to take me nearly 9 months to release a patch, but it's been a wild year to say the least. Teaching, finishing up my Master's of Education, and all manner of other events forced me to drop out of the anniversary FM contest and ate up all my time, but I'm back again in a comfortable position to start catching up on all the new FMs. I may even start work on another spooky project of greater length and difficulty in the coming year.
      Thanks again for the warm welcome to the community and have a happy new year!
      · 3 replies
    • JackFarmer

      I got myself the apple tv trial subscription. I have to say, “Foundation” (season 1) is very exciting. Shall I read the books as well?
      · 2 replies
    • datiswous

      One more like..
       

      · 3 replies
×
×
  • Create New...