your missing some things and the function name isnt right so look at this
$ACAS::CodesFolder::Function[0] = "tankchanger";
$ACAS::CodesFolder::Shortcut[0] = "/light";
$ACAS::CodesFolder::ExtraArg[0] = "LightTank";
$ACAS::CodesFolder::Description[0] = "Change to LightTank";
$ACAS::CodesFolder::GuiArgs[0] = "SelectedPlayer";
so
Function[0]="tankchanger";
thats the function for all tank changing codes
Shortcut[0] = "/light";
this is the code that you can change to any thing you want with a "/"before it
Description[0] = "Change to LightTank";
this is the description that'll show up in the GUI
$ACAS::CodesFolder::GuiArgs[0] = "SelectedPlayer";
for a tank changing code I don't think this is necessary but put it anyway since I don't know if it will work without it
Okay now for the tank itself
so heres is your tank
datablock TankData(CruiserTank : MediumTank)
{
shapeFile = "~/data/shapes/newshapes/CruiserBlack.dts";
brainShapeFile = "~/data/shapes/tanks/bot01.dts";
fx = "BabyBossFX";
maxSpeed = 25.0; // meters per second (in forward direction)
accelRate = 25.0; // increase velocity this many meters per second
deccelRate = 50.0; // when breaking, decrease velocity
turnRate = 61.0; // degrees per second
antiSlideRate = 50.2;
turretHorRange = 33.5; // range in +/- degrees of turret horizontally
turretAutoLevel = 0.92;
damageAmount = 40.0; // total amount of damage tank can withstand
suspensionRange = 0.8; // proportion of wheel size for wheel to move up/down
damageScale = 5.0; // multiply damage we do to others by this amount
armorScale = 0.1; // multiply damage we take by this amount (note: smaller better)
defaultProjectile = "LightProjectile";
ai = GoldLightAI;
};
open this file in game/server/scripts/tankDB.cs
if you don't have it click the link to download it
http://supra.planetthinktanks2.com/arch ... tankDb.zip
put it in game/server/scripts
then open the file
as you can see this is the last tank in the file
datablock TankData(BabyBoss : MediumTank)
{
shapeFile = "~/data/shapes/tanks/tank05.dts";
brainShapeFile = "~/data/shapes/tanks/brainjar04.dts";
fx = "BabyBossFX";
maxSpeed = 16.0; // meters per second (in forward direction)
accelRate = 15.0; // increase velocity this many meters per second
deccelRate = 16.0; // when breaking, decrease velocity
turnRate = 61.0; // degrees per second
antiSlideRate = 10.2;
turretHorRange = 33.5; // range in +/- degrees of turret horizontally
turretAutoLevel = 0.92;
damageAmount = 10.0; // total amount of damage tank can withstand
suspensionRange = 0.8; // proportion of wheel size for wheel to move up/down
damageScale = 1.0; // multiply damage we do to others by this amount
armorScale = 1.8; // multiply damage we take by this amount (note: smaller better)
defaultProjectile = "LightProjectile";
ai = GoldLightAI;
};
PASTE YOUR TANK DIRECTLY UNDER IT AND SAVE THE CHANGES
then open think tanks and do what Music said to do, save your preferences, and restart the game and test the code
First to fall, last man standing.