B Tutorial Module System How to create a destroyable object for Mount and Blade

Did you find this tutorial useful

  • Yes

    Votes: 16 80.0%
  • No

    Votes: 1 5.0%
  • Kinda

    Votes: 3 15.0%

  • Total voters
    20

Users who are viewing this thread

xPearse

Sergeant Knight
Tutorial

How to create a destroyable object for Mount and Blade by xPearse


Ok this tutorial will tell you how to create a destroyable object for mount and blade, there are a few things we will need for this:

  • The model of the object you wish to destroy (For the purpose of this tutorial I will use a wooden pallet)
  • Module System and Open Brf
  • A modelling program (Wings 3D for me)
  • Some time and a little patience

Chapter 1 - Wings 3D, Step 1 - Import your model
First off we need to import our model into wings 3d



Step 2 - Selecting parts of your model use them as the effect

Now we are going to select a part of it that will appear when you destroy the object, there can be multiple parts that come out of one object so use a variety if you wish. Here I will select two of the planks and then rotate them to use as the pieces.



Note: The planks are connected to the model so I extracted them and then I had to re-uv map the section that was newly created at the bottom.

Chapter 2 - Module System and Open Brf, Step 1 - Add into open brf

Now we are going to add the objects into openbrf and make them ready to enter into the module system, add the objects and then assign the texture to the model and choose which shader you wish. Also create a collision mesh for your model but not your pieces as they don't require one.

Here are the planks in open brf and you should name your pieces something like what I have done, just look at the highlighted names.



Step 2 - Module System Scene Props (Open it up)

Ok now copy the gourd entry and you should end up with something like this, I removed the smoke effect as smoke doesn't come out of wood if destroyed but you may be doing different objects so explore what you can do such as you can make blood come out of it if you use blood rather than smoke.



Just look at the image and you should see what each part is as I put text and arrows near what I need to explain, if there are parts where you wanted me to explain but I didn't it was because I didn't mess around there as I didn't need to change anything so you may also not need to.

Note: How I found out to do this was by remembering that the gourd was destroyable (In tutorials in mount and blade) and just followed the way that was and then ended up creating what you saw in the destroying pallets video.

Step 3 - Module Particle Systems & Result (Open it up)

Now do the same with the scene props and copy the gourd pieces entries. It should then look like this and below in the image will explain certain parts in the highlighted area.



Now all you need to do is set out your scene prop and then destroy it. And I think this about covers the adding of a destroyable scene prop, if there was anything that I missed then please tell me.

Here is the result

 
Don't know why that happened because they are still there if you click on them, I'll edit the post and added them back in so they are visible.

Edit: Added them back in but they seem to still not be working properly, you can view it on moddb also download a rar of all my tutorials if you want to. I'll also upload the images elsewhere so this problem will be fixed.

http://www.moddb.com/mods/hotd/tutorials/how-to-create-a-destroyable-object-for-mount-and-blade-by-xpearse
http://www.moddb.com/mods/hotd/downloads/xpearses-mb-tutorials
 
Don't really know as I only did this simple destroying effect for the wooden pallet, never experimented further but you could make the roof a separate object from the house so when you destroy it the roof would collapse.
 
xPearse said:
Don't really know as I only did this simple destroying effect for the wooden pallet, never experimented further but you could make the roof a separate object from the house so when you destroy it the roof would collapse.
So this is in no way a solution to making explodable houses like in NW.
 
I don't really know but you could make each part of the house a separate mesh and add them all together so it could kinda explode, don't know if it would look any good but you could try it out.
 
Hey xPearse,

Nice tutorial!

Sorry for my ignorance, but if I remembered correctly, your HOTD mod is a multiplayer mod right? My question is: How can you sync this destroy event in the M&B server and client structure, so that all players can see the wooden thing break? I did remember seeing some other thread/tutorial about client-server event syncs, but I'm not sure how this destroy event should be sync'ed properly. (I'm trying to make it happen in Warband.)
 
It's has single and multiplayer gameplay, I don't really know about setting it up for multiplayer but you could just use it as a scene prop and I think everyone would be able to see it break because why wouldn't they.
 
Back
Top Bottom