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

    • Goblin of Akenash

      Goblin-Secrets episode 2 is out now!
       
      · 3 replies
    • Airship-Ballet

      https://www.twitch.tv/airshipballet2 There was a mapping stream here, it's gone now.
      · 8 replies
    • peter_spy

      Stumbled upon a documentary on Enki Bilal, he is one of the most influential comic book artists of my adolescence. English auto-subtitles is rubbish, so you might need to brush up on your French
      · 3 replies
    • Goblin of Akenash

      Today I did a bit of an experiment! I wanted to see if I could get a dark radiant map into garry's mod, the quickest and dirtiest and not-workiest method is "OBJ2VMF" which converts .obj models into VMF files for hammer to then compile, the way its supposed to work is that you input a 6 sided cube and it turns it into a 6 brush room (not exactly ideal for this since that's not how TDM maps work, this honestly would have been a better idea with any thief game from 1 to the one from 2014 since they all work like that) so what ended up happening was that for every brush there was 6 brushes would be ontop of that almost inflating everything in the map like a balloon, map scale was also an issue that I couldn't fine-tune easily either so the scale is way off ontop of everything being inflated making the space inside the map very tiny! anyways heres the result of that and it looks almost nothing like footloose (plus I did add a bunch of random props in gmod for funsies and better visibility since the process involved replacing all the textures with dev ones that look very flat when in full-bright)

      https://streamable.com/ctmh58

      (streamable link will expire in 2 days but I'll have a spoken word version of this post along side the video and other fun images relating to the bsp inflation effect in the next "Goblin Secrets" video next month)
      · 0 replies
    • Frost_Salamander

      @taaaki Wiki seems broken. Main page works but click any link and:

      · 2 replies
×
×
  • Create New...