Jump to content
The Dark Mod Forums

Change out what AI eats


DeTeEff

Recommended Posts

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?

 

Link to comment
Share on other sites

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
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

      New texture wiki article created: https://wiki.thedarkmod.com/index.php?title=Creating_textures_from_Ornate_Photos
      · 0 replies
    • Xolvix

      Took a break from TDM until I got my backlog under control. It's been months and it's still not "under control". Damnit.
      · 1 reply
    • Ansome

      I sleep well at night knowing the player will never see the absolute nightmare that is my sealing brushwork outside the playable area. Only the pointfile can judge me now.
      · 4 replies
    • JackFarmer

      Somehow I admire the fact that the material from Dune has now been filmed for the third time. Personally, I could never do much with the material, but as a child of the 80s, I of course know the David Lynch movie...and that movie was at least funny!
      · 2 replies
    • Baal

      Episode 3 of the second best Doom 3 mod, Phobos,  was just released.
      · 6 replies
×
×
  • Create New...