Jump to content
The Dark Mod Forums

Adding new weapons to TDM for beginners


bedhead

Recommended Posts

Hi I want to try adding or replacing existing weapons in TDM. I was wondering if anyone have resources or guide for me to read up.

 

For starters I want to try to replace the player's short sword with the builder's hammer and change the attack range of the weapon and the sound effects.

 

For background reference, I have no experience with game development, but I have some knowledge of C programming if that helps. This is purely as an exercise for me to learn.

Edited by bedhead
Link to comment
Share on other sites

Hmm. I think you'd need to use idWeapon scripting to do this. I tried looking back in the wiki and I don't see custom "player" weapons but I did see some info on custom AI weapons

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

I found a few resources that is related to what I'm trying to do in this exercise but it's for doom 3. I guess TDM should still be the same?

 

http://www.iddevnet.com/doom3/

It's under the topic - "How do I add a weapon?"

 

I also found the weapon script that nbohr1more mentioned from this site.

http://www.iddevnet.com/doom3/script_weapon.php

 

@Moonbo which thread is that?

 

@SteveL well I'm trying to keep this exercise as simple as possible. I was hoping to replace the sword with a hammer within the animation. It's not like the hammer deforms so I was hoping I could just use the same one. But I'm not too familiar with how TDM handles these things so it may be as difficult as you'd describe. But even then, I'm not afraid to pick up animation skills.

Link to comment
Share on other sites

Sure, see what you can do with existing animations first. You can probably get away wth simply swapping a model to start with.

 

Obsttorte's thread is call "Apples and Peaches" iirc.

 

I can see one or two relevant threads with this google search:

site:thedarkmod.com "custom OR new weapon"

Link to comment
Share on other sites

Went through 13 pages of Apple and Peaches and didnt see anything about custom player weapons. The other threads didnt go into details of to accomplish what I want to do.

 

I'll treat this problem as a doom 3 mod and follow the steps on iddev.

 

If anyone know what the filenames that I should be interested in are or where to look, please let me know. It would save me some time and ill be very grateful.

Link to comment
Share on other sites

I'm pretty sure that the weapon model is just def_attached to the player, though I'm not sure precisely where that would be done. tdm_player_thief.def is where I'd look first. You won't have to change any animations unless you want the player to swing the weapon differently.

 

Obsttorte did demo a new player pistol, which might have some useful info for you.

Link to comment
Share on other sites

In the file - tdm_weapon_base.def it mentions about "model" and "model_view".

 

"Model" is followed by an .lwo file.

Looking at the tdm_weapon_shortsword def model is followed by shortsword.lwo. I checked the model list and tried replacing it to hammer.lwo. I suspect "model" may be referring to the third person weapon model.

 

"Model_view" mentions something about first person model which is what I want. But I'm not sure what to replace the text that follows it.

 

Also ran into a linux problem. I extracted the pk4 using 7zip to edit the defs. Then rezipped then into a .zip with 7zip and renamed the file extension to .pk4. This caused some seg fault and ctd.

Link to comment
Share on other sites

@bedhead: Check my signature for my mapping thread. :)

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

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

    • 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.
      · 5 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.
      · 7 replies
×
×
  • Create New...