Tribes 2 Links: | Weapons | Armor | Vehicals | Packs, Deployables | Official Map Editor Guide | Scripting |
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
// 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
forces you to throw a weapon when your hit with
a concussion grenade
|