Tribes 2 Tribes 2 General Game Information Modifications Heads-Up-Displays Scripting/Coding Mapping Missions Custom Skin Creation Screenshots, duh! Links to Greater Sites Origional Tribes Page
Tribes 2 Links: Weapons Armor Vehicals Packs, Deployables Official Map Editor Guide Scripting
Tribes2 logo Team combat on an epic scale.

Energy Weapon Turtorial

A big thanks to Vengeance Studio's: Tribes 2 Editing for this Turtorial.

By: Viper324
     I have found that you need to edit these files to add a weapon. Everything commented are notes, the uncommented things is the actual code. This tutorial is almost exactly the same as the ammo based weapon except its easier to add the weapon.
Note: Comment is //
Note #2: Don't forget to create your weapon data file in the weapons folder and configure it to your weapons specs.

add your weapon damage type to damagetypes.cs and death message to deathMessages.cs

// ------------------------------------------
// stationSetInv.cs
// ------------------------------------------
// this is an example code from the stationSetInv.cs file
// add your weapon code as seen below
// set the value to zero if you don't want your armor to carry the item



// ------------------------------------------
// inventoryHud.cs
// ------------------------------------------
// This adds the items to the inventory HUD
// this also sets the weapon descriptions



// ------------------------------------------
// weapons.cs
// ------------------------------------------
// This code tells what image to use for the weapon.



// ------------------------------------------
// inventory.cs
// ------------------------------------------
// this part is the next weapon stuff.
// it checks to see if you have ammo for it, or if its energy it will just give it to you.

// this part tells the inventory to set all values to zero. add your weapon to this.

// this part tells the game to give the player every item and max ammo
// this is a part of the server GiveAll cheats. Only the server host can type this to get it to work. I used to know how to get it working. I just forgot right now.



// ------------------------------------------
// player.cs
// ------------------------------------------
// each armor has both of these first functions. you will need to add your weapon and ammo to each armor

// this forces you to throw a weapon when your hit with a concussion grenade
// well, at least I think that's what it does.



// ------------------------------------------
// hud.cs
// ------------------------------------------
// this file will set your weapons reticle
// this allows you to specify a custom reticle for your weapon

// find this part of the file