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

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 3 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...