Jump to content
The Dark Mod Forums

Custom player weapons


RPGista

Recommended Posts

I thought of a project I would like to work on next (in the future...), not exactly a traditional mission but much more of a proof of concept. For it to make sense, I would need to give the player new, custom weapons, at least one, but more would be desirable. I'm not starting a discussion on wether the TDM thief should carry more/different weapons. What I really wanted to know is, inside a single mission environment, how difficult (art aside) would it be to make custom models "wearable" so that the player could fence with them, using the same animations as the ones already in place for the sword? That means, basicly replacing the sword model with one or more custom ones, placing them on the HUD hands, using the same animations, and changing only a couple of stats like damage level or hand speed. That would include things you can pick up (enemies' weapons too, weapons that need particular animations like spears and big axes would not be included in the map), and also weapons the player would have from the start, in his inventory.

 

One initial idea was to have a throwing axe you could pick up again everytime you threw it (picture below), but that seems like a lot of coding work on top of that... So now I've changed the setting somewhat to allow for simple sword substitutes, with no new mechanics, it could even be this particular axe, or some other custom weapon I might create.

 

axe01q.jpg

 

Again, this is supposed to be an experiment in a parallel universe (= single fan mission) where the player is not reeeeeally the TDM thief, but rather a lone hero/adventurer.

Edited by RPGista
Link to comment
Share on other sites

IIRC, the player model just has a regular sword def_attached for the attack animations, so replacing that once wouldn't be terribly difficult. Replacing them on the fly is another matter.

Link to comment
Share on other sites

ST - Thats just a render type inside the modeler, allows you to spot tangency and smoothing group problems on the model.

 

Springheel - thats good to hear. I guess it wouldnt be hard to change the concept a bit more and make the player rely on a single new weapon, a fixed melee one replacing just the sword and nothing else (actually I already know what it would be). If I were to make a test using my warhammer model, could you give me some pointers as to how I would go about doing it? I remember trying to get a player sword enity, change the model, and trying to edit possibly that def file you mentioned, trying to point it to the warhammer model, but my crude hack attempt didnt work.

Link to comment
Share on other sites

Take a look at def/tdm_weapon_shortsword.def. At its most basic, you should be able to just replace the model spawnarg with your own model. Changing the name, icon, etc, also shouldn't be too hard.

Link to comment
Share on other sites

I have a question that goes in the general direction of this topic, so I thought I post it here.

 

I would like to replace the blackjack by a torch. So basically it would be a light source for the player (in replacement for the lantern). It should not really work as a weapon, but it would be nice if the players 'attacks' with it, that it causes a fire stim in front of the player (to relight torches for example).

 

Do you think this is possible without having to change things in the code (scripting would not be a problem though)? The guards are already able to carry a torch, although the don't do this in replacement for their weapon.

 

Thanks in advice.

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

I would like to replace the blackjack by a torch.

 

I can't think of a reason why that wouldn't work.

 

I guess it wouldnt be hard to change the concept a bit more and make the player rely on a single new weapon,

 

Actually, come to think of it, there's no reason why you couldn't overload numerous weapons--replace the sword with an axe, the blackjack with a dagger, etc. Then just set it so the player doesn't start with those weapons, and they have to find them in the map. Creating specific behaviours for each weapon that are different from the original (specific animations, etc) would be more challenging.

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

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 0 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...