Author Topic: Making Add-Ons  (Read 681 times)

I have heard of Blender and Milkshape, do people use those to make Add-Ons?

Blender and Milkshape 3D are modeling programs.
Used to make models of weapons, vehicles or whatever for an add-on.

The core of these types of add-ons require a script, written in the TorqueScript coding language.

1.Open Another Add-on
2.Edit script and change datablocks.
3.???
4.Profit.

1.Open Another Add-on
2.Edit script and change datablocks.
3.???
4.Profit.
Gun is the easiest to mess with.

Gun is the easiest to mess with.
How would you change the sound of the gun? Let's lay I'm getting ****ing tired of the Default Gun sound, how would I do it?

How would you change the sound of the gun? Let's lay I'm getting ****ing tired of the Default Gun sound, how would I do it?
Quote
datablock AudioProfile(gunShot1Sound)
{
   filename    = "./gunShot1.wav";
   description = AudioClose3d;
   preload = true;
};

gunShot1.wav is the sound file, to change it using your own file, you either overwrite with the same name, or use a different name like below.

For example, if you wanted a simple Shot1.wav:
Quote
datablock AudioProfile(gunShot1Sound)
{
   filename    = "./Shot1.wav";
   description = AudioClose3d;
   preload = true;
};
Shot1 would be your new sound.

Or, if you wanted the rocket shooting sound via path:
Quote
datablock AudioProfile(gunShot1Sound)
{
   filename    = "add-ons/weapon_rocket_launcher/rocketFire.wav";
   description = AudioClose3d;
   preload = true;
};
This is useful when you want to use a sound that is already in an add-on.
You will also have to enable the Rocket Launcher add-on for it to play the sound.

Also, "datablock AudioProfile(gunShot1Sound)" the gunShot1Sound piece is used in the state system of the add-on.
Quote
   stateSound[2]               = gunShot1Sound;

If you change the gunShot1Sound datablock name, to say Shot1Sound you need to change the above to this:
Quote
   stateSound[2]               = Shot1Sound;

what pro do i need to get?

what pro do i need to get?
Milkshape or Blender, If you have blender you should try wings 3d aswell It's good for making models.